O.P. RE: !imitate don't work
this code
dont work
-----------------
var boolEnabled = false;
var currentNickName;
function OnEvent_ChatWndReceiveMessage(Wnd, sOrigin, sMessage, nMessageKind){
if (boolEnabled == true){
if (currentNickName != sOrigin){
currentNickName = Messenger.MyName;
Messenger.MyName = sOrigin;
Wnd.SendMessage(sMessage);
//Messenger.MyName = currentNickName;
}
}
}
function OnEvent_ChatWndSendMessage(Wnd, sMessage){
if (sMessage == '!imitate'){
if (boolEnabled == true){
boolEnabled = true;
Messenger.MyName = currentNickMame;
return '';
}else{
boolEnabled = true;
return '';
}
}
}
|