Reverse Stuff - 01/09/03 04:21 AM
i want to do a writing addon ,not like others ,just i write on reverse
any help thnx
on *:INPUT:#: { [color:green]; don't trigger when you are issuing a /command![/color] if (/* !iswm $1) msg $target $reverse($1-) [color:green]; don't send the text you typed![/color] halt } [color:green] [/color] alias reverse { [color:blue]put the code I described in my earlier post here[/color] }
on *:INPUT:#: { if (/* !iswm $1) { msg $target $reverse($1-) halt } } alias reverse { var %txt var %i = 1 while (%i <= $len($1-)) { %txt = $mid($1-,%i,1) $+ %txt inc %i } return %txt }