PoiXons * Colour * Script

By PoiXon on Nov 21, 2004

This Is A " Simple " Colour script juts click in ur nicklist and click on " on " and then choose ur colour , to turn it off just click off =) i kno its not very well coded ... But it works :)

menu nicklist {
  ^_PoiXons_^ Colour Script ! 
  .on { set %colour $$?="Enter Colour" | set %colours on }
  .off { unset %colours | unset %random }
  .random { set %random on }
}
on *:INPUT:*: {
  if ($left($1,1 != $chr(47)) {
  if (%colours == on) { msg $active %colour $1- | halt }
  if (%random == on) { 
    set %colorrand $rand(2,14) 
    if (/ isin $1-) { $1- | halt }
    if (%colorrand == 2) { msg $active 2 $1- | halt }
    if (%colorrand == 3) { msg $active 3 $1- | halt }
    if (%colorrand == 4) { msg $active 4 $1- | halt }
    if (%colorrand == 5) { msg $active 5 $1- | halt }
    if (%colorrand == 6) { msg $active 6 $1- | halt }
    if (%colorrand == 7) { msg $active 7 $1- | halt }
    if (%colorrand == 8) { msg $active 8 $1- | halt }
    if (%colorrand == 9) { msg $active 9 $1- | halt }
    if (%colorrand == 10) { msg $active 10 $1- | halt }
    if (%colorrand == 11) { msg $active 11 $1- | halt }
    if (%colorrand == 12) { msg $active 12 $1- | halt }
    if (%colorrand == 13) { msg $active 13 $1- | halt }
    if (%colorrand == 14) { msg $active 14 $1- | halt }
  }
}

Comments

Sign in to comment.
Ryodox   -  Nov 21, 2004

Perform your commands using the code I just pasted below, and you don\'t need a \"{ $1- | halt }\" bit.

 Respond  
Ryodox   -  Nov 21, 2004

Also, don\'t use \"if (/ isin $1-)\" because then I couldn\'t say anything if I had a \"/\" in the ENTIRE sentence. Use this: \"if (($left($1-,1) != /) && ($left($1-,1) != $readini($+(\",$mircini,\"),text,commandchar))) || ($ctrlenter)\"

 Respond  
xDaeMoN   -  Nov 21, 2004

Try this..a smaller code for your INPUT event --> on :INPUT:: { if ( / != $left($1,1) ) { if (%colours == on) { msg $active %colour $1- | halt } | if (%random == on) { var %colorrand = $rand(02,14) | msg $active $+(,%colorrand) $1- | halt } } }

 Respond  
DarthReven   -  Nov 21, 2004

lil better

 Respond  
DarthReven   -  Nov 21, 2004

use this: on :input:: { if (%cl == 1) { var %color $colorparce | msg $active %color $1- | haltdef } }

 Respond  
DarthReven   -  Nov 21, 2004

its old and btw why you in my chat room

 Respond  
PoiXon   -  Nov 21, 2004

i cant get it to work lol ... ill keep on trying :)

 Respond  
DarthReven   -  Nov 21, 2004

cause you have to seperate everything there are to aliases in that and an on input command

 Respond  
PoiXon   -  Nov 21, 2004

the script wont let me say /colors it just says /colors in the channel , lol

 Respond  
DarthReven   -  Nov 21, 2004

that is my random color input i made that when i first started scripting it picks a random color and then uses it to color your text and it can be toggled on and off by typing /colors

 Respond  
PoiXon   -  Nov 21, 2004

Wats That ?????

 Respond  
DarthReven   -  Nov 21, 2004

On :input:: { if (%cl == 1) { say $colorparce $1- | halt } } alias colorsparce { var %c $r(1,8) | if (%c == 1) { return 0 } | elseif (%c == 2) { return 1 } | elseif (%c == 3) { return 2 } | elseif (%c == 4) { return 3 } | elseif (%c == 5) { return 4 } | elseif (%c == 6) { return 5 } | elseif (%c == 7) { return 6 } | elseif (%c == 8) { return 7 } } alias colors { if (%cl == 0) { set %cl 1 } | else { set %cl 0 } }

 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.