Shoutbox

case "/bestupid" : - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: case "/bestupid" : (/showthread.php?tid=72388)

case "/bestupid" : by Gareth_2007 on 03-07-2007 at 01:15 AM

i have case "/bestupid" : the rest of the code works that has been added but in the convo when you type / it brings up the command list but my command is not in it! any ideas? cheers


RE: case "/bestupid" : by pollolibredegrasa on 03-07-2007 at 01:19 AM

Look at the Scripting Documentation for GetScriptCommands or search for it on the forums, as there are plenty of examples that should help you :)


RE: case "/bestupid" : by Dennis Mike on 03-07-2007 at 02:52 AM

you need add a code in the scriptinfo.xml
<ScriptCommands>

example
<ScriptCommands>
        <Command>
        <Name>mmusic</Name>
             <Description>Show the Messenger Music</Description>
        </Command>
        </ScriptCommands>


RE: case "/bestupid" : by Felu on 03-07-2007 at 03:08 AM

quote:
Originally posted by Dennis Mike
you need add a code in the scriptinfo.xml
<ScriptCommands>

example
<ScriptCommands>
        <Command>
        <Name>mmusic</Name>
             <Description>Show the Messenger Music</Description>
        </Command>
        </ScriptCommands>
This can be done within the script aswell with OnEvent_GetScriptCommands just as fatfreechicken said.
RE: case "/bestupid" : by NanaFreak on 03-07-2007 at 07:09 AM

quote:
Originally posted by Dennis Mike
you need add a code in the scriptinfo.xml
<ScriptCommands>

example
<ScriptCommands>
        <Command>
        <Name>mmusic</Name>
             <Description>Show the Messenger Music</Description>
        </Command>
        </ScriptCommands>
also if you add it into the script info file, when you turn the script off you still get the / commands in the list...
RE: case "/bestupid" : by Matti on 03-07-2007 at 12:20 PM

quote:
Originally posted by NanaFreak
also if you add it into the script info file, when you turn the script off you still get the / commands in the list...
I didn't even know that! :O Good to know, luckily I always use OnGetScriptCommands. :)
RE: RE: case "/bestupid" : by CookieRevised on 03-07-2007 at 12:26 PM

quote:
Originally posted by NanaFreak
if you add it (cfr:commands) into the script info file, when you turn the script off you still get the / commands in the list...

that would be a bug in that case... nice find... now report it :p;)