alias -l DialogOpen { dialog $iif($dialog($1),-v,-m) $1- }
menu channel {
$iif($dialog(tbl_Zombie),Show,Open) Zombie Toolbar:/DialogOpen tbl_Zombie tbl_Zombie
}
dialog -l tbl_Zombie {
title "Zombie Toolbar"
size -1 -1 520 51
;size -1 -1 176 38
option dbu
button "Bullet", 1, 44 3 37 10
button "Clip", 2, 2 27 37 10
button "AP", 3, 138 2 37 10
button "Explosive", 4, 94 3 37 10
button "Repurchase", 5, 44 15 37 10
button "Grease", 6, 94 27 37 10
button "Sight", 7, 94 15 37 10
button "Infa dect", 8, 1 41 37 10
button "Silencer ", 9, 138 15 37 10
button "4 leaf clover", 10, 138 27 37 10
button "Sunglasses ", 11, 38 41 37 10
button "Spare clothes", 12, 75 41 37 10
button "Brush for gun", 13, 112 41 37 10
button "Mirror ", 14, 150 41 37 10
button "Sand", 15, 187 41 37 10
button "Water Bucket ", 16, 224 41 37 10
button "Sabotage ", 17, 261 41 37 10
button "Life ins", 18, 297 41 37 10
button "Liability ins", 19, 334 41 37 10
button "Scarecrow ", 20, 371 41 37 10
button "Piece of flesh", 21, 407 41 37 10
button "Zombie dect", 22, 444 41 37 10
button "Mech zombie", 23, 481 41 37 10
button "Stats", 24, 214 27 25 9, flat
button "Stats sNick", 25, 248 27 37 9, flat
button "Top 10", 26, 181 27 25 9, flat
box "Description", 44, 179 0 341 26
edit "", 32, 182 7 334 16, read multi
button "Shoot", 28, 2 3 37 10
button "Reload", 29, 2 15 37 10
text "SelNick", 30, 290 28 74 8, result
check "Basic", 27, 44 28 50 10
}
alias -l tbl_Resize {
if ($did(27).state == 0) { /dialog -s tbl_Zombie -1 0 1040 110 }
if ($did(27).state == 1) { /dialog -s tbl_Zombie -1 0 170 80 }
}
alias -l ZH_Snicks {
did -ra tbl_Zombie 30 $snick(#ZW-CHAT,1)
}
on *:dialog:tbl_Zombie:sclick:1-13,18-23:{ /msg #ZW-CHAT !shop $did }
on *:dialog:tbl_Zombie:sclick:14-17:{ /msg #ZW-CHAT !shop $did $snick(#ZW-chat,1) }
on *:dialog:tbl_Zombie:sclick:24:{ /msg #ZW-CHAT !zombiestats }
on *:dialog:tbl_Zombie:sclick:25:{ /msg #ZW-CHAT !zombiestats $snick(#ZW-chat,1) }
on *:dialog:tbl_Zombie:sclick:26:{ /msg #ZW-CHAT !zhtop10 }
; on *:dialog:tbl_Zombie:sclick:27:{ .tbl_Resize }
on *:dialog:tbl_Zombie:sclick:28:{ /msg #ZW-CHAT !shoot }
on *:dialog:tbl_Zombie:sclick:29:{ /msg #ZW-CHAT !reload }
ON *:DIALOG:tbl_Zombie:*:*: {
if (( $did > 0 ) && ( $did < 30 )) { did -ra tbl_Zombie 32 $did($did).text $+ : $read($scriptdirZombieShop.txt,n,$did) }
if ( $did(30).text != $snick(#ZW-CHAT,1) ) { did -ra tbl_Zombie 30 $snick(#ZW-CHAT,1) }
}