Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; ----------------------------)
- ; --- Mi Amor Multi Server ---)
- ; -------- Sidebar -----------)
- ; ----------------------------)
- ;Created By MakiMaki & seraphim
- ;DCX Based SideBar
- ;H0S.dll Docking
- alias rightbar { if ($dialog(rbar)) { dialog -x rbar } | .treebar off | dialog -m rbar rbar }
- alias -l hOS { dll dlls\hOS.dll $1- }
- dialog rbar {
- title "rbar"
- size 0 0 1 1 |
- option pixel
- }
- on *:DIALOG:rbar:init:*:{
- ;Button Funtion
- dcx Mark rbar callback_rbar
- ;Docks bar and sets size
- hOS Dock rbar right -1 30
- ;Enables the Treeview (Must load sidebar first to not have a glitch window)
- .treebar on
- ;Background and the way the sidebar acts
- xdialog -g rbar +is icons\bg.jpg
- xdialog -c rbar 2 toolbar 1 0 0 right nodivider list tooltips wrap notheme flat
- ;Fills sidebar with the imgs
- xdid -l rbar 2 24
- xdid -a rbar 2 1 +c 1 1 | xdid -w rbar 2 +ndh 0 icons\1.ico
- xdid -a rbar 2 2 +c 1 2 | xdid -w rbar 2 +ndh 0 icons\3.ico
- xdid -a rbar 2 3 +c 1 3 | xdid -w rbar 2 +ndh 0 icons\2.ico
- xdid -a rbar 2 4 +c 1 4 | xdid -w rbar 2 +ndh 0 icons\4.ico
- xdid -a rbar 2 5 +c 1 5 | xdid -w rbar 2 +ndh 0 icons\4.ico
- xdid -a rbar 2 6 +c 1 6 | xdid -w rbar 2 +ndh 0 icons\4.ico
- ;Spacer
- xdid -a rbar 2 7 +cd 1 0
- ;Kicks/Bans
- xdid -a rbar 2 8 +c 1 7 | xdid -w rbar 2 +ndh 0 icons\4.ico
- xdid -a rbar 2 9 +c 1 8 | xdid -w rbar 2 +ndh 0 icons\4.ico
- xdid -a rbar 2 10 +c 1 9 | xdid -w rbar 2 +ndh 0 icons\4.ico
- xdid -a rbar 2 12 +c 1 10 | xdid -w rbar 2 +ndh 0 icons\4.ico
- xdid -a rbar 2 13 +c 1 11 | xdid -w rbar 2 +ndh 0 icons\4.ico
- xdid -a rbar 2 14 +c 1 12 | xdid -w rbar 2 +ndh 0 icons\4.ico
- ;Profile View
- xdid -a rbar 2 15 +c 1 13 | xdid -w rbar 2 +ndh 0 icons\5.ico
- }
- alias callback_rbar {
- if ($3 == 2) {
- if ($2 == sclick) {
- ; echo -a * Button $4- Clicked
- var %sn $snick($active,1),%chan $active
- if (%sn == $null) { echo 7 %chan * Please select a nick first | return }
- if ($4 == 1) { mode %chan +q %sn }
- elseif ($4 == 2) { mode %chan -qo %sn %sn }
- elseif ($4 == 3) { mode %chan +o %sn }
- elseif ($4 == 4) { mode %chan -qo %sn %sn }
- elseif ($4 == 5) { mode %chan +v %sn }
- elseif ($4 == 6) { mode %chan -qov %sn %sn %sn }
- elseif ($4 == 8) { kick %chan %sn kthanxs bai }
- elseif ($4 == 9) { user.ban %chan %sn 5 MiAmor 5min timeout }
- elseif ($4 == 10) { user.ban %chan %sn 15 MiAmor 15min timeout }
- elseif ($4 == 11) { user.ban %chan %sn 30 MiAmor 30min timeout }
- elseif ($4 == 12) { user.ban %chan %sn 60 MiAmor 1 hour timeout }
- elseif ($4 == 13) { user.ban %chan %sn 1440 MiAmor 24 hour timeout }
- elseif ($4 == 14) { .Prop %sn PUID }
- } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement