Kick If Under Age
This program will kick you if you are underage. Think it works on the a/s/l.
Script Made By Tiger01131971
<config>
<usergroup name="asl" case="1">
*_BOT_SELF_TRIGGER_*
</usergroup>
<command type="script" usergroup="!asl">
<in>%PARAM%</in>
<out type="push" extdata="asl1">%PARAM%</out>
<out type="push" extdata="asl2">NO</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="14/m">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="13/m">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="12/m">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="11/m">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="10/m">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="9/m">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="8/m">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="14/f">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="13/f">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="12/f">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="11/f">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="10/f">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="9/f">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="8/f">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="7/m">YES</out>
<out type="push" extdata="asl2" condition="?" lvalue="$asl1$" rvalue="7/f">YES</out>
<out type="break" condition="==" lvalue="$asl2$" rvalue="NO"></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="14/m"><operator type="strfind" lvalue="$asl1$" rvalue="_0"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="13/m"><operator type="strfind" lvalue="$asl1$" rvalue="_1"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="12/m"><operator type="strfind" lvalue="$asl1$" rvalue="_2"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="11/m"><operator type="strfind" lvalue="$asl1$" rvalue="_3"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="10/m"><operator type="strfind" lvalue="$asl1$" rvalue="_4"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="9/m"><operator type="strfind" lvalue="$asl1$" rvalue="_5"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="8/m"><operator type="strfind" lvalue="$asl1$" rvalue="_6"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="7/m"><operator type="strfind" lvalue="$asl1$" rvalue="_7"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="14/f"><operator type="strfind" lvalue="$asl1$" rvalue="_8"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="13/f"><operator type="strfind" lvalue="$asl1$" rvalue="_9"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="12/f"><operator type="strfind" lvalue="$asl1$" rvalue="_A"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="11/f"><operator type="strfind" lvalue="$asl1$" rvalue="_B"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="10/f"><operator type="strfind" lvalue="$asl1$" rvalue="_C"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="9/f"><operator type="strfind" lvalue="$asl1$" rvalue="_D"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="8/f"><operator type="strfind" lvalue="$asl1$" rvalue="_E"/></out>
<out type="push" extdata="asl3" condition="?" lvalue="$asl1$" rvalue="7/f"><operator type="strfind" lvalue="$asl1$" rvalue="_F"/></out>
<out type="push" extdata="asl4"><operator type="strlen" lvalue="$asl1$"/></out>
<out type="push" extdata="asl5"><operator type="strright" lvalue="$asl1$" rvalue="$asl3$"/></out>
<out type="push" extdata="asl6"><operator type="strright" lvalue="$asl5$" rvalue="12"/></out>
<out type="push" extdata="asl7">NO</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="14/m">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="13/m">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="12/m">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="11/m">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="10/m">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="9/m">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="8/m">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="7/m">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="14/f">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="13/f">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="12/f">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="11/f">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="10/f">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="9/f">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="8/f">YES</out>
<out type="push" extdata="asl7" condition="==" lvalue="$asl6$" rvalue="7/f">YES</out>
<out type="break" condition="==" lvalue="$asl7$" rvalue="NO"></out>
<out type="push" extdata="RECENT"><operator type="readfile" nvalue="F:\programs\Metis 2.8\Plugins\age.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="asl8">NO</out>
<out type="push" extdata="asl8" condition="?" lvalue="$RECENT$" rvalue="Name: %NAME%">YES</out>
<out type="file" mode="a" extdata="F:\programs\Metis 2.8\Plugins\age.txt" condition="==" lvalue="$asl8$" rvalue="NO">Name: %NAME% IP: %IP% Date: %DATE% A/S: $asl1$\n</out>
<out condition="==" lvalue="$asl8$" rvalue="NO">/notice #c62#Sorry #c51#%NAME%#c62#, you are under the age limit. Goodbye!</out>
<out condition="==" lvalue="$asl8$" rvalue="NO" delay="3000">/kick %NAME%</out>
<out condition="==" lvalue="$asl8$" rvalue="YES">/notice #c62#You've been told #c51#%NAME%#c62#, this time it is a ban.</out>
<out condition="==" lvalue="$asl8$" rvalue="YES" delay="3000">/kickban %NAME% 30</out>
</command>
</config>