Skip to content
MSN

Nickname Kick Counter

A TG007 community discussion started by Gwen.

Discussion 7 posts
Page 1 of 1
Open
Topic #6436 · 7 published posts · 909 views

Does anyone have a kick counter that counts and echos or messages the number of times a person has been kicked? --I don't mean one of the basic kick counters that just says how many kicks have taken place in the room..but I mean one that will remember the persons gate/nick and count how many times they have been kicked and echo it when they join the room and are kicked.

 

 

Also after being away from scripting the past year I'm feeling out of date on the kick all numbers nicknames and ban long gates. Anyone have code or the time to explain what these are.

 

Thanks,

Gwen

Edited Apr 25, 2006 7:21 PM by Gwen

I posted something similar to this, but it was a nickname counter. You can edit it to your liking. Look in the MSN Addons Archive. I'm not sure which month though.

 

Found it

on *:kick:*:#:{
if (nick isin $1-) inc %nick $count(1-,nick)
elseif (nick isin $1-) inc %nick $count(1-,nick)
elseif (nick isin $1-) inc %nick $count(1-,nick)
elseif (nick isin $1-) inc %nick $count(1-,nick)
elseif (nick isin $1-) inc %nick $count(1-,nick)
elseif (nick isin $1-) inc %nick $count(1-,nick)
elseif (nick isin $1-) inc %nick $count(1-,nick)
}

You can add n edit stuff, do what ya want :P

Edited Apr 25, 2006 7:34 PM by X-Fusion

Haven't tested this yet, but if you want to try this... :pizza:

 

on *:KICK:#:{
 if ($knick != $me) {
   if (!$readini(Kicks.ini,$ial($knick).addr,$ial($knick).addr)) { writeini Kicks.ini $ial($knick).addr $ial($knick).addr 1 | amsg This is $knick $+ 's first time recorded kick. }
   elseif ($readini(Kicks.ini,$ial($knick).addr,$ial($knick).addr)) { set %totalnum. [ $+ [ $knick ] ] $calc($readini(Kicks.ini,$ial($knick).addr,$ial($knick).addr) + 1) | writeini Kicks.ini $ial($knick).addr $ial($knick).addr %totalnum. [ $+ [ $knick ] ] | amsg $knick has been kicked a total number of %totalnum. [ $+ [ $knick ] ] $+ . }
 }
}

 

Edited: Forgot to add the ini to a code, lol.

Edited Apr 25, 2006 9:38 PM by Warrior124
Kicks Warrior

This code will record seperate kick numbers for different channels...

 

on *:KICK:#:{
 if ($knick != $me) {
   if (!$readini(Kicks.ini,$ial($knick).addr,$chan)) { writeini Kicks.ini $ial($knick).addr $chan 1 | amsg This is $knick $+ 's first time recorded kick for this channel. }
   elseif ($readini(Kicks.ini,$ial($knick).addr,$chan)) { set %totalnum. [ $+ [ $knick ] ] $calc($readini(Kicks.ini,$ial($knick).addr,$chan) + 1) | writeini Kicks.ini $ial($knick).addr $chan %totalnum. [ $+ [ $knick ] ] | amsg $knick has been kicked a total number of %totalnum. [ $+ [ $knick ] ] $+ in this channel. }
 }
}

Edited Apr 25, 2006 9:46 PM by Warrior124

This code will record seperate kick numbers for different channels...

 

on *:KICK:#:{
 if ($knick != $me) {
   if (!$readini(Kicks.ini,$ial($knick).addr,$chan)) { writeini Kicks.ini $ial($knick).addr $chan 1 | amsg This is $knick $+ 's first time recorded kick for this channel. }
   elseif ($readini(Kicks.ini,$ial($knick).addr,$chan)) { set %totalnum. [ $+ [ $knick ] ] $calc($readini(Kicks.ini,$ial($knick).addr,$chan) + 1) | writeini Kicks.ini $ial($knick).addr $chan %totalnum. [ $+ [ $knick ] ] | amsg $knick has been kicked a total number of %totalnum. [ $+ [ $knick ] ] $+ in this channel. }
 }
}

 

Very nifty warrior :-) thanks--so far it works great! :)

 

Gwen

No problem. :)