Colorize Text

By StaticX__ on Jul 13, 2008

It adds some color in the text..
Just type /xcolor [-bu|-n]
-b = Color + Bold
-u = Color + Underline
-n = Color

alias xcolor {
  if ($1 == -b) { /msg $chan $chr(2) $+ $chr(3) $+ $r(2,14) $+ $2- }
  if ($1 == -u) { /msg $chan $chr(31) $+ $chr(3) $+ $r(2,14) $+ $2- }
  if ($1 == -bu) { /msg $chan $chr(2) $+ $chr(31) $+ $chr(3) $+ $r(2,14) $+ $2- }
  if ($1 == -n) { /msg $chan $chr(3) $+ $r(2,14) $+ $2- }
}

Comments

Sign in to comment.
Jamiie   -  Jul 14, 2008

Nothing is \"more complicated\" if you don\'t have the urge to learn it.

 Respond  
StaticX__   -  Jul 14, 2008

yep, but more complicated..

 Respond  
napa182   -  Jul 13, 2008

instead of doing

$chr(2) $+ $chr(3) $+ $r(2,14) $+ $2-

you can clean it up a bit by doing

$+($chr(2),$chr(3),$r(2,14),$2-)

and also no need for the / in the front of msg

you can also do this on one line as well. heres one way of doing that.

alias xcolor { $iif($1 == -b,msg $chan $+($chr(2),$chr(3),$r(2,14),$2-),$iif($1 == -u,msg $chan $+($chr(31),$chr(3),$r(2,14),$2-),$iif($1 == -bu,msg $chan $+($chr(2),$chr(31),$chr(3),$r(2,14),$2-),$iif($1 == -n,msg $chan $+($chr(3),$r(2,14),$2-))))) }
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.