Author Topic: Chat Colours  (Read 3242 times)

Seeing as the help section has been abandoned.  How do I make it so when I talk it will always say << and >> before and after text? Also for colours as the subject says. I don't want any funny stuff posted here, just the facts please.

I don't want any funny stuff posted here, just the facts please.

Please don't reply to that, I really need to know how to do it.

bleh can help you in this matter.

Bleh to the rescue!!! Anyday now :P

Open rtb/client/scripts/messageHud.cs

Find

function MessageHud_Edit::eval(%this)
{
   %text = trim(%this.getValue());
   if(%text !$= "")
   {
      if(MessageHud.isTeamMsg)
         commandToServer('teamMessageSent', %text);
      else if(MessageHud.isLocalMsg)
         commandToServer('localMessageSent', %text);
      else
         commandToServer('messageSent', %text);
    }

   MessageHud.close();
}


Replace

commandToServer('messageSent', %text);

With

commandToServer('messageSent',"TEXT HERE" @ %text @ "TEXT HERE");

Or
commandToServer('messageSent',"TEXT HERE" @ %text @);

You can also add colors

\c0 - black
\c1 - red
\c2 - white
\c3 - white
\c4 - pink
\c5 - blue


why do you insist on having annoying, color changing, space wasting messages, might i ask?

I don't know about in Blockland, but I know how to do this on the forums, and I ain't tellin'! *Waits wait for everyone to search and have it ruined.*

I don't know about in Blockland, but I know how to do this on the forums, and I ain't tellin'! *Waits wait for everyone to search and have it ruined.*

Just rainbow effect it from a chat program such as Yahoo! or MSN plus.

how long did that take you....


i found a site using that..i think i posted "yay im spamming" or something ^_^

I don't know about in Blockland, but I know how to do this on the forums, and I ain't tellin'! *Waits wait for everyone to search and have it ruined.*

Yeah.  You can push quote, and get the text.  Rainbow text in Blockland isn't really rainbow, because you only have 5 colors, but yeah, it is possible with the string manipulation functions.

BTW,

Quote
\c0 - black
\c1 - red
\c2 - white
\c3 - white
\c4 - pink
\c5 - blue

Those ML codes aren't right.  I'm too lazy to look up the correct colors though.
« Last Edit: November 21, 2006, 07:33:17 PM by Bleh7777 »

\c0 - white
\c1 - gray
\c2 - green
\c3 - red
\c4 - yellow
\c5 - blue