It is still not working. Here's the complete script with your ammendments:
quote:
var aChatWnds = new Array();
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if(Message == "!s"){
ChatWnd.SendMessage("/vc 15");
aChatWnds[aChatWnds.length-1] = ChatWnd;
MsgPlus.AddTimer("Delay1"+[aChatWnds.length-1], 15300);
else if(Message == "!q"){
MsgPlus.CancelTimer("Delay1"+aChatWnds.length-1);
}
}
function OnEvent_Timer(TimerId){
switch(TimerId.substr(0,6)){
case "Delay1":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay2"+[TimerId.substr(6)], 15200);
break;
case "Delay2":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay3"+[TimerId.substr(6)], 15200);
break;
case "Delay3":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay4"+[TimerId.substr(6)], 15200);
break;
case "Delay4":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay5"+[TimerId.substr(6)], 15200);
break;
case "Delay5":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay6"+[TimerId.substr(6)], 15200);
break;
case "Delay6":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay7"+[TimerId.substr(6)], 15200);
break;
case "Delay7":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay8"+[TimerId.substr(6)], 15200);
break;
case "Delay8":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay9"+[TimerId.substr(6)], 15200);
break;
case "Delay9":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay10"+[TimerId.substr(6)], 15200);
break;
case "Delay10":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
break;
}
}
This has only rendered the script unusable. Perhaps I should debug this?