What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] my first script..

[help] my first script..
Author: Message:
mltz2plz
New Member
*

Avatar
^^Adopt a kleppet^^ www.Kleppets.tk

Posts: 14
34 / Male / –
Joined: Oct 2004
O.P. [help] my first script..
Hey, well i'm just sort of playing around and stuff trying to figure out the whole scripting thing. I've made a small script that doesn't work exactly how i wanted. What it does is when you change your status it adds a "note" at the front of your PSM saying whatever you wish, eg. if you set your status to "out to lunch" it will say "Shh! eating. - (old psm here)". or whatever you put for it to say.

heres the script so far:

code:


function OnEvent_MyStatusChange(Stat) {

//Appear Offline - Set the PSM between the ""
           if(Stat == 2) {
    Messenger.MyPersonalMessage = "I'm appearing offline " + " - " + Messenger.MyPersonalMessage + "";
//Online - Set the PSM between the ""
    } else if(Stat == 3) {
    Messenger.MyPersonalMessage = "Online" + " - "+ Messenger.MyPersonalMessage + "";   
//Busy - Set the PSM between the ""   
    } else if(Stat == 4) {
    Messenger.MyPersonalMessage = "I'm busy" + " - " + Messenger.MyPersonalMessage + "";   
//Be Right Back - Set the PSM between the ""   
    } else if(Stat == 5) {
    Messenger.MyPersonalMessage = "I will be right back" + " - " + Messenger.MyPersonalMessage + "";   
//Idle - Set the PSM between the ""   
    } else if(Stat == 6) {
    Messenger.MyPersonalMessage = "Idle" + " - " + Messenger.MyPersonalMessage + "";   
//Away - Set the PSM between the ""
    } else if(Stat == 7) {
    Messenger.MyPersonalMessage = "I'm away" + " - " + Messenger.MyPersonalMessage + "";   
//In a Call - Set the PSM between the ""   
    } else if(Stat == 8) {
    Messenger.MyPersonalMessage = "Shh! Im in a call" + " - " + Messenger.MyPersonalMessage + "";   
//Out to Lunch - Set the PSM between the ""   
    } else if(Stat == 9) {
    Messenger.MyPersonalMessage = "Mmm, Im eating!" + " - " + Messenger.MyPersonalMessage + "";
    }
    }



now, my problem is that when a person changes their status it will work how i wanted, eg

*change to online*
"online - this is the old personal message"

but then say they change their status to busy it will show up like this:
"Busy - Online - this is hte old personal message"

is there a way i can get rid of the "online -" i'm pretty sure it is possible but am not too sure how to do it. please help.
thanks in advanced, nick.
[Image: s116.PNG]
:^) www.NickzPlace.tk - www.Kleppets.tk
06-26-2006 05:58 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[help] my first script.. - by mltz2plz on 06-26-2006 at 05:58 AM
RE: [help] my first script.. - by Matti on 06-26-2006 at 06:22 AM
RE: RE: [help] my first script.. - by The Brain on 06-26-2006 at 03:26 PM
RE: [help] my first script.. - by mltz2plz on 06-26-2006 at 06:32 AM
RE: [help] my first script.. - by can16358p on 06-26-2006 at 07:19 AM
RE: [help] my first script.. - by mltz2plz on 06-26-2006 at 01:44 PM
RE: [help] my first script.. - by mltz2plz on 06-27-2006 at 09:49 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