code:
function flash(){
for (i = 0; i < 10; i++) {
Messenger.MyName = "[c=40]" + contactsname + "[/c]";
Messenger.MyName = "[c=0]" + contactsname + "[/c]";
}
function 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)
{
}
That's the correct syntax (you can compare what's wrong with your code). But that won't work I think, you want it to flash 10 times but your nick will change so quickly that it won't even change to your contacts... You could use timers, to wait 500ms or so to change the color of your nick.