When i run the script i get this:
Im saying 10 times the same thing..
Edit:
code:
var boolEnabled = false;
var currentNickName;
function OnEvent_ChatWndReceiveMessage(Wnd, sOrigin, sMessage, nMessageKind){
if (boolEnabled == true){
currentNickName = Messenger.MyName;
Messenger.MyName = sOrigin;
Wnd.SendMessage(sMessage);
}
}
function OnEvent_ChatWndSendMessage(Wnd, sMessage){
if (sMessage == '!imitate'){
if (boolEnabled == true){
boolEnabled = true;
Messenger.MyName = currentNickName;
return '';
}else{
boolEnabled = true;
return '';
}
}
}
Is my code now