What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Code for script with sounds

Code for script with sounds
Author: Message:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
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.
01-28-2007 11:57 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Code for script with sounds - by Jumpfreakske on 01-27-2007 at 03:50 PM
RE: Code for script with sounds - by phalanxii on 01-28-2007 at 06:26 AM
RE: Code for script with sounds - by Jumpfreakske on 01-28-2007 at 09:27 AM
RE: Code for script with sounds - by vikke on 01-28-2007 at 09:32 AM
RE: Code for script with sounds - by Menthix on 01-28-2007 at 11:10 AM
RE: Code for script with sounds - by Jumpfreakske on 01-28-2007 at 11:12 AM
RE: Code for script with sounds - by NanaFreak on 01-28-2007 at 11:18 AM
RE: Code for script with sounds - by Felu on 01-28-2007 at 11:21 AM
RE: Code for script with sounds - by Matti on 01-28-2007 at 11:28 AM
RE: Code for script with sounds - by vikke on 01-28-2007 at 11:54 AM
RE: Code for script with sounds - by Felu on 01-28-2007 at 11:57 AM
RE: Code for script with sounds - by vikke on 01-28-2007 at 12:01 PM
RE: Code for script with sounds - by Jumpfreakske on 01-29-2007 at 09:48 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On