* matty remembers when I made this for wj hahaha.
code:
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 '';
}
}
}
quote:
Originally posted by Themuzz
f you type !imitate in the convo then the script will imitate it self.. So it doesn't imitate the thing the person said as last.
Edit thanks, I typed that in 2 mins I corrected it, forgot to add return '';