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.