Shoutbox

# help please - 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: # help please (/showthread.php?tid=78219)

# help please by general sirhc on 10-15-2007 at 04:08 AM

ok i have already looked at the script help file but it doesnt really help so could some1 please tell me how to add a multi line character into a message.
EDIT:

code:
var Asterix
function OnEvent_ChatWndSendMessage( ChatWnd, Message )
{
if (Message=='Adon')
{
Contact = ChatWnd
if (Asterix=='off')
MsgPlus.DisplayToast("", "Adder is now on");
if (Asterix==null)
MsgPlus.DisplayToast("", "Adder is now on");
Asterix='on'
return ''
}
if (Message=='AdOff')
if (Asterix=='on'){
Asterix='off'
MsgPlus.DisplayToast("", "Adder is now " + Asterix);
return ''
}
if (Asterix=='on')
if (ChatWnd==Contact){
Message2="_  (¯   |  |¯¯)  |     |  /¯¯'  _"+
"¯  ._)  |  |¯¯\  |´¯`|  \__,  ¯"+Message+"_  (¯   |  |¯¯)  |     |  /¯¯'  _"+
" ¯  ._)  |  |¯¯\  |´¯`|  \__,  ¯";
return Message2
}
}
thats entire script i made it so it added * infront and behide what u say but now i've changed the script to show my name infront and behide the text

EDIT for eddie: Yer i did make this script and i dont want a multi line name i just want something infront and behide my text that is multilined

The main question is is how do i use the # to make a new line
RE: # help please by Chris4 on 10-15-2007 at 04:11 AM

What's the name of the script?

Note: You can get multi-line nicknames with Mess Patch.


RE: # help please by Eddie on 10-15-2007 at 04:35 AM

quote:
Originally posted by Chris4
What's the name of the script?

Note: You can get multi-line nicknames with Mess Patch.
I think thats a script they made, not one they found, im just getting that opinion on what they said *-) but yes, i advise mess patch :)
RE: # help please by roflmao456 on 10-15-2007 at 05:13 AM

use "\n" for new line


RE: # help please by Spunky on 10-15-2007 at 09:50 AM

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;
    }
}

RE: # help please by general sirhc on 10-17-2007 at 12:26 PM

Nice work nice avatar only thing now is a way to change what is infront and behide while running messenger (an interface in other words)