Backwards Text

By MagicRevealer09 on Feb 20, 2010

This was made by MasterOfTheXP!!! Not Me!!

YouTube.com/MasterOfTheXP

irc.thunderirc.com

MSTR

Just a simple code (mega simple) to make any text you say, backwards! Not the letters, the words, I'll show you an example:

 <HaydnA> !backwards Code!!! This Love I
 <Trojan> I Love This Code!!! 

Just load into your bots remotes, and type !backwards to trigger it...

Enjoy!

Edit this as much as you want!

on *:TEXT:!backwards *:#: {
  msg $chan $50 $49 $48 $47 $46 $45 $44 $43 $42 $41 $40 $39 $38 $37 $36 $35 $34 $33 $32 $31 $30 $29 $28 $27 $26 $25 $24 $23 $22 $21 $20 $19 $18 $17 $16 $15 $14 $13 $12 $11 $10 $9 $8 $7 $6 $5 $4 $3 $2
}
Sign in to comment.
sunslayer   -  Feb 21, 2010

/me gives Jethro_ a piece of candy

 Respond  
Jethro   -  Feb 20, 2010

sunslayer, you can do this to achieve the same thing without using $gettok and $instok, not even an alias:

on *:text:!backwards *:#: {
  var %x $0 | while (%x > 1) { var %y %y $ [ $+ [ %x ] ] | dec %x } | .msg # %y
}
 Respond  
bWFkZHk   -  Feb 20, 2010

Yeah I was going to post something close to that, I had to get off to go to work, But i do agree, you dont need to count down like that, you could just do as he said $1-

 Respond  
sunslayer   -  Feb 20, 2010

instead of using $50 $49 $48 etc you can use $1- which will return every token, and since this only goes up to $50 this wont work if the message is 51 words long

on *:text:!backwords*:#:.msg # $backwords($$2-)
alias backwords {
  var %a = 1,%b
  while ($gettok($$1-,%a,32)) {
    %b = $instok(%b,$v1,$0,32)
    inc %a
  }
  return %b
}
 Respond  
bWFkZHk   -  Feb 20, 2010

LOL! nice

 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.