Shoutbox

Gradient text problem - 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: Gradient text problem (/showthread.php?tid=62275)

Gradient text problem by Llama_dude on 07-01-2006 at 09:31 PM

Right, i wrote my self a script for gradient text, only problem being, people with out windows live plus, cant understand me, because ofthe colour codes infrotn and at the end of the text. And also, i cant send sounds when i have gradient text on.

here is my script :

function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
var MsgOutput = null;
MsgOutput= "[c=4]" + Message + "[/c=3]" ;

return MsgOutput;
}

I was wodnering if you guys could edit it so it only sends gradient to certain contacts( obviously i can write the addresses in the code myself) and if theres a way to send sounds aswell as using gradient text.
Oh, and if possible, i heard theres a fancy little feature that makes the gradient text go from one colour to another, the nback to the original?

I'd be grateful for a little help.
Thanks


RE: Gradient text problem by RaceProUK on 07-02-2006 at 12:05 AM

Any formatting codes in a /sound will mess up the sound message format.


RE: Gradient text problem by Llama_dude on 07-02-2006 at 11:51 AM

oh right, ok, thanks.
Is there a way to send gradient to certain contacts though?


RE: Gradient text problem by crank on 07-02-2006 at 11:58 AM

i got a extensive script for this but at this time the way of configurn it is with regedit

a quick fix for commands is like this:

code:
var SendUnaltered;

if (Message.charAt(0) == "/")
{
    sendUnaltered = true;
}
if (Message.charAt(0) != "/")
{
    Color1 = Math.floor(Math.random() * Color_Max);
    Color2 = Math.floor(Math.random() * Color_Max);

    return Parse_Text(Color1, Color2, Message);
    sendUnaltered = false;
}
if(sendUnaltered)
{
    return(Message);
}

Quickly copy pasted and editted a bit so i don't know about errors
RE: Gradient text problem by Llama_dude on 07-02-2006 at 01:13 PM

now ive lost my code completely. can anyone help me out on the basic gradient code?

sorry for being so demanding, lol


RE: Gradient text problem by RaceProUK on 07-02-2006 at 02:30 PM

crank, your code sucks tbh. I mean, no else, the use of a boolean when unecessary, and an unreachable statement!

code:
if (Message.charAt(0) == "/") return(Message);
Color1 = Math.floor(Math.random() * Color_Max);
Color2 = Math.floor(Math.random() * Color_Max);
return Parse_Text(Color1, Color2, Message);

is how it should look.

Edit: From 10 lines to 4!