What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release]Snippet Code for MSN based chatrooms

[Release]Snippet Code for MSN based chatrooms
Author: Message:
yoshiko
New Member
*

Avatar
"Script Kiddie"!? Who? Me?

Posts: 3
– / Female / Flag
Joined: May 2008
O.P. [Release]Snippet Code for MSN based chatrooms
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.
code:
bottle = 10
while bottle>=0:
  print "With this",bottle,"bottles that i have, and this one i give to ya, there is a total of",bottle-1,"in my hands!"
  bottle=bottle-1
  raw_input()
print "With this 0 bottles i have, and those 10 bottles i've gave, is time to think, about ask to you!"
raw_input()
05-31-2008 10:22 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Release]Snippet Code for MSN based chatrooms - by yoshiko on 05-31-2008 at 10:22 AM
RE: [Release]Snippet Code for MSN based chatrooms - by mynetx on 05-31-2008 at 11:03 AM


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