What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » I need some help

I need some help
Author: Message:
TYL3R
Junior Member
**

Avatar
MP!L Scripter =]

Posts: 24
Reputation: -4
31 / Male / Flag
Joined: Oct 2006
O.P. I need some help
I'm trying to make a script and it looks like this:

var one = new Array();
     one[0]="smacks";
     one[1]="tickles";
     one[2]="nudges";   
     one[3]="punches";
     one[4]="pokes";
     one[5]="hits";
     one[6]="slaps";
var two = new Array();
     two[0]="a 500-pound";
     two[1]="a slippery";
     two[2]="a wet";   
     two[3]="a smelly";
     two[4]="a stinky";
     two[5]="an obnoxious";
     two[6]="a playful";
     two[7]="a burning";
     two[8]="a toxic";     
     two[9]="a purple";
     two[10]="a yellow";
     two[11]="an orange";
var three = new Array();
     three[0]="unix manual";
     three[1]="rubber chicken";
     three[2]="keyboard";   
     three[3]="mailbox";
     three[4]="ax";
     three[5]="fish";
     three[6]="walrus";
     three[7]="duffle bag";
     three[8]="iguana";
     three[9]="windshield";
     three[10]="snow cone";
     three[11]="psp";
     three[12]="shark";
     three[13]="cactus";
     three[14]="tooth brush";
     three[15]="tooth pick";
     three[16]="crocodile";

function generate()
{
   random = Math.floor(Math.random()*one.length);
   first = one[random];
   random = Math.floor(Math.random()*two.length);
   second = two[random];
   random = Math.floor(Math.random()*three.length);
   third = three[random];
}

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message.substr(0,7)=="/random"){
        generate()
        Message = Messenger.MyName + " " + first + " " + "you" + " with " + second + " " + third + "!"
        return Message
    }
}
   


I'm not sure on how to make it so that instead of "you" its the person in the chat.

Could someone give me the code to do it?

thnx


- Tyler
- Youtube Info
     Thread

- MsgPlus! Jukebox
     Thread
12-25-2006 11:01 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
I need some help - by TYL3R on 12-25-2006 at 11:01 PM
RE: I need some help - by Spunky on 12-25-2006 at 11:02 PM
RE: I need some help - by TYL3R on 12-25-2006 at 11:03 PM
RE: I need some help - by Spunky on 12-25-2006 at 11:04 PM
RE: I need some help - by TYL3R on 12-25-2006 at 11:05 PM
RE: I need some help - by Spunky on 12-25-2006 at 11:07 PM
RE: I need some help - by Jarrod on 02-07-2007 at 08:40 PM
RE: RE: I need some help - by TYL3R on 02-07-2007 at 08:44 PM
RE: I need some help - by Jarrod on 02-07-2007 at 08:46 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