HouseMD Posted May 27, 2007 Posted May 27, 2007 on *:SIGNAL:mta.command: { Check.upper $1- } on *:SIGNAL:mta.text: { check.upper $1- } alias check.upper { if ($isupper($3-) == $true) { if ($left($3-,3) != $3-) { if ($readini(caps.ini,Caps,$2) == $null) { mta.pm $1 $2 You forgot ur caps lock on! !writeini -n caps.ini caps $2 0 } elseif ($readini(caps.ini,caps,$2) == 0) { mta.pm $1 $2 You Forgot ur caps lock on! 1st warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 1) { mta.pm $1 $2 You Forgot ur caps lock on! 2nd warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 2) { mta.pm $1 $2 You Forgot ur caps lock on! 3rd and last warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 3) { mta.pm $1 $2 You will now be muted for 2 minutes! !remini -n caps.ini caps $2 mta.mute $1 $2 .timer 1 120 mta.unmute $1 $2 } } } } on *:SIGNAL:mta.part: { !remini -n caps.ini caps $2 }
JB_frozen Posted May 27, 2007 Posted May 27, 2007 there was already a posted script from lil toady : on *:SIGNAL:mta.text:{ if ($len($3-) > 10) && ($calc($len($3-) - $len($removecs($3-,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z))) >= $calc($len($3-) * 0.7)) { !writeini -n $+(",$mta.dir,$1.ini,") $2 warnings $calc($readini($mta.dir $+ $1.ini,$2,warnings) + 1) var %a = $readini($mta.dir $+ $1.ini,$2,warnings) if (%a >= 3) { mta.text $1 $mta.nick($1,$2) reached the warnings limit and will be muted! (Too much caps used) mta.mute $1 $2 } else mta.text $1 $mta.nick($1,$2) has been warned! $calc(3 - %a) more $iif($calc(3 - %a) == 1,warning,warnings) and he will be Muted! (too much caps used) } }
DJScripts Posted June 29, 2007 Posted June 29, 2007 there was already a posted script from lil toady : on *:SIGNAL:mta.text:{ if ($len($3-) > 10) && ($calc($len($3-) - $len($removecs($3-,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z))) >= $calc($len($3-) * 0.7)) { !writeini -n $+(",$mta.dir,$1.ini,") $2 warnings $calc($readini($mta.dir $+ $1.ini,$2,warnings) + 1) var %a = $readini($mta.dir $+ $1.ini,$2,warnings) if (%a >= 3) { mta.text $1 $mta.nick($1,$2) reached the warnings limit and will be muted! (Too much caps used) mta.mute $1 $2 } else mta.text $1 $mta.nick($1,$2) has been warned! $calc(3 - %a) more $iif($calc(3 - %a) == 1,warning,warnings) and he will be Muted! (too much caps used) } } That script is not from lil toady Thats Kesler2005 his script
lil Toady Posted June 29, 2007 Posted June 29, 2007 That script is not from lil toady Thats Kesler2005 his script erm?..
Scooby Posted July 4, 2007 Posted July 4, 2007 it calculates a percentage of capital letters from the text. this can be changed to what u like (currently 0.7), its also set to a minimum of 10 characters before it works, which can also be changed.
PacMaan Posted July 6, 2007 Posted July 6, 2007 it calculates a percentage of capital letters from the text.this can be changed to what u like (currently 0.7), its also set to a minimum of 10 characters before it works, which can also be changed. Awesome, like the minimum part - so i can still be like OMG and WTF and STFU and stuff. Juicy.
johankung Posted July 7, 2007 Posted July 7, 2007 on *:SIGNAL:mta.command: { Check.upper $1- } on *:SIGNAL:mta.text: { check.upper $1- } alias check.upper { if ($isupper($3-) == $true) { if ($left($3-,3) != $3-) { if ($readini(caps.ini,Caps,$2) == $null) { mta.pm $1 $2 You forgot ur caps lock on! !writeini -n caps.ini caps $2 0 } elseif ($readini(caps.ini,caps,$2) == 0) { mta.pm $1 $2 You Forgot ur caps lock on! 1st warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 1) { mta.pm $1 $2 You Forgot ur caps lock on! 2nd warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 2) { mta.pm $1 $2 You Forgot ur caps lock on! 3rd and last warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 3) { mta.pm $1 $2 You will now be muted for 2 minutes! !remini -n caps.ini caps $2 mta.mute $1 $2 .timer 1 120 mta.unmute $1 $2 } } } } on *:SIGNAL:mta.part: { !remini -n caps.ini caps $2 } can you make tha if admins talk with caps they dont get warnings plz (i mean that if admins talks th caps lock it is ok so they dont get muted)
Scooby Posted July 7, 2007 Posted July 7, 2007 just change: on *:SIGNAL:mta.command: { Check.upper $1- } on *:SIGNAL:mta.text: { check.upper $1- } to on *:SIGNAL:mta.command: { if ($prs.level($1,$2) < 1) Check.upper $1- } on *:SIGNAL:mta.text: { if ($prs.level($1,$2) < 1) check.upper $1- } if ur using GUS, change the letters 'prs' to 'gus' i think that should do u
johankung Posted July 8, 2007 Posted July 8, 2007 ty it worked (im not good at makin script and that sort of stuff)
Recommended Posts