gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76662 Posts in 13458 Topics by 2084 Members - Latest Member: illusions November 27, 2021, 09:07:42 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Talk Or Be Kicked: By Zenar
gfx
gfxgfx
 

Author Topic: Talk Or Be Kicked: By Zenar  (Read 4100 times)

0 Members and 1 Guest are viewing this topic.

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
Talk Or Be Kicked: By Zenar
« on: December 02, 2006, 05:14:07 pm »
If you don't want have ppl who enter in your room and not talk, but just park without asking, here is the answer, it will kick if they dont talk, it is baced on IP if they change name, it will still kick. it works because i use it in my room. Many Thanks Zenar.

To turn on, write TK on
To turn off, write TK off
To stop and reload this script, write TK reload
Code: [Select]
<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>


Edited by: Omega (added colon in topic for better comprehension)



Try Connecting, the attacks may let you http://patch.winmxconex.com/

Offline SamSeeSam

  • Forum Member
  • The Sky will never Fall on our heads
Re: Talk Or Be Kicked By Zenar
« Reply #1 on: December 03, 2006, 01:59:34 pm »
Talk Or Be Kicked By Zenar

lol what a topic name
* Samseesam recommends colons

Cheers :P
Reconnect to winmx with the blocking patch :)
Patch link :
http://patch.winmxconex.com/

Spread the word now :)

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
Re: Talk Or Be Kicked By Zenar
« Reply #2 on: December 03, 2006, 02:22:58 pm »
yes your right sam  or then again maybe Zenar will admin for us n kick some butt   :lol:



Try Connecting, the attacks may let you http://patch.winmxconex.com/

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
Re: Talk Or Be Kicked: By Zenar
« Reply #3 on: January 04, 2007, 07:27:50 pm »
i did some modification due to this not resetting itself after kicking, a problem with FXServ, but this will also short term ban the ip of someone that enters and leaves a few seconds later, this was requested by another host, it works on metis2.6, 2.7 and 2.8
Code: [Select]
<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>



Try Connecting, the attacks may let you http://patch.winmxconex.com/

Offline Bearded Blunder

  • Forum Member
    • Taboo Community Website
Re: Talk Or Be Kicked: By Zenar
« Reply #4 on: January 05, 2007, 03:22:52 am »
* Bearded Blunder is of the opinion this is a job for carbon based admins & not bots

thing is, bots are stupid & can't/won't distinguish if someone doesn't speak through simply parking to lurk, or if they don't because the room is inactive....
Blessed is he who expecteth nothing, for he shall not be disappointed.

Offline cord73

  • MX Hosts
  • *****
  • *****
Re: Talk Or Be Kicked: By Zenar
« Reply #5 on: January 05, 2007, 06:03:19 pm »
works good i put tags of my support rooms on the tksafe they dont get kicked good work

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
Re: Talk Or Be Kicked: By Zenar
« Reply #6 on: January 16, 2007, 09:29:12 pm »
Hi All, adding to the little error i first made on calling it talk or be kicked by Zénar, well actually Zénar does pop in my room sometimes, so i made Zénar admin just in case the opportunity arose  :D



Try Connecting, the attacks may let you http://patch.winmxconex.com/

Offline Zénar

  • Forum Member
  • *****
    • ZenMX
Re: Talk Or Be Kicked: By Zenar
« Reply #7 on: January 16, 2007, 11:30:54 pm »
I'm here to kick  :P

Offline DarkElves

  • King of ASCII Art
  • Forum Member
Re: Talk Or Be Kicked: By Zenar
« Reply #8 on: March 25, 2007, 11:41:02 am »
i tried this script but even if the person says hi on enter  the bot is still kicking them out

any suggestions

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
Re: Talk Or Be Kicked: By Zenar
« Reply #9 on: March 25, 2007, 12:09:05 pm »

i did change something in it because i notices it was people using  bendmx, the hello on entry was not licked up by the script
Code: [Select]
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>



Try Connecting, the attacks may let you http://patch.winmxconex.com/

Offline DarkElves

  • King of ASCII Art
  • Forum Member
Re: Talk Or Be Kicked: By Zenar
« Reply #10 on: March 25, 2007, 12:44:09 pm »
ok i tried adding the new lines you suggested it still kicks everyone out  even if they say hi  / hello  / or even long sentences it still throwing them out

Offline DarkElves

  • King of ASCII Art
  • Forum Member
Re: Talk Or Be Kicked: By Zenar
« Reply #11 on: March 25, 2007, 12:59:27 pm »
whats your room max ill drop in

Re: Talk Or Be Kicked: By Zenar
« Reply #12 on: January 07, 2009, 11:38:50 pm »
23:10:38 [OpMsg] <··º)([¥])(º·· §])-[(å[)º])/\([462_00000> Wait a reaction from ··º)([¥])(º·· Lioness...
23:11:10 ©  Can you said hi ··º)([¥])(º·· Lioness? 
23:11:33 <··º)([¥])(º·· §])-[(å[)º])/\([> /kick ]%



the above is what i get when it tries to kick for not speaking any fix for this

WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Talk Or Be Kicked: By Zenar
 

gfxgfx
gfx
©2005-2021 WinMXWorld.com. All Rights Reserved.
SMF 2.0.18 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.026 seconds with 24 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!