What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » # help please

# help please
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: # help please
Your code was bugging me to try and read so I fixed it up... and then decided to re do it all for you :p It's just a lot easier to understand like this (to me anyway)

code:
var Asterix = false;
var pre = "_  (¯   |  |¯¯)  |     |  /¯¯'  _¯  ._)  |  |¯¯\  |´¯`|  \__,  ¯\n";
var post = "\n_  (¯   |  |¯¯)  |     |  /¯¯'  _¯  ._)  |  |¯¯\  |´¯`|  \__,  ¯";
var Contact = new Array();

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message.substr(0,5)=="/adon"){
        Contact[ChatWnd.Handle] = true;
        return "";
    }
    if (Message.substr(0,6)=="/adoff"){
        Contact[ChatWnd.Handle] = false;
        return "";
    }
    if(Message.substr(0,8)=="/adallon"){
        Asterix = true;
        return "";
    }
    if (Message.substr(0,9)=="/adalloff"){
        Asterix = false;
        return "";
    }
    if (Asterix==true&&Message.substr(0,1)!="/"){
        for(var i in Contact){
            if(i==ChatWnd.Handle&&Contact[i]==true){
                return pre+Message+post;
            }       
        }
    }else{
        return Message;
    }
}
<Eljay> "Problems encountered: shit blew up" :zippy:
10-15-2007 09:50 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
# help please - by general sirhc on 10-15-2007 at 04:08 AM
RE: # help please - by Chris4 on 10-15-2007 at 04:11 AM
RE: # help please - by Eddie on 10-15-2007 at 04:35 AM
RE: # help please - by roflmao456 on 10-15-2007 at 05:13 AM
RE: # help please - by Spunky on 10-15-2007 at 09:50 AM
RE: # help please - by general sirhc on 10-17-2007 at 12:26 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