gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76774 Posts in 13500 Topics by 1651 Members - Latest Member: insider4ever April 19, 2024, 08:25:07 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  Kick if you enter and leave
gfx
gfxgfx
 

Author Topic: Kick if you enter and leave  (Read 2521 times)

0 Members and 1 Guest are viewing this topic.

Offline Lagerlout666

  • Forum Member
Kick if you enter and leave
« on: December 31, 2006, 07:13:27 pm »
As requested by tiger in the help room i have modified a script by zenar to hopefully suit your needs. Thanks zenar for alot of the original coding im sure you wont mind, if you even recognise it lol  :wink:

Code: [Select]


<usergroup name="TKsafe" case="1">



*yourname here*
*regnames here*

//Dont remove this name below
*_BOT_SELF_TRIGGER_*

</usergroup>




//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>

</OnEnter>



//It stop the script when the person talk

<command type="script" condition="==" lvalue="%USERVAR[1206]%" rvalue="%IP%">

<in>%PARAMETER%</in>

<out>/opmsg %NAME% spoke so has been removed from the ban option</out>

<out type="self">!TK reload</out>

</command>



<command type="script" mode="thread">

<in>!TKrun</in>

<out>/opmsg Wait a reaction from %USERVAR[1200]% if he leaves will be banned</out>

</command>



//If the guy exit, it ban the user

<OnLeave type="script">

<out type="push" extdata="1207">%IP%</out>
<out>/ban %USERVAR[1200]%</out>

<out type="self">!TK leave</out>

</OnLeave>



<command type="script"  condition="==" lvalue="%USERVAR[1206]%" rvalue="%USERVAR[1207]%">

<in>!TK leave</in>

<out type="script">/opmsg %USERVAR[1200]% has left without saying anything so banned him.</out>

<out type="self">!TK reload</out>

</command>



<command type="script" usergroup="TKsafe">

<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>


</command>

What this does is stores the entering persons details to memory, this removes the need to have timers or to put the bot to sleep.
If the person who enters the room says hello or hi they wont get banned, after all if nobody speaks back to them why should they stay, but if they just come in and then leave without saying anything then the bot bans them. It worked in my room but that was wcs, shouldnt need much modification for other rooms apart from if the ban code like /ban blah is diffrent for other servers, the rest should work fine, hope this is what you after, if not let me know, and i will post it out of the help section into the main part, if not fill me with more ideas for this or you hungry other scripts add away.

Happy new year to you tiger and to all the scripters and learners.

######Modified Post to work lol, sorry folks, hope that clears a few things up#######
The Solution to 99% of winmx problems

nap.winmxgroup.net        -ONLINE again YAY!!!!!! :D

Praise's daily at the church of "Kopimi"

Offline cord73

  • MX Hosts
  • *****
  • *****
Re: Kick if you enter and leave
« Reply #1 on: January 01, 2007, 07:46:34 am »
wont work for me i get Metis: Warning usergroup inconsistency detected... how do i fix it

Offline reef

  • WMW Volunteer
  • *****
  • ***
Re: Kick if you enter and leave
« Reply #2 on: January 01, 2007, 01:30:21 pm »
it looks like the usergroup TKadmin was left out of the script.. try adding that and it should resolve the
problem......

Code: [Select]
<usergroup name="TKadmin">
name1
name2
etc
</usergroup>


Replace name1 name2 etc with names of regs u would like to allow in that section of the script

Offline Lagerlout666

  • Forum Member
Re: Kick if you enter and leave
« Reply #3 on: January 01, 2007, 08:30:43 pm »
yes sorry just noticed that, was doing about 20 things at that time. i will modify the post above now to fix it Well noticed reef
The Solution to 99% of winmx problems

nap.winmxgroup.net        -ONLINE again YAY!!!!!! :D

Praise's daily at the church of "Kopimi"

Offline Bearded Blunder

  • Forum Member
    • Taboo Community Website
Re: Kick if you enter and leave
« Reply #4 on: January 02, 2007, 05:00:46 am »
why sould people say hi if the room is so unwelcoming nobody speaks to them anyhow?
if the only thing you see on entering a room is the bot.. why say hi back? it's not human..

in my own opinion a thorouly pointless script unless modified to only ban if someone stays a reasonable lenghth of time (15 mins? 30?) & THEN leaves without speaking, not fair to punish people who enter & leave a "dead" room without single-handedly attempting to resucitate it
Blessed is he who expecteth nothing, for he shall not be disappointed.

Offline Me Here

  • Ret. WinMX Special Forces
  • WMW Team
  • *****
  • We came, We Saw, We definitely Kicked Ass!
Re: Kick if you enter and leave
« Reply #5 on: January 02, 2007, 11:33:05 am »
Most of us felt the same way but someone came to the help room requesting a script that would allow a 'Short Stay Ban' like WinMX hosted rooms and so here it is for them .. why they would want it I have no idea either.. hated the 'short stay ban' bit...lol

Offline Lagerlout666

  • Forum Member
Re: Kick if you enter and leave
« Reply #6 on: January 02, 2007, 05:49:58 pm »
yup just keeping the masses happy. i would never run this either but hay if it makes them happy
The Solution to 99% of winmx problems

nap.winmxgroup.net        -ONLINE again YAY!!!!!! :D

Praise's daily at the church of "Kopimi"

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
Re: Kick if you enter and leave
« Reply #7 on: January 18, 2007, 03:02:02 pm »
i dont use a short term in & out ban because say you enter and fall out due to a connectiion thing, its happened to me, then you find youre banned for falling out, but i did help tiger with that original talk or kick with added ion & out ban, also the kick on using caps, again some1 who's a typist will use caps on names & places, they get kicked for saying Hi 'Name'



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

WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  Kick if you enter and leave
 

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