This code is a talker. usage: //msg # $jc(Text Here)
The text appears in color, switches off between 'color1' and 'color2'
Once you load the script, type /jc and it will have you set the colors you want. Once those are set, its pretty self explanitory.
; //msg # $jc(Text here) to use
; //jct -a to activate 'Talker', which makes you automatically talk in the code.
; //jct -d to deactivate the Talker.
jc {
if (%color1 == $null) && (%color2 == $null) {
set %color1 $$?="Color 1? (#)"
set %color2 $$?="Color 2? (#)"
return
}
var %x = 1
while (%x <= $gettok($1-,0,32)) {
var %y = 1
var %last = %color1
while (%y <= $mid($gettok($1-,%x,32),0,0)) {
var %last = $iif(%last == %color1,%color2,%color1)
var %text = $iif(%text != $null,%text) $+ $+ %last $+ $+ $mid($gettok($1-,%x,32),%y,1)
inc %y
}
var %comp = $iif(%comp != $null,%comp) %text
var %text
inc %x
}
return %comp
}
alias jct {
if ($1 == -a) { /.enable #jct | //echo -a $jc(Talker Enabled.) }
if ($1 == -d) { /.disable #jct | //echo -a $jc(Talker Disabled.) }
}
#jct on
on *:INPUT:*:{
if (/ != $left($1,1) {
.msg $active $jc($1-)
}
}
#jct end