Top

caps kicker


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  4.0
Scores Submitted  1
Date Added  Sep 30, 2007
Last Updated  Sep 30, 2007
Tags  caps  kicker 
  Bookmark and Share

Introduction

THis is a pretty good caps kicker kicks at 70% caps used & tells the user kicked how many caps they have used out of the allowed caps.

Grab the Code

Comments

  (5)  RSS
napa182
Comments: 1,128
 
mIRC Snippet:  caps kicker
Posted on Sep 30, 2007 10:20 pm
you can use
Code:
if ($len($1-) > 5) {
    var %percent $calc($regex($1-,/[A-Z]/g)/$len($1-)*100)
    if (%percent > %caps) {

then you can have a way to set the percent of caps you want to kick for like
Code:
alias capset { set %caps $1 | echo -a I will Now Kick For $1 $+ % Caps }

or what ever
Kyousoukyoku
Comments: 45
 
mIRC Snippet:  caps kicker
Posted on Oct 1, 2007 2:13 pm
you don't really need th $allowedcaps. You can just have a local variable. And you should use $regex as napa said. Really nice work BytchAmy. =)
KuTsuM
Comments: 139
 
mIRC Snippet:  caps kicker
Posted on Oct 3, 2007 10:49 pm
First thing. You can't kick someone who's talking to you in a query. You can do this however:
if ($chan) { kick $v1 $nick blah blah }
else { close -m $nick }

Also, the above would work, but you can use this for shorter code too:

on *:TEXT:*:#: {
var %x = 1,%y
while (%x <= $len($1-)) {
if ($right($left($1-,%x),1) isupper) inc %y
inc %x
}
if (%y > $calc($len($1-) * .5)) { do action... }
}
KuTsuM
Comments: 139
 
mIRC Snippet:  caps kicker
Posted on Oct 3, 2007 10:50 pm
Whoops I meant .7 not .5 :)
BytchAmy
Comments: 8
 
mIRC Snippet:  caps kicker
Posted on Jan 28, 2008 10:44 pm
thanks for your comments :)

Please Register or Login to start posting comments.
Bottom