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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
;;;;;;;;;;;;;;; >>>>>>>>>>>>>>>>>>>>> Îôèöèàëüíûé ñàéò ñêðèïòà: http://chan456.ucoz.ru <<<<<<<<<<<<<<<<<<<<<<<<<<<< ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ïàíåëü íèêîâ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
alias settingsfx if (!$dialog(settingsfx)) dialog -m settingsfx settingsfx | else { dialog -x settingsfx | dialog -m settingsfx settingsfx }
dialog settingsfx {  
  title "Íàñòðîéêà íèêîâ"
  icon $mircdiricons/nickcolors.ico, 0
  size -1 -1 590 265
  tab "Íèêè", 65, 0 0 590 275
  button "Away ñèñòåìà" 700, 465 185 105 25
  button "Âàøå èìÿ" 754, 10 185 105 25
  check "Ïðè âêë ñêðèïòà àâòîìàòè÷åñêè ìåíÿòü íèê íà îñíîâíîé" 900, 20 30 500 20, right tab 65
  check "Àâòîèäåíò îñíîâíîãî è àëüòåðíàòèâíîãî íèêà" 8, 20 50 260 20, right tab 65
  check "Äåëàòü /cs op ïðè óäà÷íîé èäåíòèôèêàöèè (óäîáíî ïðè îòëèíêîâêå/ïðèëèíêîâêå ñåðâåðîâ)" 400, 20 70 500 20, right tab 65
  text "Îñíîâíîé:" 10, 16 112 52 15, tab 65
  text "Àëüòåðíàò:" 12, 6 132 57 15, tab 65
  text "Ïàðîëü:" 2, 20 152 40 15, tab 65
  text "Ïðè íàæàòèå êíîïêè <ÎÊ> âàø íèê èçìåíèòñÿ íà âûáðàííûé" 623, 140 200 325 15, tab 65
  radio "Íèê 1:" 87, 70 90 61 20, tab 65
  edit "",88, 70 110 100 20, autohs tab 65
  edit "",89, 70 130 100 20, autohs tab 65
  edit "",90, 70 150 100 20, pass tab 65
  radio "Íèê 2:" 91, 170 90 61 20, tab 65
  edit "",92, 170 110 100 20, autohs tab 65
  edit "",93, 170 130 100 20, autohs tab 65
  edit "",94, 170 150 100 20, pass tab 65
  radio "Íèê 3:" 95, 270 90 61 20, tab 65
  edit "",96, 270 110 100 20, autohs tab 65
  edit "",97, 270 130 100 20, autohs tab 65
  edit "",98, 270 150 100 20, pass tab 65
  radio "Íèê 4:" 500, 370 90 61 20, tab 65
  edit "",501, 370 110 100 20, autohs tab 65
  edit "",502, 370 130 100 20, autohs tab 65
  edit "",503, 370 150 100 20, pass tab 65
  radio "Íèê 5:" 510, 470 90 61 20, tab 65
  edit "",511, 470 110 100 20, autohs tab 65
  edit "",512, 470 130 100 20, autohs tab 65
  edit "",513, 470 150 100 20, pass tab 65
  button "OK" 5, 105 225 370 30, default, ok
}
on 1:dialog:settingsfx:sclick:754: {
  /fullnamefx
}
on 1:dialog:settingsfx:sclick:700: {
  /awayer
}
on 1:dialog:settingsfx:init:0: {
  if (%nck_1) did -o settingsfx 88 1 %nck_1
  if (%nck_1a) did -o settingsfx 89 1 %nck_1a
  if (%nick_pass1) did -o settingsfx 90 1 %nick_pass1
  if (%nck_2) did -o settingsfx 92 1 %nck_2
  if (%nck_2a) did -o settingsfx 93 1 %nck_2a
  if (%nick_pass2) did -o settingsfx 94 1 %nick_pass2
  if (%nck_3) did -o settingsfx 96 1 %nck_3
  if (%nck_3a) did -o settingsfx 97 1 %nck_3a
  if (%nick_pass3) did -o settingsfx 98 1 %nick_pass3
  if (%nck_4) did -o settingsfx 501 1 %nck_4
  if (%nck_4a) did -o settingsfx 502 1 %nck_4a
  if (%nick_pass4) did -o settingsfx 503 1 %nick_pass4
  if (%nck_5) did -o settingsfx 511 1 %nck_5
  if (%nck_5a) did -o settingsfx 512 1 %nck_5a
  if (%nick_pass5) did -o settingsfx 513 1 %nick_pass5
  if (%aid) did -c settingsfx 8 | else did -b settingsfx 90
  if (%aid) did -c settingsfx 8 | else did -b settingsfx 94
  if (%aid) did -c settingsfx 8 | else did -b settingsfx 98
  if (%aid) did -c settingsfx 8 | else did -b settingsfx 503
  if (%aid) did -c settingsfx 8 | else did -b settingsfx 513
  if (%aid) did -c settingsfx 8
  if (%auto.csop) did -c settingsfx 400
  if (%autonickfx) did -c settingsfx 900
  if (%nicksel == 1) { 
    did -c settingsfx 87
    did -c settingsfx 88
    did -c settingsfx 89
    did -c settingsfx 90
    did -b settingsfx 92
    did -b settingsfx 93
    did -b settingsfx 94
    did -b settingsfx 96
    did -b settingsfx 97
    did -b settingsfx 98
    did -b settingsfx 501
    did -b settingsfx 502
    did -b settingsfx 503
    did -b settingsfx 511
    did -b settingsfx 512
    did -b settingsfx 513
  }
  if (%nicksel == 2) { 
    did -c settingsfx 91 
    did -c settingsfx 92 
    did -c settingsfx 93
    did -c settingsfx 94  
    did -b settingsfx 88 
    did -b settingsfx 89
    did -b settingsfx 90 
    did -b settingsfx 96 
    did -b settingsfx 97
    did -b settingsfx 98
    did -b settingsfx 501
    did -b settingsfx 502
    did -b settingsfx 503
    did -b settingsfx 511
    did -b settingsfx 512
    did -b settingsfx 513
  }
  if (%nicksel == 3) {
    did -c settingsfx 95 
    did -c settingsfx 96 
    did -c settingsfx 97
    did -c settingsfx 98  
    did -b settingsfx 88 
    did -b settingsfx 89
    did -b settingsfx 90 
    did -b settingsfx 92 
    did -b settingsfx 93
    did -b settingsfx 94 
    did -b settingsfx 501
    did -b settingsfx 502
    did -b settingsfx 503
    did -b settingsfx 511
    did -b settingsfx 512
    did -b settingsfx 513
  }
  if (%nicksel == 4) {
    did -c settingsfx 500 
    did -c settingsfx 501
    did -c settingsfx 502
    did -c settingsfx 503
    did -b settingsfx 88 
    did -b settingsfx 89
    did -b settingsfx 90 
    did -b settingsfx 92 
    did -b settingsfx 93
    did -b settingsfx 94 
    did -b settingsfx 96
    did -b settingsfx 97
    did -b settingsfx 98
    did -b settingsfx 511
    did -b settingsfx 512
    did -b settingsfx 513
  }
  if (%nicksel == 5) {
    did -c settingsfx 510 
    did -c settingsfx 511
    did -c settingsfx 512
    did -c settingsfx 513 
    did -b settingsfx 88 
    did -b settingsfx 89
    did -b settingsfx 90 
    did -b settingsfx 92 
    did -b settingsfx 93
    did -b settingsfx 94 
    did -b settingsfx 96
    did -b settingsfx 97
    did -b settingsfx 98
    did -b settingsfx 501
    did -b settingsfx 502
    did -b settingsfx 503
  }
}
on 1:dialog:settingsfx:edit,sclick:*:{
  if ($did == 5) {
    /set %aid2 1
    if ($$did(87).state == 1) && (%nck_1 != $null) nick %nck_1 
    if ($$did(87).state == 1) && (%nck_1a != $null) anick %nck_1a 
    if ($$did(91).state == 1) && (%nck_2 != $null) nick %nck_2 
    if ($$did(91).state == 1) && (%nck_2a != $null) anick %nck_2a 
    if ($$did(95).state == 1) && (%nck_3 != $null) nick %nck_3 
    if ($$did(95).state == 1) && (%nck_3a != $null) anick %nck_3a
    if ($$did(500).state == 1) && (%nck_4 != $null) nick %nck_4 
    if ($$did(500).state == 1) && (%nck_4a != $null) anick %nck_4a
    if ($$did(510).state == 1) && (%nck_5 != $null) nick %nck_5
    if ($$did(510).state == 1) && (%nck_5a != $null) anick %nck_5a
  }
  if ($did == 87) || ($did == 91) || ($did == 95) || ($did == 500) || ($did == 510) set %temp 1
  if ($did(8).state == 0) did -b settingsfx 90 | else did -e settingsfx 90
  if ($did(8).state == 0) did -b settingsfx 94 | else did -e settingsfx 94
  if ($did(8).state == 0) did -b settingsfx 98 | else did -e settingsfx 98
  if ($did(8).state == 0) did -b settingsfx 503 | else did -e settingsfx 503
  if ($did(8).state == 0) did -b settingsfx 513 | else did -e settingsfx 513
  if ($did(87).state == 1) {
    did -e settingsfx 87
    did -e settingsfx 88
    did -e settingsfx 89
    if ($did(8).state == 1) { did -e settingsfx 90 }
    did -b settingsfx 92
    did -b settingsfx 93
    did -b settingsfx 94
    did -b settingsfx 96
    did -b settingsfx 97
    did -b settingsfx 98
    did -b settingsfx 501
    did -b settingsfx 502
    did -b settingsfx 503
    did -b settingsfx 511
    did -b settingsfx 512
    did -b settingsfx 513
  }
  if ($did(91).state == 1) {
    did -e settingsfx 91 
    did -e settingsfx 92 
    did -e settingsfx 93
    if ($did(8).state == 1) { did -e settingsfx 94 }
    did -b settingsfx 88 
    did -b settingsfx 89
    did -b settingsfx 90 
    did -b settingsfx 96 
    did -b settingsfx 97
    did -b settingsfx 98
    did -b settingsfx 501
    did -b settingsfx 502
    did -b settingsfx 503
    did -b settingsfx 511
    did -b settingsfx 512
    did -b settingsfx 513
  }
  if ($did(95).state == 1) {
    did -e settingsfx 95 
    did -e settingsfx 96 
    did -e settingsfx 97
    if ($did(8).state == 1) { did -e settingsfx 98 }
    did -b settingsfx 88 
    did -b settingsfx 89
    did -b settingsfx 90 
    did -b settingsfx 92 
    did -b settingsfx 93
    did -b settingsfx 94
    did -b settingsfx 501
    did -b settingsfx 502
    did -b settingsfx 503
    did -b settingsfx 511
    did -b settingsfx 512
    did -b settingsfx 513
  }
  if ($did(500).state == 1) {
    did -e settingsfx 500 
    did -e settingsfx 501
    did -e settingsfx 502
    if ($did(8).state == 1) { did -e settingsfx 503 }
    did -b settingsfx 88 
    did -b settingsfx 89
    did -b settingsfx 90 
    did -b settingsfx 92 
    did -b settingsfx 93
    did -b settingsfx 94
    did -b settingsfx 96 
    did -b settingsfx 97
    did -b settingsfx 98 
    did -b settingsfx 511 
    did -b settingsfx 512
    did -b settingsfx 513
  }
  if ($did(510).state == 1) {
    did -e settingsfx 510
    did -e settingsfx 511
    did -e settingsfx 512
    if ($did(8).state == 1) { did -e settingsfx 513 }
    did -b settingsfx 88 
    did -b settingsfx 89
    did -b settingsfx 90 
    did -b settingsfx 92 
    did -b settingsfx 93
    did -b settingsfx 94
    did -b settingsfx 96 
    did -b settingsfx 97
    did -b settingsfx 98 
    did -b settingsfx 501 
    did -b settingsfx 502
    did -b settingsfx 503
  }
  $iif($did(settingsfx,88),%nck_1 = $did(settingsfx,88))
  $iif($did(settingsfx,89),%nck_1a = $did(settingsfx,89))
  if ($did(settingsfx,90).edited) %nick_pass1 = $did(settingsfx,90).text
  $iif($did(settingsfx,92),%nck_2 = $did(settingsfx,92))
  $iif($did(settingsfx,93),%nck_2a = $did(settingsfx,93))
  if ($did(settingsfx,94).edited) %nick_pass2 = $did(settingsfx,94).text
  $iif($did(settingsfx,96),%nck_3 = $did(settingsfx,96))
  $iif($did(settingsfx,97),%nck_3a = $did(settingsfx,97))
  if ($did(settingsfx,98).edited) %nick_pass3 = $did(settingsfx,98).text
  $iif($did(settingsfx,501),%nck_4 = $did(settingsfx,501))
  $iif($did(settingsfx,502),%nck_4a = $did(settingsfx,502))
  if ($did(settingsfx,503).edited) %nick_pass4 = $did(settingsfx,503).text
  $iif($did(settingsfx,511),%nck_5 = $did(settingsfx,511))
  $iif($did(settingsfx,512),%nck_5a = $did(settingsfx,512))
  if ($did(settingsfx,513).edited) %nick_pass5 = $did(settingsfx,513).text
  $iif($did(settingsfx,8).state,%aid = 1,set %aid 0)
  $iif($did(settingsfx,400).state,%auto.csop = 1,set %auto.csop 0)
  $iif($did(settingsfx,900).state,%autonickfx = 1,set %autonickfx 0)
  $iif($did(settingsfx,87).state,%nicksel = 1)
  $iif($did(settingsfx,91).state,%nicksel = 2)
  $iif($did(settingsfx,95).state,%nicksel = 3)
  $iif($did(settingsfx,500).state,%nicksel = 4)
  $iif($did(settingsfx,510).state,%nicksel = 5)
}
;¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
;;;;;;;;;;;;;;; >>>>>>>> Narkoman's Script ver: 3.5   All Rights Reserved. Copyright Narkoman's™ 2006 - 2007 <<<<<<<<<< ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ñîçäàòåëü - _TRANE_ <<<<<<<<<<<<<<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¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯            
