mIRC Home    About    Download    Register    News    Help

Print Thread
flood/kick script #154531 30/07/06 01:39 AM
Joined: Jul 2006
Posts: 8
H
hc2995 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Jul 2006
Posts: 8
How would i make a script that kicks users if they say X amount of lines in X amout of time?


Visit the DW Search Engine at: http://www.searchdw.com
Re: flood/kick script #154532 30/07/06 01:42 AM
Joined: Apr 2006
Posts: 400
K
Kurdish_Assass1n Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
I'm pretty sure that there are PLENTY of Flood protection scripts, here are some links that may have them:
Mirc.net
Mircscripts.org


-Kurdish_Assass1n
Re: flood/kick script #154533 30/07/06 01:44 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on @*:text:*:#:{
  var %messages = 6, %time = 3
  inc -u $+ %time $+(%,flood.,$cid,$chan,$wildsite)
  if ($eval($+(%,flood.,$cid,$chan,$wildsite),2) == %messages) kick $chan $nick Flooding.
}


Adjust %messages and %time to suit you.

Re: flood/kick script #154534 30/07/06 01:45 AM
Joined: Apr 2006
Posts: 400
K
Kurdish_Assass1n Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
Or that, lol laugh


-Kurdish_Assass1n
Re: flood/kick script #154535 30/07/06 01:48 AM
Joined: Jul 2006
Posts: 8
H
hc2995 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Jul 2006
Posts: 8
thnx guys laugh


Visit the DW Search Engine at: http://www.searchdw.com
Re: flood/kick script #154536 30/07/06 02:04 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Hehe don't mind me. It's just been a while since I've scripted so I'm getting back into the swing of things. smile

Re: flood/kick script #154537 30/07/06 07:54 PM
Joined: Jul 2006
Posts: 6
D
DeXXa Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
D
Joined: Jul 2006
Posts: 6
Quote:
Code:
on @*:text:*:#:{
  var %messages = 6, %time = 3
  inc -u $+ %time $+(%,flood.,$cid,$chan,$wildsite)
  if ($eval($+(%,flood.,$cid,$chan,$wildsite),2) == %messages) kick $chan $nick Flooding.
}


Adjust %messages and %time to suit you.


Hey,

Now if someone floods it bans like this:
[21:53:06] * dexxa sets mode: +b Unknown9228!*ss0000000@Swift-3AA84BA0.cable.casema.nl

How can I make it that I only bans:
*!*@Swift-3AA84BA0.cable.casema.nl

Thnx confused

Re: flood/kick script #154538 30/07/06 07:59 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Your quoted code will kick the person, but won't set a ban.
If you're seeing a ban being set (as you show with the time stamped entry), then that's a different code.

You're going to have to figure out which code (or part of code) is actually setting the ban, and show us that, before we can help any further.

Re: flood/kick script #154539 30/07/06 08:02 PM
Joined: Jul 2006
Posts: 6
D
DeXXa Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
D
Joined: Jul 2006
Posts: 6
Quote:
Your quoted code will kick the person, but won't set a ban.
If you're seeing a ban being set (as you show with the time stamped entry), then that's a different code.

You're going to have to figure out which code (or part of code) is actually setting the ban, and show us that, before we can help any further.


oops, that what stupid, I did edit a line in it
:
if ($eval($+(%,flood.,$cid,$chan,$wildsite),2) == %messages) ban $chan $nick 4Die Flooder!.

Re: flood/kick script #154540 30/07/06 08:03 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
The code I gave you doesn't even set a ban so I guess you've modified it. Anyway, to set the ban you want to do you can use ban -k $chan $nick 2 Flooding. instead of kick $chan $nick Flooding.

Re: flood/kick script #154541 30/07/06 08:05 PM
Joined: Jul 2006
Posts: 6
D
DeXXa Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
D
Joined: Jul 2006
Posts: 6
Quote:
The code I gave you doesn't even set a ban so I guess you've modified it. Anyway, to set the ban you want to do you can use ban -k $chan $nick 2 Flooding. instead of kick $chan $nick Flooding.


Thnx! That worked!

Re: flood/kick script #154542 22/08/06 04:12 PM
Joined: Jul 2006
Posts: 6
D
DeXXa Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
D
Joined: Jul 2006
Posts: 6
Code:
 on @*:text:*:#:{
  var %messages = 5, %time = 3
  inc -u $+ %time $+(%,flood.,$cid,$chan,$wildsite)
  if ($eval($+(%,flood.,$cid,$chan,$wildsite),2) == %messages) ban -k $chan $nick 2 4Flooding - 5 lines in 3 seconds.
}
 


Hey - Dont know if I am allowed to bump old topics, but I got the script from here, so I thought iit would be easier to post it here aswell

How can I put a timer in the script above, so it removes the ban after like 300 seconds??

Re: flood/kick script #154543 22/08/06 10:11 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
It's not that old of a topic, so don't worry. Generally if a topic is 6 months (or more) in age, bumping it is not recommended.

In response to your query, here's the updated
Code:
 on @*:text:*:#:{
  var %messages = 5, %time = 3
  inc -u $+ %time $+(%,flood.,$cid,$chan,$wildsite)
  if ($eval($+(%,flood.,$cid,$chan,$wildsite),2) == %messages) ban -ku300 $chan $nick 2 4Flooding - 5 lines in 3 seconds.
}