$reverse

By Roy911 on Jan 13, 2007

Reverse Script by Roy911 (Edited version of picano's)

/*
Reverse Script by Roy911 (Edited version of picano's)
irc.abxy.org:#Roy911

Usage:
//echo $reverse(asdf)
Returns fdsa
*/

alias reverse {
  var %len = $len($1-)
  var %return = $null
  while (%len > 0) {
    var %return = %return $+ $mid($1-,%len,1) $+ $chr(32)
    dec %len
  }
  return %return
}

Comments

Sign in to comment.
llullu   -  Jan 17, 2019

Hey idk if this thread is still up but i search for the same thing but with the /me command ...

 Respond  
vegeto079   -  Jan 16, 2007

Dragon:
on :text:@reverse:*:{ msg $chan $reverse( $2- ) }

should work, its a simple script really

anyway, this is a nice script to have

 Respond  
PowerDragon   -  Jan 16, 2007

Hey Roy. You might have seen me in #abxy getting into trouble or something. Im mostly in #sno. I was wondering if you could make a version for bots. Like an on text thing. So when someone does: @reverse , the bot will say it in reverse?

 Respond  
Roy911   -  Jan 13, 2007

Yes, but while developing, I find it easier to read when declaring variables separately.

 Respond  
RussellReal   -  Jan 13, 2007

You can define more then 1 variable in a single declaration like so:
var %b = what, %a = 1yui, %h8 = myself, %luv = everyone-else
:)
cool btw ;)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.