mIRC Home    About    Download    Register    News    Help

Print Thread
Kick Counter Script #66051 30/12/03 09:34 PM
Joined: Jun 2003
Posts: 9
P
Phenom Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Jun 2003
Posts: 9
Anyone know a good Kick Counter script, where if I kick someone it shows how many I've kicked.

Thanks alot.

Re: Kick Counter Script #66052 30/12/03 09:44 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
Here's something to get ya started on making your own ...
Code:
on ME:*:KICK:#: {
  inc $+(%,kick-count.,#)
  echo -cet kick # * $knick is the $ord($eval($+(%,kick-count.,#),2)) person you've kicked from #
}

Last edited by EVH; 30/12/03 09:51 PM.
Re: Kick Counter Script #66053 30/12/03 09:50 PM
Joined: Jun 2003
Posts: 9
P
Phenom Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Jun 2003
Posts: 9
That's cool, but I want it to show like this..

Say I want to do a Kick (why) and I put my reason, I want it to show my reason, and this <#ofkicked>

Re: Kick Counter Script #66054 30/12/03 10:00 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
Code:
on ME:^*:KICK:#: {
  inc $+(%,kick-count.,#)
  echo -ct kick # * You kicked $knick from # (Reason: $1- $+ ) &lt;Kick $+($chr(35),$eval($+(%,kick-count.,#),2)) for # $+ &gt;
  haltdef
}

Last edited by EVH; 30/12/03 10:05 PM.
Re: Kick Counter Script #66055 30/12/03 10:12 PM
Joined: Jun 2003
Posts: 9
P
Phenom Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Jun 2003
Posts: 9
That one was better...

I want it to say this "[16:09] * Nean was kicked by Phenom (testing 123 <1>)" as <1> Showing how many I've kicked in the channel. Not in the status window.

is that possible?

Re: Kick Counter Script #66056 30/12/03 10:16 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
Code:
on ME:^*:KICK:#: {
  inc $+(%,kick-count.,#)
  inc %kick-count
  echo -ct kick # * $knick was kicked by $nick ( $+ $1- &lt; $+ $eval($+(%,kick-count.,#),2) kicks on # - %kick-count kicks Total&gt;
  haltdef
}

Re: Kick Counter Script #66057 30/12/03 10:27 PM
Joined: Jun 2003
Posts: 9
P
Phenom Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Jun 2003
Posts: 9
haha, still the same kinda...

It still says it in the status window, and not the Channel..

When someone gets kicked, it says this in the channel
[16:23] * Ruey was kicked by Phenom (New test)

I want it to say (New test <#ofkicked>) in the Channel, not the Status window...Is that possible to do?

Re: Kick Counter Script #66058 30/12/03 10:28 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
what version of mIRC are you using ?

the one I pasted shows perfectly on mIRC 6.12

Last edited by EVH; 30/12/03 10:29 PM.
Re: Kick Counter Script #66059 30/12/03 10:36 PM
Joined: Jun 2003
Posts: 9
P
Phenom Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Jun 2003
Posts: 9
6.1 shocked

Re: Kick Counter Script #66060 30/12/03 10:43 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
Ok .. try this .. must use both to put count in the reason
I used the kick alias and kick event because just
because you use the kick command doesn't mean it's
going to happen .. like if you're not opped or something.
So this way, it shows the kick count in the kick reason
but doesn't actually increase the count until the actual
kick event takes place.
Code:
on ME:*:KICK:#: {
  inc $+(%,kick-count.,#)
  inc %kick-count
}
alias kick {
  var %t = $iif(!%kick-count,0,%kick-count) + 1
  var %c = $iif(!$eval($+(%,kick-count.,$1),2),0,$eval($+(%,kick-count.,$1),2)) + 1
  kick $1-2 $iif($3 != $null,$3-,$2) $+(&lt;,$ord(%c)) on $1 - $ord(%t) Total&gt;
}


pasted below so you don't have to sort it

on ME:*:KICK:#: {
inc $+(%,kick-count.,#)
inc %kick-count
}
alias kick {
var %t = $iif(!%kick-count,0,%kick-count) + 1
var %c = $iif(!$eval($+(%,kick-count.,$1),2),0,$eval($+(%,kick-count.,$1),2)) + 1
kick $1-2 $iif($3 != $null,$3-,$2) $+(<,$ord(%c)) on $1 - $ord(%t) Total>
}

Last edited by EVH; 30/12/03 11:20 PM.