mIRC Home    About    Download    Register    News    Help

Print Thread
Anti Flood (trigger) #88218 26/06/04 02:59 AM
Joined: Jan 2003
Posts: 14
J
Julepils Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Jan 2003
Posts: 14
Hi again everyone,

Lets just get to the point right away shall we wink

on *:TEXT:!status:#chan: {
msg #chan the status is blablabla
}

How do you create a anti-flood protection so people wont be able to type !status hundres of times, so it doesnt flood me or annoy the people... smile

Thank you.. smile
Mostregards, Julepils.

Re: Anti Flood (trigger) #88219 26/06/04 03:21 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on *:TEXT:status:#chan: {
.timerstatus 1 5 /msg $chan status is blahblahblah
}


-KingTomato
Re: Anti Flood (trigger) #88220 26/06/04 05:09 AM
Joined: Jan 2003
Posts: 14
J
Julepils Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Jan 2003
Posts: 14
Yeah but that wouldnt exactly be anti-flood, and its /timer not /timerstatus :tongue: Heh..

There would build up lots of timers, and it would come anyway just delayed.. would be a bit annoying.. heh..

Re: Anti Flood (trigger) #88221 26/06/04 06:08 AM
Joined: Dec 2002
Posts: 191
N
Nobodi Offline
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
/timerstatus would start a named timer which would be restarted each time someone used the trigger .

Re: Anti Flood (trigger) #88222 26/06/04 07:29 AM
Joined: Nov 2003
Posts: 228
S
Seifer Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
Don't take this the wrong way, but I think you should spend a day or two reading the mIRC help file.

Re: Anti Flood (trigger) #88223 26/06/04 10:02 AM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
on *:TEXT:!status:#: {
inc -u30 %s 1
if (%s < 3) { msg # the status is blablabla }
}
this may be a good solution so the command can be called General 2times in 30 secs


Last edited by tsoglanos; 26/06/04 11:11 AM.
Re: Anti Flood (trigger) #88224 26/06/04 01:04 PM
Joined: Jan 2003
Posts: 14
J
Julepils Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Jan 2003
Posts: 14
Hehe, so much easier by getting people who already know how to do such things to tell/teach you - and by easy-scripting for several years (even though i havent experimented anything special so rusty as a newbie), but uhm i learn very quick so smile

Re: Anti Flood (trigger) #88225 26/06/04 01:04 PM
Joined: Jan 2003
Posts: 14
J
Julepils Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Jan 2003
Posts: 14
Thanks alot mate, realy appriciate it! smile

Re: Anti Flood (trigger) #88226 26/06/04 01:52 PM
Joined: Nov 2003
Posts: 228
S
Seifer Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
Only reason I suggested that is because if you did, you'd know that by adding to the end of the /timer command (/timerstatus for example), you;ll create a timer named 'status'. Therefore, the command /timerstatus 1 5 .msg Nick ... would not create several timers but reset/start the timer named 'status' each time it's executed.