Shoutbox

Helping in scripting - 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: Helping in scripting (/showthread.php?tid=92445)

Helping in scripting by Akos on 10-02-2009 at 07:09 PM

Hello guys, I'd like to get a little help :]
I want a script like this:
If someone says: !Wazzap
My MSN would automatically anwser that, like this: Nothing as usually, didn't you know?:)

I'd like the scripting of this, I would add more then one of this,

Thanks,
Akos.


RE: Helping in scripting by matty on 10-02-2009 at 07:22 PM

Based on a recent post by Matti here: Matti's reply to [REQ] Name Remote

js code:
function OnEvent_ChatWndReceiveMessage ( oChatWnd , sOrigin , sMessage , nMessageKind ) {
    var match = false;
    if( match = sMessage.match( /^!wazzap$/ ) ) {
        oChatWnd.SendMessage ( 'Nothing as usually, didn\'t you know? :)' );
    }
}