Rainbow Script

By DarkDaemon on Nov 29, 2007

Hello I'm dark(Antwan) and this is my first rainbow script. Hope you enjoy!!!

on *:INPUT:#: {
  if (%colortype == $null) && ($mid($1,1,1) != /) { /echo -a 2Please specify a color type by typing /ctype light or /ctype dark.  You may also right click this window and select it in Rainbow Text->Options->Color Type. | /halt }
  if (%colorbold == $null) && ($mid($1,1,1) != /) { /echo -a 2Please specify bold by typing /cbold on or /cbold off.  You may also right click this window and select it in Rainbow Text->Options->Bold. | /halt }
  if (%color == on) && ($mid($1,1,1) != /) {
    /set %color.words $strip($1-)
    /set %color.wcounter 0
    if (%colorbold == on) { /set %color.final 0,1 }
    if (%colorbold == off) { /set %color.final 0,1 }
    if (%colortype == light) { /set %color.colors 4 7 8 9 11 13 | /set %color.colorsc 0 }
    if (%colortype == dark) { /set %color.ccolor 4 }
    while (%color.wcounter != $numtok(%color.words,32)) {
      /inc %color.wcounter
      /set %color.cletter 0
      while (%color.cletter != $len($gettok(%color.words,%color.wcounter,32))) {
        /inc %color.cletter
        if (%colortype == light) {
          /inc %color.colorsc
          if (%color.colorsc == 7) { /set %color.colorsc 1 }
          if ($mid($gettok(%color.words,%color.wcounter,32),%color.cletter,1) isnum) { /set %color.final %color.final $+  $+ $gettok(%color.colors,%color.colorsc,32) $mid($gettok(%color.words,%color.wcounter,32),%color.cletter,1) }
          else { /set %color.final %color.final $+  $+ $gettok(%color.colors,%color.colorsc,32) $+ $mid($gettok(%color.words,%color.wcounter,32),%color.cletter,1) }
        }       
        if (%colortype == dark) {
          if ($mid($gettok(%color.words,%color.wcounter,32),%color.cletter,1) isnum) { /set %color.final %color.final $+  $+ %color.ccolor $mid($gettok(%color.words,%color.wcounter,32),%color.cletter,1) }
          else { /set %color.final %color.final $+  $+ %color.ccolor $+ $mid($gettok(%color.words,%color.wcounter,32),%color.cletter,1) }
          /inc %color.ccolor
          if (%color.ccolor == 14) { /set %color.ccolor 4 }
        }
        if (%color.cletter == $len($gettok(%color.words,%color.wcounter,32))) { /break }
      }
      /set %color.final %color.final $+ $chr(32) $+ $chr(32)
      if (%color.wcounter == $numtok(%color.words,32)) { /break }
    }
    /msg $active %color.final
    /unset %color.*
    /halt
  }
}

alias /color {
  if ($1 == on) { /set %color on }
  if ($1 == off) { /set %color off }
}
alias /ctype {
  if ($1 == light) { /set %colortype light }
  if ($1 == dark) { /set %colortype dark }
}
alias /cbold {
  if ($1 == on) { /set %colorbold on }
  if ($1 == off) { /set %colorbold off }
}

menu channel {
  Rainbow Text
  .Options
  ..Bold
  ...$iif(%colorbold == on,$style(1)) $+ On: /set %colorbold on
  ...$iif(%colorbold == off,$style(1)) $+ Off: /set %colorbold off
  ..Color Type
  ...$iif(%colortype == light,$style(1)) $+ Light:  /set %colortype light
  ...$iif(%colortype == dark,$style(1)) $+ Dark: /set %colortype dark
  .$iif(%color == on,$style(1)) $+ On: /set %color on
  .$iif(%color == off,$style(1)) $+ Off: /set %color off
}

Comments

Sign in to comment.
chachin   -  Jun 21, 2011

yeah it double does it
[5:58:55pm] <~KnuckleHead> :D
[5:58:55pm] <~KnuckleHead> :D
[5:58:57pm] <~KnuckleHead> >:o
[5:58:57pm] <~KnuckleHead> >:o
[5:58:59pm] <~KnuckleHead> no
[5:58:59pm] <~KnuckleHead> no
[5:59:00pm] <~KnuckleHead> wtf
[5:59:00pm] <~KnuckleHead> wtf

 Respond  
GoldFish   -  Jun 15, 2010

doesnt work for me >.< this happend when i said "test"
<~[CT]Goldfish> ontest
<~[CT]Goldfish> 0,14t7e8s9t
<~[CT]Goldfish> 0,14t7e8s9t

umm what

 Respond  
^Alexis^   -  Jul 30, 2009

Love you <3

 Respond  
SnoooP   -  May 26, 2008

RagBot proof helps lol... I could go on any single snippet on this site & say
\"this isnt yours you copied it & stole it... I cant remember were you stole it from.. Or from whom it was stolen.. But you stole it..\"
lol... Untill there is proof dont make accusations.

 Respond  
EL   -  May 26, 2008

@ragbot, no proof stfu till then k thanks:P

 Respond  
RagBot   -  May 26, 2008

this is either copied or stole from, i forget the website, but i\'ve seen this before i came to this site, hope you weren\'t the one that took it :O and some1 else got it from you. Did you take it?

 Respond  
parselmouth   -  Feb 19, 2008

hey do i have to add any aliases or menu things?

 Respond  
napa182   -  Feb 14, 2008

um could be better. but i do like to options you incorped in to it.
heres an ez one..

on *:input:*:{
  if (%rainbows == on) && (/* !iswm $1) {
    var %x = $len($1-),%y = 1 
    while (%y <= %x) { 
      var %z = $iif($mid($1-,%y,1) = $chr(32),$chr(1), $+ $rand(0,15) $+ $mid($1-,%y,1)) 
      var %zz = %zz $+ %z 
      inc %y
    }  
    msg $chan $replace(%zz,$chr(1),$chr(32)) 
    halt 
  }
}
menu channel {
  .Rainbow Colors
  ..On:{ set %rainbows on | echo -a Colors Are Now On }
  ..Off:{ unset %rainbows | echo -a Colors Are Now Off }
}
 Respond  
DarkDaemon   -  Feb 14, 2008

More comments :D

 Respond  
EL   -  Dec 12, 2007

Well folks theres the biggest jump in mIRC code programming i have ever seen.Cant check to see if it works cause the server im on is down but i\'ll be sure to check it out soon.`-.-

 Respond  
juuruichki   -  Dec 12, 2007

kewl script Alexis...even though i script way betta than u _

 Respond  
DarkDaemon   -  Nov 29, 2007

Tell me if you like it or anyway bugs or mistakes!

 Respond  
DarkDaemon   -  Nov 29, 2007

Tell me if you like it or anyway bugs or mistakes!

 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.