Yes, put it at the end
unless you already have an
OnEvent_ChatWndReceiveMessage(), which will be the case if you use Felu's code.
In this case, you will insert it into Felu's function:
code:
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);
}
if(Message == "QUIT") for(var i = 1; i < 6; i++) for(var j = 0; j < ChatWnds.length; j++) MsgPlus.CancelTimer("Delay" + i + j);
}