Hi,
Im tring to make the contacts name flash when they type !flash but i cant seem to get it working, im a bit of a newbie at this so any help is much appreicated.
Heres what ive got so far, i expect its all totaly wrong
code:
function flash(){
for (i = 0; i < 10-; i++) {
Messenger.MyName = "[c=40]" + contactsname + "[/c]";
Messenger.MyName = "[c=0]" + contactsname + "[/c]";
}
}
OnEvent_Initialize(MessengerStart)
{
var contactsname = Messenger.MyName ;
var savedname = contactsname ;
contactsname = MsgPlus.RemoveFormatCodes(contactsname);
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if (Message == "!flash") {
flash();
Messenger.MyName = savedname ;
}
}
function OnEvent_Uninitialize(MessengerExit)
{
}
Any ideas?
Thanks,
-ed