Converts every text inserted to an $chr(x) sign ;)
usage:
/chrtxt [-l]
if -l is specified it will be send to the channel (Without the orginal input)
without you will get an echo with the converted text.
A spam script it is but funny though :P
alias chrtxt {
var %length $len($iif($1 == -l, $2-, $1-)), %count 0, %end
while (%count < %length) {
inc %count
if (%count == %length) { %end = $addtok(%end, $chr(36) $+ chr $+ ( $+ $asc($mid($iif($1 == -l, $2-, $1-),%count,%count)) $+ ) $chr(32), 32) }
else {
%end = $addtok(%end, $chr(36) $+ chr $+ ( $+ $asc($mid($$iif($1 == -l, $2-, $1-),%count,%count)) $+ ) $chr(32) $chr(36) $+ $chr(43), 32)
}
}
if ($1 == -l) { msg $chan //echo -a %end }
else { echo -a Converting done ( $+ $1- $+ ): %end }
}