Shoutbox

[Release]Snippet Code for MSN based chatrooms - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Release]Snippet Code for MSN based chatrooms (/showthread.php?tid=84036)

[Release]Snippet Code for MSN based chatrooms by yoshiko on 05-31-2008 at 10:22 AM

Hello.

So, i got yesterday's question's solved, and now i got the script i was wanting to do =3

This script allows the usage of a MSN account as chatroom. It allows up to 15 or 16 users, the rest wont get newer messages.

To stop recieving messages, write on the chatroom: ./x (dot included)

There arent any administrative features, and, also, i want to say: please, dont remove the copyright added.

here we go:

code:
/*****************
Script hecho por
Script coded by
yoshiko
Remember, open source doesnt mean copyleft.
(C)yoshiko 2008 Base script
You may redistribute, package, modify and then add yourself to the credits in this script,
as long as you DONT delete the copyright you're reading
right now.
-----------------
MSN Chat 1.0
Features:
yoshiko: Chatroom Feature (JabberAlike) v1
yoshiko: Last Message on Personal Message. v1
******************/
var Sobrenombre = "###";
var ULTMESS;
var ULTWND;

function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_Uninitialize(MessengerExit)
{
}

function OnEvent_ChatWndDestroyed(ChatWnd){
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message,MsgKind){
    if(Message==ULTMESS){
    return Message;
    }   
    var e = new Enumerator(ChatWnd.Contacts);
    var Cnt = e.item();
    var Sobrenombre = Cnt.Name;
    if(Message.charAt(0)=="." && Message.charAt(1)=="/" && Message.charAt(2)=="x"){
        ChatWnd.SendMessage("/close");
    }
    else{
        Messenger.MyPersonalMessage = Sobrenombre + "@" + Messenger.MyName + ": " + Message;
        if(Origin==Messenger.MyName){ Messenger.MyPersonalMessage = Messenger.MyName + "@" + Sobrenombre + ": " + Message;}
        ULTMESS = Sobrenombre + ": " + Message;
        ChatWnd.SendMessage("/msgall " + ULTMESS);
        }
    }[/code

Paste in a new script. Enjoy.

RE: [Release]Snippet Code for MSN based chatrooms by mynetx on 05-31-2008 at 11:03 AM

Maybe have a look at www.messengergroupchat.com?