Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
Joined: Apr 2006
Status: Away
|
RE: Code for script with sounds
code: var ChatWnds = new Array();
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if(Message == "Razzia"){
ChatWnd.SendMessage("/sound Dj Zany - Razzia");
ChatWnds[ChatWnds.length-1] = ChatWnd;
MsgPlus.AddTimer("Delay1"+[ChatWnds.length-1], 12000);
}
}
function OnEvent_Timer(TimerId){
switch(TimerId.substr(0,6)){
case "Delay1":
ChatWnds[TimerId.substr(6)].SendMessage("/sound Dj Zany - Razzia 2");
MsgPlus.AddTimer("Delay2"+[TimerId.substr(6)], 12000);
break;
case "Delay2":
ChatWnds[TimerId.substr(6)].SendMessage("/sound Dj Zany - Razzia 3");
break;
}
}
There you go!
This post was edited on 01-28-2007 at 11:59 AM by Felu.
|
|