coloured text..
Posted by ph4ze
Wednesday, April 05, 2006
Description: makes multicolour text
on *:input:*: {
if ($1 == c) {
/set %a 2
while ($ [ $+ [ %a ] ]) {
/set %text %text $colors($ [ $+ [ %a ] ])
/unset %return
/inc %a
}
//say %text
/unset %a
/unset %text
halt
}
}
alias ctrig {
if ($1 == 1) {
set %trig 1
echo random colour text had been turned on!
}
else {
set %trig 0
echo random colour text had been turned off!
}
}
alias colors {
/set %b 1
while (%b <= $len($1)) {
var %f = 1 2 3 5 6 10 12 14
var %rand = $gettok(%f,$rand(1,$gettok(%f,0,32)),32)
/set %return %return $+ [^K] $+ %rand $+ $right($left($1,%b),1)
/inc %b
}
return %return
}
on *:input:*: {
if ($1 == c) {
/set %a 2
while ($ [ $+ [ %a ] ]) {
/set %text %text $colors($ [ $+ [ %a ] ])
/unset %return
/inc %a
}
//say %text
/unset %a
/unset %text
halt
}
}
alias ctrig {
if ($1 == 1) {
set %trig 1
echo random colour text had been turned on!
}
else {
set %trig 0
echo random colour text had been turned off!
}
}
alias colors {
/set %b 1
while (%b <= $len($1)) {
var %f = 1 2 3 5 6 10 12 14
var %rand = $gettok(%f,$rand(1,$gettok(%f,0,32)),32)
/set %return %return $+ [^K] $+ %rand $+ $right($left($1,%b),1)
/inc %b
}
return %return
}