Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias nicklist {
- if ($dialog(nlist)) { dialog -x nlist }
- dialog -m nlist nlist
- xdock -m $dialog(nlist).hwnd +r
- if ($window(@hidden)) { window -c @hidden }
- window --aihznhw0 @hidden 1 1 0 0
- xdock -m $window(@hidden).hwnd +b
- }
- alias xnick { return $xdid(nlist, 2, 2).seltext }
- alias xnicks {
- var %i $xdid(nlist, 2).selnum, %r
- while (%i) { var %r $addtok(%r, $xdid(nlist, 2, $xdid(nlist, 2, %i).sel, 2).text , 44) | dec %i }
- return %r
- }
- ;Triggers
- on *:ACTIVE:*: { if ($me ison $active) { xdock -r $dialog(nlist).hwnd + 200 1 | nlist } | else { xdock -r $dialog(nlist).hwnd + 1 1 } }
- on *:JOIN:#: { if ($nick == $me) { $iif($dialog(nlist),nlist,nicklist) } | elseif ($active == #) { nlist } }
- on *:PART:#: { if ($active == #) { nlist } }
- on *:QUIT:nlist
- on *:KICK:#: { if ($active == #) { nlist } }
- on *:RAWMODE:#: { if ($active == #) { nlist } }
- dialog nlist {
- title "Nicklist"
- size -1 -1 225 $window(-2).h
- option pixel
- }
- on *:DIALOG:nlist:init:*:{
- dcx Mark nlist callback_nlist
- xdialog -g $dname +is icons\test1.jpg
- xdialog -c $dname 2 listview 1 1 175 $calc($window(-2).h - 90) report fullrow nolabelwrap noheader transparent tabstop showsel
- xdid -t $dname 2 + 0 20 $null $chr(9) + 0 130
- xdid -w $dname 2 +n 0 icons\staff.ico
- xdid -w $dname 2 +n 0 icons\owner.ico
- xdid -w $dname 2 +n 0 icons\host.ico
- xdid -w $dname 2 +n 0 icons\voice.ico
- xdid -w $dname 2 +n 0 icons\user.ico
- xdid -w $dname 2 +n 0 icons\spec.ico
- xdid -w $dname 2 +n 0 icons\phreik.ico
- nlist
- ; RIGHT BAR 2
- ; -----------
- xdialog -c $dname 3 toolbar 176 -1 28 $window(-2).h right wrap noauto flat list nodivider
- xdid -l $dname 3 24
- xdid -a $dname 3 1 +c 1 1 | xdid -w $dname 3 +ndh 0 icons\si.ico
- xdid -a $dname 3 2 +c 1 2 | xdid -w $dname 3 +ndh 0 icons\s1.ico
- xdid -a $dname 3 3 +c 1 3 | xdid -w $dname 3 +ndh 0 icons\s2.ico
- xdid -a $dname 3 4 +c 1 4 | xdid -w $dname 3 +ndh 0 icons\s3.ico
- xdid -a $dname 3 5 +c 1 5 | xdid -w $dname 3 +ndh 0 icons\s4.ico
- xdid -a $dname 3 6 +c 1 6 | xdid -w $dname 3 +ndh 0 icons\s5.ico
- xdid -a $dname 3 7 +c 1 7 | xdid -w $dname 3 +ndh 0 icons\s6.ico
- xdid -a $dname 3 8 +c 1 8 | xdid -w $dname 3 +ndh 0 icons\s0.ico
- ;Spacer
- xdid -a $dname 3 9 +cd 1 0
- ;Kicks/Bans
- xdid -a $dname 3 10 +c 1 9 | xdid -w $dname 3 +ndh 0 icons\s7.ico
- ; xdid -a $dname 3 11 +c 1 10
- xdid -w $dname 3 +ndh 0 icons\s8.ico
- ; xdid -a $dname 3 12 +c 1 11
- xdid -w $dname 3 +ndh 0 icons\s9.ico
- xdid -a $dname 3 13 +c 1 12 | xdid -w $dname 3 +ndh 0 icons\s10.ico
- xdid -a $dname 3 14 +c 1 13 | xdid -w $dname 3 +ndh 0 icons\s11.ico
- xdid -a $dname 3 15 +c 1 14 | xdid -w $dname 3 +ndh 0 icons\s12.ico
- xdid -a $dname 3 16 +c 1 15 | xdid -w $dname 3 +ndh 0 icons\s13.ico
- xdid -a $dname 3 17 +c 1 16 | xdid -w $dname 3 +ndh 0 icons\s14.ico
- }
- alias callback_nlist {
- if ($2 == sclick) {
- if ($3 == 3) {
- ;echo -a * Button $4- Clicked | return
- var %sn $xnick,%c $active
- if ($4 == 1) { echo 7 -ti2 %c * }
- if (%sn == $null) { echo 7 %c * Please select a nick first | return }
- elseif ($4 == 2) { mode %c +q %sn }
- elseif ($4 == 3) { mode %c -qo %sn %sn }
- elseif ($4 == 4) { mode %c +o %sn }
- elseif ($4 == 5) { mode %c -o %sn }
- elseif ($4 == 6) { mode %c +v %sn }
- elseif ($4 == 7) { mode %c -v %sn }
- elseif ($4 == 8) { .Prop %sn PUID }
- elseif ($4 == 10) { kick %c %sn $$?="Kick messge;" }
- elseif ($4 == 11) { aclear | access %c ADD DENY * $+ $ial(%sn,1).user $+ @* 5 : 5min time out | kick %c %sn 5 min time out }
- elseif ($4 == 12) { aclear | access %c ADD DENY * $+ $ial(%sn,1).user $+ @* 15 : 5min time out | kick %c %sn 15 min time out }
- elseif ($4 == 13) { aclear | access %c ADD DENY * $+ $ial(%sn,1).user $+ @* 30 : 5min time out | kick %c %sn 30 min time out }
- elseif ($4 == 14) { aclear | access %c ADD DENY * $+ $ial(%sn,1).user $+ @* 60 : 5min time out | kick %c %sn 60 min time out }
- elseif ($4 == 15) { aclear | access %c ADD DENY * $+ $ial(%sn,1).user $+ @* 1440 : 5min time out | kick %c %sn 24 hour time out }
- } }
- if ($2 == dclick && $3 == 2) { query $xnick }
- ;popup menu call- uses rcyf to popup fake nicklist
- if ($2 == rclick && $3 == 2) {
- ;y offset varies based upon menu size
- var %y $calc($mouse.cy - $window(-2).y + 40), %x $calc($mouse.cx - $window(-2).x)
- dll dlls\rcyf.dll popup $window(@hidden).hwnd %x %y
- }
- ;resize call- adjust size of nicklist
- elseif ($2 == sizing && $4 && $5) {
- var %p $xdid(nlist, 2).pos
- xdid -p nlist 2 $gettok(%p,1-3,32) $5
- }
- halt
- }
- alias aclear { access $active clear owner | access $active clear host }
- alias nlist {
- xdid -r nlist 2
- var %i 1
- while ($nick($active,%i)) {
- var %n $v1
- if ($left(%n,1) isin ') var %l 1
- elseif (%n == $me) var %l 7
- elseif ($ismode($active,%n,q)) var %l 2
- elseif ($ismode($active,%n,o)) var %l 3
- elseif ($ismode($active,%n,v)) var %l 4
- else var %l $iif(m isin $chan($active).mode,6,5)
- xdid -a nlist 2 0 0 + %l 0 0 0 -1 -1 $chr(9) + 0 0 -1 -1 %n
- inc %i
- } }
- menu @hidden {
- $xnick Info
- .Copy Nick $xnick : echo -a * Nickname copyed to clip board: $xnick | clipboard $xnick
- .ScriptCheck: who $xnick
- .Profile:.Prop $xnick PUID
- .UserID $ial($xnick,1).user : echo 7 -a * $xnick User ID $ial($xnick,1).user | clipboard $ial($xnick,1).user
- .$address($xnick,1) : echo 7 -a * $xnick Full gate $address($xnick,1) | clipboard $address($xnick,1)
- -
- $iif($ismode($active,$xnick,q),$style(1)) · $chr(32) Owner: { mode $active $iif($ismode($active,$xnick,q),-q,+q) $xnick }
- $iif($ismode($active,$xnick,o),$style(1)) · $chr(32) Host: { mode $active $iif($ismode($active,$xnick,o),-o,+o) $xnick }
- $iif($ismode($active,$xnick,v),$style(1)) · $chr(32) Voice: { mode $active $iif($ismode($active,$xnick,v),-v,+v) $xnick }
- -
- CTCP
- .Time:.ctcp $xnick TIME
- .Version:.ctcp $xnick VERSION
- .Finger:.ctcp $xnick FINGER
- -
- Channel Accses
- .Add Owner : ACCESS $active ADD OWNER * $+ $ial($xnick,1).user $+ @* 0 : Miamor Owner Add
- .Remove Owner: ACCESS $active DELETE OWNER * $+ $ial($xnick,1).user $+ @*
- .-
- .Add Host: ACCESS $active ADD HOST * $+ $ial($xnick,1).user $+ @* 0 : Miamor Host Add
- .Remove Host : ACCESS $active DELETE HOST * $+ $ial($xnick,1).user $+ @*
- .-
- .Add Voice: ACCESS $active ADD VOICE * $+ $ial($xnick,1).user $+ @* 0 : Miamor Voice Add
- .Remove Voice: ACCESS $active DELETE VOICE * $+ $ial($xnick,1).user $+ @*
- .-
- .Add Deny: ACCESS $active ADD DENY * $+ $ial($xnick,1).user $+ @* 0 : Miamor Deny Add
- .Remove Deny: ACCESS $active DELETE DENY * $+ $ial($xnick,1).user $+ @*
- -
- Kicks
- .Quick Kick: kick $active $xnick ByeBye
- .Custom Kick: kick $active $xnick $$?="Reason for kick:"
- -
- Bans
- .Quick Ban: { aclear | access $active ADD DENY * $+ $ial($xnick,1).user $+ @* 5 : 5min time out | kick $active $xnick 5 min time out }
- .Custom Ban: { aclear | access $active ADD DENY * $+ $ial($xnick,1).user $+ @* $$?="How Long?" : Banned | kick $active $xnick $$?="Reason?" }
- -
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement