Silentdragon
Full Member
if(life==null && wrists) EmoAlert();
Posts: 148 Reputation: 2
34 / / –
Joined: Jun 2006
|
RE: [request] loop [HELP PLEASE]
code: var Wnd = null;
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if(Message == 'BOMB!') {
Wnd = ChatWnd;
MsgPlus.AddTimer("Bomb",500);
MsgPlus.AddTimer("Bomb2",500);
return "";
}
if(Message == 'STOP!') {
Wnd = null;
MsgPlus.CancelTimer("Bomb");
MsgPlus.CancelTimer("Bomb2");
return "";
}
}
function OnEvent_Timer(tId) {
if(Wnd != null) {
if(tId == "Bomb") {
Wnd.SendMessage("Message Bomb");
MsgPlus.AddTimer("Bomb",500);
} else if(tId == "Bomb2") {
Wnd.SendMessage("Message Bomb2");
MsgPlus.AddTimer("Bomb2",500);
}
}
}
|
|