0 Members and 1 Guest are viewing this topic.
<config>//Put peoples who not be kicked...<usergroup name="TKsafe" case="1">*Name**Zenar*</usergroup>//Put peoples who use this script<usergroup name="TKadmin" case="1">*Name**Zenar*//Do not remove this name or else, this script will not work*_BOT_SELF_TRIGGER_*</usergroup>//To turn on the script<command type="script" usergroup="TKadmin"><in>tk on*</in><out type="push" extdata="1201">1</out><out type="script">/opmsg Talk or Kick ON</out></command>//To turn off the script<command type="script" usergroup="TKadmin"><in>tk off*</in><out type="push" extdata="1201">0</out><out type="script">/opmsg Talk or Kick OFF</out></command>//When a guy enter in your room, it start the script<OnEnter type="script" condition="==" lvalue="%USERVAR[1201]%" rvalue="1" usergroup="!TKsafe"><out type="push" extdata="1200">%NAME%</out><out type="push" extdata="1206">%IP%</out><out type="push" extdata="1202">nop</out><out type="self">!TKrun</out></OnEnter>//It stop the script when the person talk<command type="script" condition="==" lvalue="%USERVAR[1206]%" rvalue="%IP%"><in>%PARAMETER%</in><out>/opmsg %NAME% can talk!</out><out type="self">TK reload</out></command><command type="script" mode="thread" usergroup="TKadmin"><in>!TKrun</in><out type="push" extdata="1201">0</out><out>/opmsg Wait a reaction from %USERVAR[1200]%...</out><out type="push" extdata="1203">0</out><out type="sleep" extdata="1000"></out><out type="break" condition="==" lvalue="%USERVAR[1202]%" rvalue="ok"/><out type="push" extdata="1203"><operator type="+" lvalue="%USERVAR[1203]%" rvalue="1"/></out>//This message appair after 30 seconds if the guy doesn't talk. This number must be more small than the counter.<out type="script" condition="==" lvalue="%USERVAR[1203]%" rvalue="30">Can you said hi %USERVAR[1200]%?</out>//This counter wait 45 seconds before kick<out type="goto" extdata="-4" condition="!=" lvalue="%USERVAR[1203]%" rvalue="45"/><out sleep="5000" condition="!=" lvalue="%USERVAR[1202]%" rvalue="ok">/kick %RAWNAME[%USERVAR[1200]%]%</out><out condition="!=" lvalue="%USERVAR[1202]%" rvalue="ok">%USERVAR[1200]% was kicked because he don't know to said anything...</out></command>//If the guy change name...<OnRename type="script"><out type="push" extdata="1204">%OLDNAME%</out><out type="push" extdata="1205">%NEWNAME%</out><out type="script" condition="==" lvalue="%USERVAR[1206]%" rvalue="%IP%">/opmsg %USERVAR[1204]% has changed his name to %USERVAR[1205]% but he can't talk...</out><out type="push" extdata="1200" condition="==" lvalue="%USERVAR[1206]%" rvalue="%IP%">%USERVAR[1205]%</out></OnRename>//If the guy exit, it stop the script<OnLeave type="script"><out type="push" extdata="1207">%IP%</out><out type="self">TK leave</out></OnLeave><command type="script" usergroup="TKadmin" condition="==" lvalue="%USERVAR[1206]%" rvalue="%USERVAR[1207]%"><in>TK leave</in><out type="script">/opmsg %USERVAR[1200]% has left without said anything.</out><out type="self">TK reload</out></command><command type="script" usergroup="TKadmin"><in>TK reload</in><out type="push" extdata="1206">ok</out><out type="push" extdata="1202">ok</out><out type="push" extdata="1200">ok</out><out type="push" extdata="1201">1</out><out>/opmsg TK was ready to kick that dumb ass</out></command></config>
<config>//Put peoples who not be kicked...<usergroup name="TKsafe" case="1">*Name*</usergroup>//Put peoples who use this script<usergroup name="TKadmin" case="1">*Name*//Do not remove this name or else, this script will not work*_BOT_SELF_TRIGGER_*</usergroup><command type="script" usergroup="TKadmin"><in>!tkon*</in><out type="push" extdata="1201">1</out><out type="script">/opmsg Talk or Kick ON</out></command><command type="script" usergroup="TKadmin"><in>!tkoff*</in><out type="push" extdata="1201">0</out><out type="script">/opmsg Talk or Kick OFF</out></command><OnEnter type="script" condition="==" lvalue="%USERVAR[1201]%" rvalue="1" usergroup="!TKsafe"><out type="push" extdata="1200">%NAME%</out><out type="push" extdata="1206">%IP%</out><out type="push" extdata="1202">nop</out><out type="self">!TKrun</out></OnEnter><command type="script" condition="==" lvalue="%USERVAR[1206]%" rvalue="%IP%"><in>%PARAMETER%</in><out>#c21#glad you found us %NAME% #c21#relax, join in and meet new friends</out><out type="self">TK reload</out></command><command type="script" mode="thread" usergroup="TKadmin"><in>!TKrun</in><out type="push" extdata="1201">0</out><out>hello %USERVAR[1200]%</out><out type="push" extdata="1203">0</out><out type="sleep" extdata="1000"></out><out type="break" condition="==" lvalue="%USERVAR[1202]%" rvalue="ok"/><out type="push" extdata="1203"><operator type="+" lvalue="%USERVAR[1203]%" rvalue="1"/></out>//This message appair after 45 seconds if the guy doesn't talk. This number must be more small than the counter.<out type="script" condition="==" lvalue="%USERVAR[1203]%" rvalue="45">Planet Earth to %USERVAR[1200]%, are you going to say hi? or are you not stopping?</out>//This counter wait 60 seconds before kick<out type="goto" extdata="-4" condition="!=" lvalue="%USERVAR[1203]%" rvalue="60"/><out sleep="5000" condition="!=" lvalue="%USERVAR[1202]%" rvalue="ok">/kick %USERVAR[1200]%</out><out type="self" condition="!=" lvalue="%USERVAR[1202]%" rvalue="ok">TK reload</out></command><OnLeave type="script"><out type="push" extdata="1207">%IP%</out><out condition="==" lvalue="%USERVAR[1206]%" rvalue="%USERVAR[1207]%">/banip %IP% 1</out><out type="self" condition="==" lvalue="%USERVAR[1206]%" rvalue="%USERVAR[1207]%">TK reload</out></OnLeave><command type="script" usergroup="TKadmin"><in>TK reload</in><out type="push" extdata="1206">ok</out><out type="push" extdata="1202">ok</out><out type="push" extdata="1200">ok</out><out type="push" extdata="1201">1</out><out>/opmsg reloaded</out></command></config>
part of it was:<command type="script" condition="==" lvalue="%USERVAR[1206]%" rvalue="%IP%"><in>%PARAMETER%</in><out>#c21#glad you found us %NAME% #c21#relax, join in and meet new friends</out><out type="self">TK reload</out></command>you can shorten %PARAMETER% to %PARAM% or just the wildcard * i changed it to:<command type="script" condition="==" lvalue="%USERVAR[1206]%" rvalue="%IP%"><in>*</in><out>#c21#glad you found us %NAME% #c21#relax, join in and meet new friends</out><out type="self">TK reload</out></command>