Exactly... I haven't been able to get the timers to work so I was looking for a little more help on how to make the timers work... here's my current code...
code:
//Check for /command
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage) {
if(sMessage.charAt(0) == "/"){
return parseCommands(sMessage,ChatWnd);
}
else{
return sMessage;
}
}
//Add the /command in command list
function OnGetScriptCommands(){
var commands = '<ScriptCommands>';
commands+='<Command>';
commands+='<Name>toastspammer</Name>';
commands+='<Description>Appear Offline and then back Online</Description>';
commands+='<Parameters/>';
commands+='</Command>';
commands+='</ScriptCommands>';
return commands;
}
//Parse commands
function parseCommands(sMessage,iOriginWnd) {
var x = 0;
do
{
Messenger.MyStatus = 2;
Messenger.MyStatus = 3;
x = x+1
//Sleep here
}
while (x < 3); //Number of times to sign on and off
//NOTICE: Messenger can't handle very many without
// slowing down or possibly crashing, unless
// the timer is enabled so they don't all occur
// at the same time.
return "";
}