What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help needed] randomly send a word from a list

[help needed] randomly send a word from a list
Author: Message:
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: [help needed] randomly send a word from a list
ok here you go
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message)
{
  if(Message=='moo!')
  {
    g = new Array('word','something','stuff','goes','here'); //the words you want
    ran = g[Math.floor(Math.random()*g.length)]; //getting a random word
    ChatWnd.SendMessage(ran); //sending the word
  }
}

tested it as well and it works fine so have fun [Image: msn_happy.gif]
09-16-2006 10:58 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[help needed] randomly send a word from a list - by skyserpent on 09-16-2006 at 10:17 PM
RE: [help needed] randomly send a word from a list - by NanaFreak on 09-16-2006 at 10:58 PM
RE: [help needed] randomly send a word from a list - by phalanxii on 09-16-2006 at 11:04 PM
RE: [help needed] randomly send a word from a list - by skyserpent on 09-17-2006 at 01:22 AM


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