thanks for that alexp!
just one more thing how could i intregrate that sending code into this script?
code:
var Wnd = null;
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if(Message == 'BOMB!') {
Wnd = ChatWnd;
MsgPlus.AddTimer("Bomb",500);
return "";
}
if(Message == 'STOP!') {
Wnd = null;
MsgPlus.CancelTimer("Bomb");
return "";
}
}
function OnEvent_Timer(tId) {
if(Wnd != null) {
Wnd.SendMessage("Lemons");
MsgPlus.AddTimer("Bomb",500);
}
}
thanks for any help