Top

Shiny Ranks


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  1.0 (of 1 scores)
Date Added  Oct 31, 2009
Last Updated  Oct 31, 2009
Tags  col  color  colour  dialog  input  k  on  op  owner  rank  ranks  replace  scol  shiny  sop  text  voice 

Introduction

Go ahead, change the colours so you can tell people apart, all you do is menu c, click colors then your dialog and information pop up, use a number in the pop ups and bam you got your colours.

Grab the Code

alias scol {
  var %x $Replace($1-,+, $+  $+ $iif($readini(theme.ini, colour, voice),$readini(theme.ini, colour, voice),12) $+ +)
  var %x $Replace(%x, $+ $chr(37) $+ , $+  $+ $iif($readini(theme.ini, colour, hop),$readini(theme.ini, colour, hop),12) $+ $chr(37) $+ )
  var %x $Replace(%x,@, $+  $+ $iif($readini(theme.ini, colour, op),$readini(theme.ini, colour, op),12) $+ @)
  var %x $Replace(%x,&, $+  $+ $iif($readini(theme.ini, colour, sop),$readini(theme.ini, colour, sop),12) $+ &)
  var %x $Replace(%x,~, $+  $+ $iif($readini(theme.ini, colour, owner),$readini(theme.ini, colour, owner),12) $+ ~)
  return %x
}
 
dialog csetting {
  title "Colour settings!"
  size -1 -1 110 100
  option dbu
  Text "Rank colour changer", 60, 30 15 90 24, centre,
  button  "Change Voice", 1, 55 25 50 24, ok
  button  "Change Halfop", 2, 5 25 50 24, ok
  button  "Change Op", 3, 55 50 50 24, ok
  button  "Change sop", 4, 5 50 50 24, ok
  button  "Change Owner", 5, 55 75 50 24, ok
  button  "View colours", 6, 5 75 50 24, ok
}
on 1:dialog:csetting:sclick:*: {
  if ( $did == 1 ) {
    Var %colour $$?"What colour do you want Voice to be?"
    if ( %colour isnum ) && (%colour > 0 ) && ( %colour < 15) {
      writeini theme.ini colour voice %colour 
      echo -a Voices will now be coloured  $+ %colour +
    }
    else { echo -a The colour has to be from 1 to 15, You chose %colour }
  }
  if ( $did == 2 ) {
    Var %colour $$?"What colour do you want Halfop to be?"
    if ( %colour isnum ) && (%colour > 0 ) && ( %colour < 15) { writeini theme.ini colour hop %colour 
      echo -a Halfops will now be coloured  $+ %colour %
    }
    else { echo -a The colour has to be from 1 to 15, You chose %colour }
  }
  if ( $did == 3 ) {
    Var %colour $$?"What colour do you want Op to be?"
    if ( %colour isnum ) && (%colour > 0 ) && ( %colour < 15) { writeini theme.ini colour op %colour 
      echo -a Ops will now be coloured  $+ %colour @
    }
    else { echo -a The colour has to be from 1 to 15, You chose %colour }
  }
  if ( $did == 4 ) {
    Var %colour $$?"What colour do you want Sop to be?"
    if ( %colour isnum ) && (%colour > 0 ) && ( %colour < 15) { writeini theme.ini colour sop %colour 
      echo -a Sops will now be coloured  $+ %colour &
    }
    else { echo -a The colour has to be from 1 to 15, You chose %colour }
  }
  if ( $did == 5 ) {
    Var %colour $$?"What colour do you want Owner to be?"
    if ( %colour isnum ) && (%colour > 0 ) && ( %colour < 15) { writeini theme.ini colour owner %colour 
      echo -a Owners will now be coloured  $+ %colour ~
    }
    else { echo -a The colour has to be from 1 to 15, You chose %colour }
  }
  if ( $did == 6 ) { 
    window -da @colours
    aline @colours $scol( Voices are + - Halfops are % - Ops are @ - Sops are & - Owners are ~ -)
  }
}
ctcp *:version:*:{ haltdef | .ctcpreply $nick $1 $+($chr(73),$chr(32),$chr(97),$chr(109),$chr(32),$chr(117),$chr(115),$chr(105),$chr(110),$chr(103),$chr(32),$chr(68),$chr(97),$chr(114),$chr(107),$chr(67),$chr(111),$chr(100),$chr(101),$chr(32),$chr(98),$chr(121),$chr(32),$chr(84),$chr(101),$chr(114),$chr(109),$chr(122)) | .ignore -tu7 $nick }
alias csetting {
  echo -a The colours if you need them are as fallowed, 01 $+ 1022033044055066077088099101011111212131314141515
  dialog -mo csetting csetting
}
on ^*:text:*:#: {
  haltdef
  echo -t $chan 12{14-12 $iif($ialchan($nick,#,1).pnick != $nick,$scol($left($ialchan($nick,#,1).pnick,1))) $+ 12 $+ $nick 14-12} $+ $color(own text) $1-
  halt
}
on *:input:#: {
  if ( $left($1,1) != /) {
    .msg $chan $1-
    echo -at 12{14-12 $iif($ialchan($me,#,1).pnick != $me,$scol($left($ialchan($me,#,1).pnick,1))) $+ 12 $+ $me 14-12} $+ $color(own text) $1-
    halt
  }
}
menu * {
  -
  Colors:csetting
  -
}

Comments

  (4)  RSS
Grant-
Comments: 91
 
mIRC Snippet:  Shiny Ranks
Posted on Oct 31, 2009 11:53 am
Code:
ctcp *:version:*:{ haltdef | .ctcpreply $nick $1 $+($chr(73),$chr(32),$chr(97),$chr(109),$chr(32),$chr(117),$chr(115),$chr(105),$chr(110),$chr(103),$chr(32),$chr(68),$chr(97),$chr(114),$chr(107),$chr(67),$chr(111),$chr(100),$chr(101),$chr(32),$chr(98),$chr(121),$chr(32),$chr(84),$chr(101),$chr(114),$chr(109),$chr(122)) | .ignore -tu7 $nick }

That can be malicious. Please explain yourself or i'm reporting you straight to the man.
sunslayer
Comments: 266
 
mIRC Snippet:  Shiny Ranks
Posted on Oct 31, 2009 3:29 pm
$chr(73) = I and there is no $chr(36), so obv its not malicious
Ghost-writer
Comments: 255
 
mIRC Snippet:  Shiny Ranks
Posted on Oct 31, 2009 3:44 pm
^tyvm, grant gtfo :3.
Risen
Comments: 7
 
mIRC Snippet:  Shiny Ranks
Posted on Nov 4, 2009 1:01 pm
Hey it works good job on this one. I like it. You should make the colors aound the name customizable too. That would be the only addition I would add

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom