[script]
n0=;########################################### NICK COLORS ###############################################################
n1=;###################  NeOn mIRC Script ####################################################################################
n2=;###################################################################################################################
n3=
n4=alias nickcolors {
n5=  if $dialog(nickcolors) = $null { dialog -m nickcolors nickcolors }
n6=}
n7=
n8=dialog nickcolors {
n9=  title "Подсветка ников"
n10=  size 400 300 215 258
n11=  icon icons\nickcolors.ico
n12=  radio "Включена", 1, 30 4 80 20
n13=  radio "Выключена", 12, 115 4 100 20
n14=  text "Свой ник:", 2, -5 30 90 21, right
n15=  text "Операторы:", 3, -5 55 90 21, right
n16=  text "Войсы:", 4, -5 80 90 21, right
n17=  text "Обыкновенные:", 5, -5 105 90 21, right
n18=  text "Полуопы:", 21, -5 130 90 21, right
n19=  text "Админы:", 22, -5 155 90 21, right
n20=  text "Фаундеры:", 23, -5 180 90 21, right
n21=  text "Уведомления:", 6, -5 205 90 21, right
n22=  combo 7, 90 25 120 150, size drop
n23=  combo 8, 90 50 120 150, size drop
n24=  combo 9, 90 75 120 150, size drop
n25=  combo 10, 90 100 120 150, size drop
n26=  combo 31, 90 125 120 150, size drop
n27=  combo 32, 90 150 120 150, size drop
n28=  combo 33, 90 175 120 150, size drop
n29=  combo 11, 90 200 120 150, size drop
n30=  button "Хорошо", 100, 105 226 105 28, ok
n31=}
n32=
n33=on *:dialog:nickcolors:sclick:1: {
n34=  /set %nickcolors.enabled on
n35=}
n36=
n37=on *:dialog:nickcolors:sclick:12: {
n38=  /set %nickcolors.enabled off
n39=}
n40=
n41=on *:dialog:nickcolors:init:*: {
n42=  dll libraries\mdx.dll MarkDialog $dname
n43=  dll libraries\mdx.dll SetControlMDX $dname 1432 contexthelp nocontrol > libraries\dialogs.mdx
n44=  if (%nickcolors.enabled == on) { did -c nickcolors 1 }
n45=  if (%nickcolors.enabled == off) { did -c nickcolors 12 }
n46=  dll libraries\colorcombo.dll COMBO $dname 7
n47=  dll libraries\colorcombo.dll COMBO $dname 8
n48=  dll libraries\colorcombo.dll COMBO $dname 9
n49=  dll libraries\colorcombo.dll COMBO $dname 10
n50=  dll libraries\colorcombo.dll COMBO $dname 11
n51=
n52=  dll libraries\colorcombo.dll COMBO $dname 31
n53=  dll libraries\colorcombo.dll COMBO $dname 32
n54=  dll libraries\colorcombo.dll COMBO $dname 33
n55=
n56=  did -c nickcolors 7 $calc(%nickcolors.me + 2) 
n57=  did -c nickcolors 8 $calc(%nickcolors.op + 2) 
n58=  did -c nickcolors 9 $calc(%nickcolors.voice + 2) 
n59=  did -c nickcolors 10 $calc(%nickcolors.normal + 2) 
n60=  did -c nickcolors 11 $calc(%nickcolors.notify + 2)
n61=
n62=  did -c nickcolors 31 $calc(%nickcolors.halfop + 2)
n63=  did -c nickcolors 32 $calc(%nickcolors.admin + 2)
n64=  did -c nickcolors 33 $calc(%nickcolors.founder + 2)
n65=}
n66=
n67=on *:dialog:nickcolors:sclick:100: {
n68=  if ($did(7).sel == 2) { /set %nickcolors.me 0 }  
n69=  if ($did(7).sel == 3) { /set %nickcolors.me 1 }  
n70=  if ($did(7).sel == 4) { /set %nickcolors.me 2 }
n71=  if ($did(7).sel == 5) { /set %nickcolors.me 3 }
n72=  if ($did(7).sel == 6) { /set %nickcolors.me 4 }  
n73=  if ($did(7).sel == 7) { /set %nickcolors.me 5 }
n74=  if ($did(7).sel == 8) { /set %nickcolors.me 6 }  
n75=  if ($did(7).sel == 9) { /set %nickcolors.me 7 }  
n76=  if ($did(7).sel == 10) { /set %nickcolors.me 8 }
n77=  if ($did(7).sel == 11) { /set %nickcolors.me 9 }  
n78=  if ($did(7).sel == 12) { /set %nickcolors.me 10 }  
n79=  if ($did(7).sel == 13) { /set %nickcolors.me 11 }
n80=  if ($did(7).sel == 14) { /set %nickcolors.me 12 }  
n81=  if ($did(7).sel == 15) { /set %nickcolors.me 13 }  
n82=  if ($did(7).sel == 16) { /set %nickcolors.me 14 }
n83=  if ($did(7).sel == 17) { /set %nickcolors.me 15 }
n84=  if ($did(8).sel == 2) { /set %nickcolors.op 0 }  
n85=  if ($did(8).sel == 3) { /set %nickcolors.op 1 }  
n86=  if ($did(8).sel == 4) { /set %nickcolors.op 2 }
n87=  if ($did(8).sel == 5) { /set %nickcolors.op 3 }
n88=  if ($did(8).sel == 6) { /set %nickcolors.op 4 }  
n89=  if ($did(8).sel == 7) { /set %nickcolors.op 5 }
n90=  if ($did(8).sel == 8) { /set %nickcolors.op 6 }  
n91=  if ($did(8).sel == 9) { /set %nickcolors.op 7 }  
n92=  if ($did(8).sel == 10) { /set %nickcolors.op 8 }
n93=  if ($did(8).sel == 11) { /set %nickcolors.op 9 }  
n94=  if ($did(8).sel == 12) { /set %nickcolors.op 10 }  
n95=  if ($did(8).sel == 13) { /set %nickcolors.op 11 }
n96=  if ($did(8).sel == 14) { /set %nickcolors.op 12 }  
n97=  if ($did(8).sel == 15) { /set %nickcolors.op 13 }  
n98=  if ($did(8).sel == 16) { /set %nickcolors.op 14 }
n99=  if ($did(8).sel == 17) { /set %nickcolors.op 15 }
n100=  if ($did(9).sel == 2) { /set %nickcolors.voice 0 }  
n101=  if ($did(9).sel == 3) { /set %nickcolors.voice 1 }  
n102=  if ($did(9).sel == 4) { /set %nickcolors.voice 2 }
n103=  if ($did(9).sel == 5) { /set %nickcolors.voice 3 }
n104=  if ($did(9).sel == 6) { /set %nickcolors.voice 4 }  
n105=  if ($did(9).sel == 7) { /set %nickcolors.voice 5 }
n106=  if ($did(9).sel == 8) { /set %nickcolors.voice 6 }  
n107=  if ($did(9).sel == 9) { /set %nickcolors.voice 7 }  
n108=  if ($did(9).sel == 10) { /set %nickcolors.voice 8 }
n109=  if ($did(9).sel == 11) { /set %nickcolors.voice 9 }  
n110=  if ($did(9).sel == 12) { /set %nickcolors.voice 10 }  
n111=  if ($did(9).sel == 13) { /set %nickcolors.voice 11 }
n112=  if ($did(9).sel == 14) { /set %nickcolors.voice 12 }  
n113=  if ($did(9).sel == 15) { /set %nickcolors.voice 13 }  
n114=  if ($did(9).sel == 16) { /set %nickcolors.voice 14 }
n115=  if ($did(9).sel == 17) { /set %nickcolors.voice 15 }
n116=  if ($did(10).sel == 2) { /set %nickcolors.normal 0 }  
n117=  if ($did(10).sel == 3) { /set %nickcolors.normal 1 }  
n118=  if ($did(10).sel == 4) { /set %nickcolors.normal 2 }
n119=  if ($did(10).sel == 5) { /set %nickcolors.normal 3 }
n120=  if ($did(10).sel == 6) { /set %nickcolors.normal 4 }  
n121=  if ($did(10).sel == 7) { /set %nickcolors.normal 5 }
n122=  if ($did(10).sel == 8) { /set %nickcolors.normal 6 }  
n123=  if ($did(10).sel == 9) { /set %nickcolors.normal 7 }  
n124=  if ($did(10).sel == 10) { /set %nickcolors.normal 8 }
n125=  if ($did(10).sel == 11) { /set %nickcolors.normal 9 }  
n126=  if ($did(10).sel == 12) { /set %nickcolors.normal 10 }  
n127=  if ($did(10).sel == 13) { /set %nickcolors.normal 11 }
n128=  if ($did(10).sel == 14) { /set %nickcolors.normal 12 }  
n129=  if ($did(10).sel == 15) { /set %nickcolors.normal 13 }  
n130=  if ($did(10).sel == 16) { /set %nickcolors.normal 14 }
n131=  if ($did(10).sel == 17) { /set %nickcolors.normal 15 }
n132=  if ($did(11).sel == 2) { /set %nickcolors.notify 0 }  
n133=  if ($did(11).sel == 3) { /set %nickcolors.notify 1 }  
n134=  if ($did(11).sel == 4) { /set %nickcolors.notify 2 }
n135=  if ($did(11).sel == 5) { /set %nickcolors.notify 3 }
n136=  if ($did(11).sel == 6) { /set %nickcolors.notify 4 }  
n137=  if ($did(11).sel == 7) { /set %nickcolors.notify 5 }
n138=  if ($did(11).sel == 8) { /set %nickcolors.notify 6 }  
n139=  if ($did(11).sel == 9) { /set %nickcolors.notify 7 }  
n140=  if ($did(11).sel == 10) { /set %nickcolors.notify 8 }
n141=  if ($did(11).sel == 11) { /set %nickcolors.notify 9 }  
n142=  if ($did(11).sel == 12) { /set %nickcolors.notify 10 }  
n143=  if ($did(11).sel == 13) { /set %nickcolors.notify 11 }
n144=  if ($did(11).sel == 14) { /set %nickcolors.notify 12 }  
n145=  if ($did(11).sel == 15) { /set %nickcolors.notify 13 }  
n146=  if ($did(11).sel == 16) { /set %nickcolors.notify 14 }
n147=  if ($did(11).sel == 17) { /set %nickcolors.notify 15 }
n148=
n149=  if ($did(31).sel == 2) { /set %nickcolors.halfop 0 }  
n150=  if ($did(31).sel == 3) { /set %nickcolors.halfop 1 }  
n151=  if ($did(31).sel == 4) { /set %nickcolors.halfop 2 }
n152=  if ($did(31).sel == 5) { /set %nickcolors.halfop 3 }
n153=  if ($did(31).sel == 6) { /set %nickcolors.halfop 4 }  
n154=  if ($did(31).sel == 7) { /set %nickcolors.halfop 5 }
n155=  if ($did(31).sel == 8) { /set %nickcolors.halfop 6 }  
n156=  if ($did(31).sel == 9) { /set %nickcolors.halfop 7 }  
n157=  if ($did(31).sel == 10) { /set %nickcolors.halfop 8 }
n158=  if ($did(31).sel == 11) { /set %nickcolors.halfop 9 }  
n159=  if ($did(31).sel == 12) { /set %nickcolors.halfop 10 }  
n160=  if ($did(31).sel == 13) { /set %nickcolors.halfop 11 }
n161=  if ($did(31).sel == 14) { /set %nickcolors.halfop 12 }  
n162=  if ($did(31).sel == 15) { /set %nickcolors.halfop 13 }  
n163=  if ($did(31).sel == 16) { /set %nickcolors.halfop 14 }
n164=  if ($did(31).sel == 17) { /set %nickcolors.halfop 15 }
n165=
n166=  if ($did(32).sel == 2) { /set %nickcolors.admin 0 }  
n167=  if ($did(32).sel == 3) { /set %nickcolors.admin 1 }  
n168=  if ($did(32).sel == 4) { /set %nickcolors.admin 2 }
n169=  if ($did(32).sel == 5) { /set %nickcolors.admin 3 }
n170=  if ($did(32).sel == 6) { /set %nickcolors.admin 4 }  
n171=  if ($did(32).sel == 7) { /set %nickcolors.admin 5 }
n172=  if ($did(32).sel == 8) { /set %nickcolors.admin 6 }  
n173=  if ($did(32).sel == 9) { /set %nickcolors.admin 7 }  
n174=  if ($did(32).sel == 10) { /set %nickcolors.admin 8 }
n175=  if ($did(32).sel == 11) { /set %nickcolors.admin 9 }  
n176=  if ($did(32).sel == 12) { /set %nickcolors.admin 10 }  
n177=  if ($did(32).sel == 13) { /set %nickcolors.admin 11 }
n178=  if ($did(32).sel == 14) { /set %nickcolors.admin 12 }  
n179=  if ($did(32).sel == 15) { /set %nickcolors.admin 13 }  
n180=  if ($did(32).sel == 16) { /set %nickcolors.admin 14 }
n181=  if ($did(32).sel == 17) { /set %nickcolors.admin 15 }
n182=
n183=  if ($did(33).sel == 2) { /set %nickcolors.founder 0 }  
n184=  if ($did(33).sel == 3) { /set %nickcolors.founder 1 }  
n185=  if ($did(33).sel == 4) { /set %nickcolors.founder 2 }
n186=  if ($did(33).sel == 5) { /set %nickcolors.founder 3 }
n187=  if ($did(33).sel == 6) { /set %nickcolors.founder 4 }  
n188=  if ($did(33).sel == 7) { /set %nickcolors.founder 5 }
n189=  if ($did(33).sel == 8) { /set %nickcolors.founder 6 }  
n190=  if ($did(33).sel == 9) { /set %nickcolors.founder 7 }  
n191=  if ($did(33).sel == 10) { /set %nickcolors.founder 8 }
n192=  if ($did(33).sel == 11) { /set %nickcolors.founder 9 }  
n193=  if ($did(33).sel == 12) { /set %nickcolors.founder 10 }  
n194=  if ($did(33).sel == 13) { /set %nickcolors.founder 11 }
n195=  if ($did(33).sel == 14) { /set %nickcolors.founder 12 }  
n196=  if ($did(33).sel == 15) { /set %nickcolors.founder 13 }  
n197=  if ($did(33).sel == 16) { /set %nickcolors.founder 14 }
n198=  if ($did(33).sel == 17) { /set %nickcolors.founder 15 }
n199=
n200=  if ($active ischan) { nickcolors.makecolor $active }
n201=}
n202=
n203=on *:text:#: .timer -m 2 20 nickcolors.makecolor $chan 
n204=on *:input:#: .timer -m 2 20 nickcolors.makecolor $chan 
n205=on *:RAWMODE:#: .timer -m 2 20 nickcolors.makecolor $chan 
n206=on *:join:#: .timer -m 2 20 nickcolors.makecolor $chan 
n207=on *:part:#: .timer -m 2 20 nickcolors.makecolor $chan 
n208=on *:voice:#: .timer -m 2 20 nickcolors.makecolor $chan 
n209=on *:devoice:#: .timer -m 2 20 nickcolors.makecolor $chan 
n210=on *:op:#: .timer -m 2 20 nickcolors.makecolor $chan 
n211=on *:deop:#: .timer -m 2 20 nickcolors.makecolor $chan 
n212=on *:kick:#: .timer -m 2 20 nickcolors.makecolor $chan 
n213=on *:active:#: .timer -m 2 20 nickcolors.makecolor $active 
n214=
n215=alias nickcolors.makecolor {
n216=  var %i = 1
n217=  while (%i <= $nick($1,0)) {
n218=
n219=    if (%nickcolors.enabled == on) {
n220=      if ($nick($1,%i) isreg $1) { cline %nickcolors.normal $1 %i }
n221=      if (+ isin $nick($1,%i).pnick) { cline %nickcolors.voice $1 %i }
n222=      if (@ isin $nick($1,%i).pnick) { cline %nickcolors.op $1 %i }
n223=      if (% isin $nick($1,%i).pnick) { cline %nickcolors.halfop $1 %i }
n224=      if (& isin $nick($1,%i).pnick) { cline %nickcolors.admin $1 %i }
n225=      if (~ isin $nick($1,%i).pnick) { cline %nickcolors.founder $1 %i }
n226=      if ($nick($1,%i) isnotify) { cline %nickcolors.notify $1 %i }
n227=      if ($nick($1,%i) == $me) { cline %nickcolors.me $1 %i }
n228=    } 
n229=    if (%nickcolors.enabled == off) {
n230=      cline $color(nicklist) $1 %i
n231=    }
n232=
n233=    inc %i
n234=  }
n235=}
