$rainbow

By Roy911 on Jan 13, 2007

Rainbow Script by Roy911

Insert into Remotes

Usage: //echo $rainbow(asdf) would return asdf in rainbow colors.

/*

Rainbow Script by Roy911
irc.abxy.org:#Roy911

Usage:
//echo $rainbow(asdf)
would return asdf in rainbow colors.
*/

alias rainbow {
  var %text = $1-
  var %text = $replace(%text,$chr(32),$chr(95))
  var %len = $len($1-)
  var %color.pos = 1
  var %pos = 1
  while (%len != 0) {
    if (%color.pos == 7) { var %color.pos = 1 }
    if (%color.pos == 1) { var %color = 4 }
    if (%color.pos == 2) { var %color = 7 }
    if (%color.pos == 3) { var %color = 8 }
    if (%color.pos == 4) { var %color = 3 }
    if (%color.pos == 5) { var %color = 2 }
    if (%color.pos == 6) { var %color = 6 }
    var %return = %return $+  $+ %color $+ $mid($1-,%pos,1) $+ 
    inc %color.pos 1 | dec %len 1 | inc %pos 1 | var %color $null
  }
  var %return = $replace(%return,$chr(95),$chr(32))
  var %return =  $+ %return $+ 
  return %return
  ;echo $active %return 
  ;msg $active %return
}

Comments

Sign in to comment.
AHBARAR   -  Jun 03, 2007

its good script but the pb its not working on msg it works on me only if u r using it in ur script like //me $rainbow(lol)

More
 Respond  
F*U*R*B*Y*   -  Jan 17, 2007

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

sorry this is correct version

More
 Respond  
F*U*R*B*Y*   -  Jan 17, 2007

just

on :TEXT:@rainbox :#: { rainbow $2- }

More
 Respond  
PowerDragon   -  Jan 16, 2007

Hey again. Can you make a bot version so when someone types: @rainbow the bot will say it in rainbow colors? Like an on text thing.

More
 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.