well the 10- in the forloop cant be good...
here try this
code:
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function flash(){
for (i = 0; i < 10; i++) {
Messenger.MyName = "[c=40]" + contactsname + "[/c]";
Messenger.MyName = "[c=0]" + contactsname + "[/c]";
}
}
var contactsname = Messenger.MyName ;
var savedname = contactsname ;
contactsname = MsgPlus.RemoveFormatCodes(contactsname);
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if (Message == "!flash") {
flash();
Messenger.MyName = savedname ;
}
}
al i did was take it out of the OnEvent_Initialize(MessengerStart) function