This is basically an edited version of beau's "Reverse Text Script" all I did was just made it so you won't have to keep typing /rev. It was kinda getting on my nerves @.@ Anyway, just copy and paste into your remotes, Right click in any channel, go to reverse to turn it on, and just go to reverse a gain to turn it off. Enjoy.
menu channel {
reverse
.on:/set %backwards on
.off:/set %backwards off
}
on 1:INPUT:#: {
if (%backwards == on ) {
if ($1) {
var %c $strip($1-),%a $len(%c)
while %a >= 1 {
var %b %b $+ $replace($mid(%c,%a,1),$chr(32),$str($chr(32),2))
dec %a
}
}
msg $active %b | halt
}
}
Adding on to what Jethro_ posted, you can use groups instead of variables, to enable or disable the script.
on *:INPUT:*: {
if ($left($1,1) !isin / $readini($mircini,text,commandchar)) && (!$ctrlenter) && (!$inpaste) {
say $+($chr(9),$regsubex($1-,/(.)/g,$mid(\A,-\n,1))) | halt
}
}
to
menu * {
$iif($group(#Rev) == On,$style(1)) Reverse Text!
.$iif($group(#Rev) == On,$style(2)) On: .enable #Rev
.$iif($group(#Rev) == Off,$style(2)) Off: .disable #Rev
}
#Rev Off
on *:input:*: {
if (!$regex($1-,^[\/(.*)])) && (!$ctrlenter) && (!$inpaste) {
say $+($chr(9),$regsubex($1-,/(.)/g,$mid(\A,-\n,1))) | halt
}
}
#Rev End