Skip to content
General IRCd

Colour/bold/underline Alias

A TG007 community discussion started by Silo.

Discussion 1 post
Page 1 of 1
Open
Topic #13583 · 1 published post · 1,468 views

Okay, this is very basic, but I like use Ctrl K, B & U alot for colouring,bold & underline, and found that code can start to look really messy, especially if you're using $+ to connect segments. I start using $chr(N) instead but thought I could improve on the cleanliness of the code.

 

If you want to try this out place this in your alias file (Alt A) or prefix each alias with "alias"

 

_bold return $+($chr(2),$1-,$chr(2))
_under return $+($chr(31),$1-,$chr(31))
_col.test return $+($chr(3),$1,$2)

 

Usage:

//echo -a $_col.short(12,Here is a string of blue text)

 

//echo -a $_bold($_col.short(4,Here is a string of bold red text))

 

//echo -a $_under($_bold($_col.short(13,Here is a string of bold pink underlined text)))

 

You can use any combination, simply wrap your text within the alias and you're good to go. Very clean way of using mIRC's colour codes.

 

Give it a try. If you use this I no need for any credits.

Edited Oct 22, 2009 4:41 AM by Silo