mIRC Homepage
Posted By: hurugay floodprotection - 03/07/03 08:46 PM
i have tried to make my own floodprotection.
its like this
on *:text:*:?: {
if % $+ $nick > 10 ignore $address($1,3)
timer 1 60 unset % $+ $nick
set % $+ $nick
inc % $+ $nick 1
}

but it dont work.
10 lines in 60 sec.
Posted By: pheonix Re: floodprotection - 03/07/03 08:53 PM
that wont work because % $+ $nick assumes you are referring to a numbered nickname and you have a variable called %.

i use this

on *:TEXT:*:?:{
$iif(%flood == $null,.set -u5 %flood 1,inc %flood 1)
$iif(%fnick == $null,.set -u5 %fnick $nick,//echo -a private msg)
$iif(%fnick == $nick && %flood > 4,/ignore $nick,//echo -a private msg)
}
Posted By: hurugay Re: floodprotection - 03/07/03 09:00 PM
im noot so "leet" as you so, i dont understand the script.. can you explain a little bit for me ;o
Posted By: SladeKraven Re: floodprotection - 03/07/03 09:04 PM
Why don't you use mIRC's built in flood protection. Then when you know how to code your own. Attempt to make one.
Posted By: pheonix Re: floodprotection - 03/07/03 09:05 PM
on *:TEXT:*:?:{
;this line checks if the variable exists and if it doesnt it sets it.if it does it increases it by 1.
$iif(%flood == $null,.set -u5 %flood 1,inc %flood 1)
;this line checks if the nickname is in the %fnick variable and if not it sets it.
$iif(%fnick == $null,.set -u5 %fnick $nick,//echo -a private msg)
;this line ignores the person if the person is alrady stored in the %fnick variable and if the %flood variable is more than 5.
$iif(%fnick == $nick && %flood > 4,/ignore $nick,//echo -a private msg)
}
;the .set -u5 means it will unset after 5 seconds,so that flood prot will ignore the person if you get more than 4 messages in 5 seconds.
;i can change it for you if you want smile
Posted By: hurugay Re: floodprotection - 03/07/03 09:09 PM
no no.. that was nice ;D thanx
but if i dont remove the query he can still flood
Posted By: pheonix Re: floodprotection - 03/07/03 09:11 PM
nope. because every time you get a private message it will increase.
© mIRC Discussion Forums