What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » First script testing

First script testing
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: First script testing
Fair enough, I never checked for a [0] :p



I've created a plsc file with an improved version of the script. It uses a global array rather than defining it each time you receive a message.

The random number now generates between 0 and the number of array entries meaning if you added more you would not have to update the random number code.

Some lines could be put into one so I did that to make it a bit more compact.

It uses CookieRevised's RegExp for getting commands and parameters from messages.

I've put in a try...catch statement in case something does go wrong, we want to alert the user, but not send the message.

I also added the command /ponder to the command helper window so it will show up their too.




Take a look at the changes and if you need help understanding anything... I'll be here lol

.plsc File Attachment: TTP.plsc (3.54 KB)
This file has been downloaded 108 time(s).
<Eljay> "Problems encountered: shit blew up" :zippy:
03-12-2008 04:49 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
First script testing - by snazzpompey on 03-02-2008 at 05:46 PM
RE: First script testing - by Spunky on 03-02-2008 at 05:52 PM
RE: First script testing - by Jesus on 03-02-2008 at 06:11 PM
RE: First script testing - by Spunky on 03-12-2008 at 04:49 PM
RE: First script testing - by matty on 03-12-2008 at 05:06 PM
RE: First script testing - by Spunky on 03-12-2008 at 05:44 PM
RE: First script testing - by markee on 03-13-2008 at 01:11 PM
RE: First script testing - by matty on 03-13-2008 at 01:41 PM
RE: First script testing - by Volv on 03-13-2008 at 02:30 PM
RE: First script testing - by Jesus on 03-13-2008 at 04:03 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