mIRC Home    About    Download    Register    News    Help

Print Thread
#33913 03/07/03 08:46 PM
Joined: Jul 2003
Posts: 3
H
hurugay Offline OP
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Jul 2003
Posts: 3
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.

#33914 03/07/03 08:53 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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)
}

Last edited by pheonix; 03/07/03 08:55 PM.

new username: tidy_trax
#33915 03/07/03 09:00 PM
Joined: Jul 2003
Posts: 3
H
hurugay Offline OP
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Jul 2003
Posts: 3
im noot so "leet" as you so, i dont understand the script.. can you explain a little bit for me ;o

#33916 03/07/03 09:04 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Why don't you use mIRC's built in flood protection. Then when you know how to code your own. Attempt to make one.

#33917 03/07/03 09:05 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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


new username: tidy_trax
#33918 03/07/03 09:09 PM
Joined: Jul 2003
Posts: 3
H
hurugay Offline OP
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Jul 2003
Posts: 3
no no.. that was nice ;D thanx
but if i dont remove the query he can still flood

#33919 03/07/03 09:11 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
nope. because every time you get a private message it will increase.


new username: tidy_trax

Link Copied to Clipboard