What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] functions at WLM?

[help] functions at WLM?
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [help] functions at WLM?
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
var rand = Math.floor(Math.random()*1000);
if(Origin != Messenger.MyName) {
if(Message.substr(0,6) == "!guess" && Message.substr(8) == rand) { ChatWnd.SendMessage("Congrats.");
}
}
}

was too lazy so copied from MrT's code :P

it's like a Guess my number game ;)

but if you want to set it on your own, just change "var rand"'s value

This post was edited on 07-06-2007 at 09:56 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
07-06-2007 09:55 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[help] functions at WLM? - by bloodcrush on 07-05-2007 at 08:38 PM
RE: [help] functions at WLM? - by Chris4 on 07-05-2007 at 08:41 PM
RE: [help] functions at WLM? - by MrT on 07-06-2007 at 08:20 AM
RE: [help] functions at WLM? - by roflmao456 on 07-06-2007 at 09:55 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On