Page 1 of 1

Kick Count Dialog

Posted: Wed Oct 13, 2004 2:00 am
by Josh
[code]dialog kickcount {
 title "Kick Count"
 size -1 -1 110 24
 option dbu
 text "Your Current Kick Count:", 1, 3 2 60 8
 edit "", 2, 65 1 20 10, center
 button "Set", 3, 86 1 22 10
 button "Reset", 4, 1 14 20 9
 button "OK", 5, 91 14 17 9, ok
 text "<insert your script name>", 6, 21 15 70 8, disable center
}
alias kicks { if ($dialog(kickcount)) { echo -a Dialog already open ya el retardo;\ } |  if (!$dialog(kickcount)) { dialog -m kickcount kickcount } }
on *:dialog:kickcount:init:*:{  if (%kicks == $null) { set %kicks 0 } | did -a kickcount 2 %kicks }
on *:dialog:kickcount:sclick:3:{ set %kicks $did(2) }
on *:dialog:kickcount:sclick:4:{ set %kicks 0 }
on *:kick:#:{ if ($nick = $me) { inc %kicks | if ($dialog(kickcount)) { dialog -x kickcount | dialog -m kickcount kickcount } } }[/code]

Self explanitory. enjoy...

Kick Count Dialog

Posted: Wed Oct 13, 2004 8:36 am
by Trinity
Brings back memories /smile.gif\' class=\'bbc_emoticon\' alt=\':)\' /> I even recognise half those commands

Kick Count Dialog

Posted: Wed Oct 13, 2004 10:07 pm
by Josh
lol yea.. When I get really bored I just make little \"things\" for mirc