try posting your code here and we'll see + fix errors.
the code for adding your commands (my way
):
code:
function OnGetScriptCommands(){
var SC = "<ScriptCommands>";
SC += "<Command>";
SC += "<Name>Your_Command</Name>";
SC += "<Description>Your description.</Description>";
// SC += "<Parameters>Optional. uncomment this if you want</Parameters>";
SC += "</Command>";
SC += "</ScriptCommands>";
return SC;
}
// to parse.
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message.toLowerCase() == "/your_command"){
/* if(Message.length <= 13){ // for getting the parameter
return "/me";
}
*/
/* do something here */
return ""
}
}