mIRC Homepage

Need help using script

Posted By: cub28

Need help using script - 24/07/15 04:11 AM

I have this code that doesn't say anything about how to actually use it. Its code for using rainbow script. i know i know, im sure its been talked about for eons but i can't seem to find a usable tut for it anywhere on google. heres the text:

menu channel,status,nicklist {
Default Output
.Rainbow
..On: set %rbow true | set %reverse false | set %rainverse false | echo 9 Rainbow text is now enabled
..Off: set %rbow false | echo 4 Rainbow text is now disabled
.Reverse
..On: set %reverse true | set %rbow false | set %rainverse false | echo 9 Reverse text is now enabled
..Off: set %reverse false | echo 4 Reverse text is now disabled
.Both
..On: set %rainverse true | set %rbow false | set %reverse false | echo 9 Both options are now enabled
..Off: set %rainverse false | echo 4 Both options are now disabled
}
on *:INPUT:#:{
if ($left($1,1) != /) {
msg $active $iif(%rbow == true,$rainbow($1-),$iif(%reverse == true,$rev($1-),$iif(%rainverse == true,$rainbow($rev($1-)),$1-)))
haltdef
}
}

alias -l nextcolor {
if ($$1 == 04) return 07
elseif ($$1 == 07) return 08
elseif ($$1 == 08) return 09
elseif ($$1 == 09) return 11
elseif ($$1 == 11) return 12
elseif ($$1 == 12) return 02
elseif ($$1 == 02) return 06
elseif ($$1 == 06) return 13
elseif ($$1 == 13) return 04
}
alias -l rainbow {
var %pos = 1, %color = 04, %result = $chr(3)
while (%pos <= $len($1-)) {
%result = %result $+ %color $+ $mid($1-,%pos,1) $+ $chr(3)
inc %pos
%color = $nextcolor(%color)
}
if ($isid) return %result
else say %result
}

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

How. Do. I. Use. This???

-Cub28
Posted By: sparta

Re: Need help using script - 24/07/15 02:46 PM

Did you put the code in a clean file in remote? ALT + R in mirc open up the remote section.
Posted By: Plornt

Re: Need help using script - 28/07/15 09:16 PM

Originally Posted By: sparta
Did you put the code in a clean file in remote? ALT + R in mirc open up the remote section.


Once you have done this ^ you should be able to right click the channel/query to select the custom rainbow text menu items it adds. (Assuming the script works correctly).
© 2022 mIRC Discussion Forums