Eggdrop TCL Script Color Codes

From SHellium Wiki
Jump to: navigation, search
Geographylogo.png In other languages: English | Afrikaans | Albanian | Arabic | Brazilian | Bulgarian | Catalan | Chinese | Croatian | Czech | Danish | Dutch | Esperanto | Estonian | Filipino | Finnish | Flemish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Latvian | Lithuanian | Macedonian | Malay | Malayalam | Norwegian (Bokmål) | Norwegian (Nynorsk) | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish | Swedish | Turkish | Ukrainian | Urdu

How To Color Code Your Bots Responses

Adding color to your bots responses and TCL scripts is easy. There's only a few things to know.

First \002 Triggers bold print Second \003 Triggers colored print

All flags must be closed or they carry over to all future output.

MIRC standard colors

  • 00 - White
  • 01 - Black
  • 02 - Blue
  • 03 - Green
  • 04 - Light Red
  • 05 - Brown
  • 06 - Purple
  • 07 - Orange
  • 08 - Yellow
  • 09 - Light Green
  • 10 - Cyan
  • 11 - Light Cyan
  • 12 - Light Blue
  • 13 - Pink
  • 14 - Grey
  • 15 - Light Grey

Examples

  • Bold Print Example:
  • puthelp "PRIVMSG $chan :This word is \002Bold\002 - these are not"
  • As you can see the \002 opens the bold print, the word "Bold" is printed bold, and then \002 closes the bold print and the rest of the line is not bold.


  • Colored Print Example:
  • puthelp "PRIVMSG $chan :This word is \00302Blue\00300 - these are white"
  • As you can see in this example the \003 flag is used to specify a color change, the 02 after the \003 specifies BLUE as the color. The word "Blue" is then printed in Blue.
  • Another \003 changes the color again, the 00 after the \003 specifies the rest of the text should be white.


  • Bold and Colored Example:
  • puthelp "PRIVMSG $chan :These words are \002\00308Yellow & Bold\00300\002 - these are plain"
  • In this example the output is both colored and bold. The \002 is the bold the \00308 is the yellow, then the \002 is closed
  • and the \003 is changed back to 00 (white text).


  • The same methods above can be applied to highlight the text as well.
  • To change background colors simply use this format
  • \003FF,BB
  • FF being the Foreground
  • BB being the Background


  • Colored Text on Background Example:
  • puthelp "PRIVMSG $chan :These words are \00301,04Black On A Red Background\003 - these are plain"
  • The above example puts black text on a red background, the \003 is the color change, 01 is black text, 04 is red background,


  • It's as simple as that. Now you can easily modify your scripts so that the output is more attractive.
Personal tools
Namespaces

Variants
Actions
Navigation
Indexes
SHellium Sites
Toolbox