Home User Guide
12 | 12 | 2017
User Guide
Raw input processing by dlls

mm2k6 dll plugins now support raw processing of

  1. incoming text from the mud
  2. chat text
  3. input text
This means that dlls can now process things before they are modified in any way by MudMaster opening the door to dlls that provide new script language support or MUD extensions.
Read more...
 
Dll code skeleton

Dlls for mm2k6 are extremely similar to dlls for mm console and mm2000. The basic skeleton can be the same for all of them. All of them require a proc called Version and alll of them use the same callback to return commands to the client. 

 

Read more...
 
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.

 
« StartPrev123NextEnd »