What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help required with Bead Draw Script

Help required with Bead Draw Script
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
RE: Help required with Bead Draw Script
You could make custom emotions for each, with IDs like %bd:r%, %bd:w%, %bd:b% and %bd:y%, and then make a script that sends %bd:?%, where ? is replaced by a random letter (maybe using Math.random() and an array).
Javascript code:
var Letters = ["r", "w", "b", "y"];
 
function OnChatWndSendMessage(PlusWnd, Message)
{
    if (Message.toLowerCase() === "/beaddraw")
    {
        return "%bd:" + Letters[Math.floor(Math.random() * 3)] + "%";
    }
}

06-07-2010 06:08 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help required with Bead Draw Script - by Dragony on 06-07-2010 at 11:26 AM
RE: Help required with Bead Draw Script - by matty on 06-07-2010 at 01:02 PM
RE: Help required with Bead Draw Script - by whiz on 06-07-2010 at 06:08 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