This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

CAPS tcl help pls

Old posts that have not been replied to for several years.
Locked
I
Illidan
Voice
Posts: 27
Joined: Sat Oct 26, 2002 1:49 am

CAPS tcl help pls

Post by Illidan »

Hello,

I tried this script below and it doesnt work. Please guide.

#########################################
# capsGF.tcl (GF stands for G-Force bot)
# credits goes to:
# ppslim, Papillon
#
#Date: 11 sept 2002
#
#########################################
#
#Set this to the minimum string wize, before it will act
#IE, set 6, "HELLO" = no kick, "HELLO ALL" = kick
set cap_min 5

#set this tot he percentage, wihtout any percentage char
#IE, 50
set cap_per 40

bind pubm - "*" cap:perc:kick
proc cap:perc:kick {nick uh hand chan arg} {
global cap_per cap_min
if {[string length $arg] <= $cap_min} { return }
set full [string length $arg]
regsub -all {[A-Z]} $arg "" arg
putlog "$arg"
set perc [expr (($full - [string length $arg]) * 100) / $full]
putlog "$perc"
if {$perc >= $cap_per} {
putserv "KICK $chan $nick :*** NO *** caps please!!!) ([string range $perc 0 5]% caps)"
}
}

putlog "CapsGF.tcl 2002 Loaded"
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Remember, text contains spaces, and these are classed as normal text.

Can you give any examples or when it doesn't work?

Can you conclusivly proove it doesn't work?
Locked