code:
function OnEvent_ChatWndReceiveMessage(Origin, ChatWnd, Message){
ChatWindow = ChatWnd
if(Origin != Messenger.MyName && Message == "Razzia"){
ChatWindow.SendMessage("/sound Dj Zany - Razzia");
MsgPlus.AddTimer("Delay1", 12000 /*length of sound*/);
}
}
function OnEvent_Timer(TimerId){
if(TimerId == "Delay1"){
ChatWindow.SendMessage("/sound Dj Zany - Razzia 2");
MsgPlus.AddTimer("Delay2", 12000 /*length of sound*/);
}
if(TimerId == "Delay2"){
ChatWindow.SendMessage("/sound Dj Zany - Razzia 3");
}
}
i am quite sure that should work... you just have to make the 12000 the length of the sound (as i have said in the code)
quote:
Originally posted by Felu
NanaFreak: What if two contacts send Razzia one after the other? Wouldn't ChatWindow be changed?
woops
can you make my code work around that
seeing as its like almost my BDay