HouseMD Posted May 27, 2007 Share 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 } Link to comment
JB_frozen Posted May 27, 2007 Share 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) } } Link to comment
HouseMD Posted May 27, 2007 Author Share Posted May 27, 2007 That script never worked for me Link to comment
JB_frozen Posted May 27, 2007 Share Posted May 27, 2007 try to talk lines with caps on Link to comment
DJScripts Posted June 29, 2007 Share 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 Link to comment
lil Toady Posted June 29, 2007 Share Posted June 29, 2007 That script is not from lil toady Thats Kesler2005 his script erm?.. Link to comment
DJScripts Posted June 30, 2007 Share Posted June 30, 2007 o lol srry he said that to me so Srry lil Link to comment
Scooby Posted July 4, 2007 Share Posted July 4, 2007 well i saw it long before toady knew how to script Link to comment
Scooby Posted July 4, 2007 Share 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. Link to comment
PacMaan Posted July 6, 2007 Share 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. Link to comment
johankung Posted July 7, 2007 Share 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) Link to comment
Scooby Posted July 7, 2007 Share 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 Link to comment
johankung Posted July 8, 2007 Share Posted July 8, 2007 ty it worked (im not good at makin script and that sort of stuff) Link to comment
Recommended Posts