User Kick Counter - need some help adding somethin - 27/11/05 06:04 AM
hi i wanted to make a script where when you type
!checkkicks in the channel the script would message the channel how many times the person has been kicked, ive got this, but i need help with the "rank" bit, i dunno how to do it, i wanted it so when it messaged the channel it would say you are rank X (1 being the most kicks)
i got the followin code
!checkkicks in the channel the script would message the channel how many times the person has been kicked, ive got this, but i need help with the "rank" bit, i dunno how to do it, i wanted it so when it messaged the channel it would say you are rank X (1 being the most kicks)
i got the followin code
Code:
on *:KICK:#:{ if (!$hget(kick.counter.list) && $isfile(kick.counter.list.bin)) { hmake kick.counter.list | hload -b kick.counter.list kick.counter.list.bin } | hinc -m kick.counter.list $+($address($knick,2),@,$chan) | hsave -bo kick.counter.list kick.counter.list.bin if (!$hget(nick.address.list) && $isfile(nick.address.list.bin)) { hmake nick.address.list | hload -b nick.address.list nick.address.list.bin } | hadd -m nick.address.list $knick $address($knick,2) | hsave -bo nick.address.list nick.address.list.bin } on *:TEXT:!checkkicks &:#:{ checkkicks $2 } alias checkkicks { if (!$chan) { echo -s Checkkicks must be run on a channel | return } if (!$hget(kick.counter.list) && $isfile(kick.counter.list.bin)) { hmake kick.counter.list | hload -b kick.counter.list kick.counter.list.bin } if (!$hget(nick.address.list) && $isfile(nick.address.list.bin)) { hmake nick.address.list | hload -b nick.address.list nick.address.list.bin } var %address = $hget(nick.address.list,$1) var %total = $hget(kick.counter.list,$+(%address,@,$chan)) if ((%address) && (%total)) { msg $chan $1 has had a total of %total kicks. } }