Home User Guide Dll PLugins Loading and using Dlls
11 | 12 | 2017
Loading and using Dlls

The following commands are used to manage DLLs within mm2k6 

  • /LoadLibrary {name}{dllName including .dll} - This command loads the DLL. This must be done before you can use your DLL from within your scripts. If the name parameter is not provided the full dll name including .dll will be used as the name. You can use a full path to the dll if the file is not in the directory with mudmaster.exe
  • /FreeLibrary {name you used in /loadlib} - Removes a DLL from memory. If you are not sure what name is being used enter the /dll command to see the name. 
  • /Dll - Displays a list of DLLs you currently have loaded.
  • /CallDLL {name}{dll proc to call and parameters to send} - Used to call functions in your DLL.

Note:

  • the name and dllname in the above commands are case sensitive.
  • the name is what must be used by scripts using the /calldll command.
  • mm2k6 will look in the directory with mudmaster.exe for the dll if no path is used.

 Examples:

/loadlib math.dll - will load the math.dll if it is found in the mudmaster.exe folder and will call it math.dll

/loadlib {Math}{c:\MyDlls\math.dll} - will load math.dll if it is found in the c:\MyDlls folder and call it  Math.