Site hosted by Angelfire.com: Build your free website today!

alias view-colors {
window -k +d @colors 60 430 450 18
aline @colors 1,0 0 0,1 1 0,2 2 0,3 3 0,4 4 0,5 5 0,6 6 0,7 7 0,8 8 0,9 9 0,10 10 0,11 11 0,12 12 0,13 13 0,14 14 0,15 15 
}
#colors off
on *:join:#:update $chan
on *:op:#:update $chan
on *:deop:#:update $chan
on *:voice:#:update $chan
on *:devoice:#:update $chan
alias update {
set %c 0
set %chn $1
:loop
inc %c
if ($nick(%chn,%c) == $me) { cline %color.me %chn $nick(%chn,%c) | goto loop }
elseif ($nick(%chn,%c) isnotify) { cline %color.notify %chn $nick(%chn,%c) | goto loop }
elseif ($nick(%chn,%c) isop $chan) { cline %color.op %chn $nick(%chn,%c) | goto loop }
elseif ($nick(%chn,%c) isvo $chan) { cline %color.vo %chn $nick(%chn,%c) | goto loop }
elseif ($nick(%chn,%c) == $null) { unset %c | halt }
else { cline %color.user %chn $nick(%chn,%c) | goto loop }
}
#colors end

;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

dialog nickclrs {
title "Nick Color"
size -1 -1 150 170
option dbu
button "&Ok", 1, 100 135 30 14, ok
text "Your NICK", 101, 15 20 40 10, left
combo 102, 80 20 50 100, drop
text "Notify", 103, 15 40 40 10, left
combo 104, 80 40 50 100, drop
text "Ops", 105, 15 60 40 10, left
combo 106, 80 60 50 100, drop
text "Voice", 107, 15 80 40 10, left
combo 108, 80 80 50 100, drop
text "Other Nick", 113, 15 100 40 10, left
combo 112, 80 100 50 100, drop
check "On/Off", 109, 15 130 40 10, 2state
Button "Colors", 111, 15 115 120 13, left
}
alias nickclrs {
dialog -m nickclrs nickclrs
if (%colors.status == On) { did -c nickclrs 109 }
did -a nickclrs 102,104,106,108,112 white 0
did -a nickclrs 102,104,106,108,112 black 1
did -a nickclrs 102,104,106,108,112 Dark Blue 2
did -a nickclrs 102,104,106,108,112 Dark green 3
did -a nickclrs 102,104,106,108,112 Red 4
did -a nickclrs 102,104,106,108,112 Dark Red 5
did -a nickclrs 102,104,106,108,112 Purple 6
did -a nickclrs 102,104,106,108,112 Orange 7
did -a nickclrs 102,104,106,108,112 Yellow 8
did -a nickclrs 102,104,106,108,112 Green 9
did -a nickclrs 102,104,106,108,112 cyan 10
did -a nickclrs 102,104,106,108,112 Sky Blue 11
did -a nickclrs 102,104,106,108,112 Marin Blue 12
did -a nickclrs 102,104,106,108,112 Pink 13
did -a nickclrs 102,104,106,108,112 Dark Grey 14
did -a nickclrs 102,104,106,108,112 Soft Grey 15
did -c nickclrs 102 $calc(%color.me + 1)
did -c nickclrs 104 $calc(%color.notify + 1)
did -c nickclrs 106 $calc(%color.op + 1)
did -c nickclrs 108 $calc(%color.vo + 1)
did -c nickclrs 112 $calc(%color.user + 1)
}
on *:dialog:nickclrs:*:*:{
if ($did == 102) {
if ($did(102).text == white 0) { set %color.me 0 }
if ($did(102).text == black 1) { set %color.me 1 }
if ($did(102).text == dark blue 2) { set %color.me 2 }
if ($did(102).text == dark green 3) { set %color.me 3 }
if ($did(102).text == red 4) { set %color.me 4 }
if ($did(102).text == dark red 5) { set %color.me 5 }
if ($did(102).text == purple 6) { set %color.me 6 }
if ($did(102).text == orange 7) { set %color.me 7 }
if ($did(102).text == yellow 8) { set %color.me 8 }
if ($did(102).text == green 9) { set %color.me 9 }
if ($did(102).text == cyan 10) { set %color.me 10 }
if ($did(102).text == sky blue 11) { set %color.me 11 }
if ($did(102).text == marin blue 12) { set %color.me 12 }
if ($did(102).text == pink 13) { set %color.me 13 }
if ($did(102).text == dark grey 14) { set %color.me 14 }
if ($did(102).text == soft grey 15) { set %color.me 15 }
}
if ($did == 112) {
if ($did(112).text == white 0) { set %color.user 0 }
if ($did(112).text == black 1) { set %color.user 1 }
if ($did(112).text == dark blue 2) { set %color.user 2 }
if ($did(112).text == dark green 3) { set %color.user 3 }
if ($did(112).text == red 4) { set %color.user 4 }
if ($did(112).text == dark red 5) { set %color.user 5 }
if ($did(112).text == purple 6) { set %color.user 6 }
if ($did(112).text == orange 7) { set %color.user 7 }
if ($did(112).text == yellow 8) { set %color.user 8 }
if ($did(112).text == green 9) { set %color.user 9 }
if ($did(112).text == cyan 10) { set %color.user 10 }
if ($did(112).text == sky blue 11) { set %color.user 11 }
if ($did(112).text == marin blue 12) { set %color.user 12 }
if ($did(112).text == pink 13) { set %color.user 13 }
if ($did(112).text == dark grey 14) { set %color.user 14 }
if ($did(112).text == soft grey 15) { set %color.user 15 }
}
if ($did == 104) {
if ($did(104).text == white 0) { set %color.notify 0 }
if ($did(104).text == black 1) { set %color.notify 1 }
if ($did(104).text == dark blue 2) { set %color.notify 2 }
if ($did(104).text == dark green 3) { set %color.notify 3 }
if ($did(104).text == red 4) { set %color.notify 4 }
if ($did(104).text == dark red 5) { set %color.notify 5 }
if ($did(104).text == purple 6) { set %color.notify 6 }
if ($did(104).text == orange 7) { set %color.notify 7 }
if ($did(104).text == yellow 8) { set %color.notify 8 }
if ($did(104).text == green 9) { set %color.notify 9 }
if ($did(104).text == cyan 10) { set %color.notify 10 }
if ($did(104).text == sky blue 11) { set %color.notify 11 }
if ($did(104).text == marin blue 12) { set %color.notify 12 }
if ($did(104).text == pink 13) { set %color.notify 13 }
if ($did(104).text == dark grey 14) { set %color.notify 14 }
if ($did(104).text == soft grey 15) { set %color.notify 15 }
}
if ($did == 106) {
if ($did(106).text == white 0) { set %color.op 0 }
if ($did(106).text == black 1) { set %color.op 1 }
if ($did(106).text == dark blue 2) { set %color.op 2 }
if ($did(106).text == dark green 3) { set %color.op 3 }
if ($did(106).text == red 4) { set %color.op 4 }
if ($did(106).text == dark red 5) { set %color.op 5 }
if ($did(106).text == purple 6) { set %color.op 6 }
if ($did(106).text == orange 7) { set %color.op 7 }
if ($did(106).text == yellow 8) { set %color.op 8 }
if ($did(106).text == green 9) { set %color.op 9 }
if ($did(106).text == cyan 10) { set %color.op 10 }
if ($did(106).text == sky blue 11) { set %color.op 11 }
if ($did(106).text == marin blue 12) { set %color.op 12 }
if ($did(106).text == pink 13) { set %color.op 13 }
if ($did(106).text == dark grey 14) { set %color.op 14 }
if ($did(106).text == soft grey 15) { set %color.op 15 }
}
if ($did == 108) {
if ($did(108).text == white 0) { set %color.vo 0 }
if ($did(108).text == black 1) { set %color.vo 1 }
if ($did(108).text == dark blue 2) { set %color.vo 2 }
if ($did(108).text == dark green 3) { set %color.vo 3 }
if ($did(108).text == red 4) { set %color.vo 4 }
if ($did(108).text == dark red 5) { set %color.vo 5 }
if ($did(108).text == purple 6) { set %color.vo 6 }
if ($did(108).text == orange 7) { set %color.vo 7 }
if ($did(108).text == yellow 8) { set %color.vo 8 }
if ($did(108).text == green 9) { set %color.vo 9 }
if ($did(108).text == cyan 10) { set %color.vo 10 }
if ($did(108).text == sky blue 11) { set %color.vo 11 }
if ($did(108).text == marin blue 12) { set %color.vo 12 }
if ($did(108).text == pink 13) { set %color.vo 13 }
if ($did(108).text == dark grey 14) { set %color.vo 14 }
if ($did(108).text == soft grey 15) { set %color.vo 15 }
}
if ($did == 1) { window -c @colors }
if ($did == 111) { view-colors }
if ($did == 109) {
if (%colors.status == On) { set %colors.status Off | .disable #colors }
else { set %colors.status On | .enable #colors }
}
}

menu channel,menubar {

تلوين النكات:nickclrs

}