What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Found an old script, need help getting it to work!

Found an old script, need help getting it to work!
Author: Message:
bcapewell
New Member
*


Posts: 3
Joined: Jun 2009
O.P. Sad  Found an old script, need help getting it to work!
I found an old script that allows you to ignore somebody, the problem is, it's really unstable and once using the !unignore command, it will continue to ignore that person. I used to use stuffplug but since the 9.0 upgrade they haven't made a new version.

code:
var list = Array();

function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
    for (i=0; i<list.length;i++)
    {
        if (Origin === Messenger.MyContacts.GetContact(list[i]).Name)
        {
            ChatWnd.SendMessage("/close")
        }
        else
        {
            return Message;
        }
    }
}

function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
    if (Message === "!ignore")
    {
        var ChatWndContacts = ChatWnd.Contacts;
        if(ChatWndContacts.Count == 1)
        {
            var e = new Enumerator(ChatWndContacts);
            var Contact = e.item();
            list[list.length] = Contact.Email
        }
        return "";
        ChatWnd.SendMessage("/close")
    }
    else if (Message === "!unignore")
    {
        var ChatWndContacts = ChatWnd.Contacts;
        if(ChatWndContacts.Count == 1)
        {
            var e = new Enumerator(ChatWndContacts);
            var Contact = e.item();
            for (i=0;i<list.length;i++)
            {
                if(Contact.Name === list[i])
                {
                    list[i] = "";
                }
            }
            return "";
        }
    }
}

If anyone could help me I'd be very grateful, thank you.
I have no experience with scripts (N)
06-14-2009 10:33 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Found an old script, need help getting it to work! - by bcapewell on 06-14-2009 at 10:33 PM
RE: Found an old script, need help getting it to work! - by SmokingCookie on 06-27-2009 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