Kick Count Dialog

News, Snippets & Assistance with IRC scripting

Moderators: Moderator, Global Moderator

Post Reply
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 2:54 pm

Kick Count Dialog

Post 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...
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
Trinity
Hero Member
Hero Member
Posts: 808
Joined: Wed May 05, 2004 9:19 am

Kick Count Dialog

Post by Trinity »

Brings back memories <img src=\'http://www.killanet.net/forum3/public/s ... /smile.gif\' class=\'bbc_emoticon\' alt=\':)\' /> I even recognise half those commands
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 2:54 pm

Kick Count Dialog

Post by Josh »

lol yea.. When I get really bored I just make little \"things\" for mirc
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
Post Reply

Return to “IRC Scripting”