quote:
Originally posted by wiseguyxp
I really want to start my command with a slash, but when I had tried to use the slash command, it said "The command you entered was not recognized." I took a look at OnGetScriptCommands (as you suggested) and it pointed to me to ScriptInfo.xml. After defining the command in ScriptInfo.xml, it all works fine. Thanks a lot!
you are also able to define a command in the script itself... most of the major script developers prefer this method (atleast i think they do =p)
the way to do it is to return the XML that you would normally place in the scriptinfo.xml when the function is fired...
jscript code:
function OnGetScriptCommands(){
return '<XML CODE GOES IN HERE>';
}
hope this helps you out... and i look forward to seeing your script!