CookieRevised's reply to Gettin data from "/" commands - Deciphering commands and parameters.
code:
function OnGetScriptCommands(){
var ScriptCommands = "<ScriptCommands>";
ScriptCommands += "<Command>";
ScriptCommands += "<Name>test</Name>";
ScriptCommands += "<Description>testing</Description>";
ScriptCommands += "</Command>";
ScriptCommands += "</ScriptCommands>";
return ScriptCommands;
}
You also need the above code to add you commands to the "command helper" window when someone types a "/" in the conversation window. This is not essential, but makes your script easier to use and I think Menthix mentioned not accepting scripts of sub-standard quality (which a script without out this would be)