|
Joined: Jul 2006
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
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?
|
|
|
|
Joined: Apr 2006
Posts: 400
Fjord artisan
|
Fjord artisan
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
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
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.
|
|
|
|
Joined: Apr 2006
Posts: 400
Fjord artisan
|
Fjord artisan
Joined: Apr 2006
Posts: 400 |
Or that, lol 
-Kurdish_Assass1n
|
|
|
|
Joined: Jul 2006
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Jul 2006
Posts: 8 |
thnx guys 
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
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. 
|
|
|
|
Joined: Jul 2006
Posts: 6
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Jul 2006
Posts: 6 |
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 
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Jul 2006
Posts: 6
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Jul 2006
Posts: 6 |
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!.
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Jul 2006
Posts: 6
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Jul 2006
Posts: 6 |
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!
|
|
|
|
Joined: Jul 2006
Posts: 6
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Jul 2006
Posts: 6 |
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??
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
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 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.
}
|
|
|
|
|