mIRC Home    About    Download    Register    News    Help

Print Thread
#99474 02/10/04 05:18 AM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
does anyone knoow how to use flood protection for a script liek this?
on *:text:*cookie*:#: { /describe $chan gives $nick a cookie

}

Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
You may use something like:

Code:
[color:green]on @*:text:*cookie*:#:{
  if (!%var [ $+ [ $nick ] ]) {
    set -u60 %var $+ $nick $nick
    describe # gives $nick a cookie
  }
} [/color]


This means that you will only reply once to cookie in a 60 second period to a particular person. It will only trigger if you're opped in a channel too (this is a good idea, on text scripts are generally unwelcome in channels where you are not opped. If you don't want this, simply remove the '@' symbol at the start of the code).

Regards,


Mentality/Chris
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
thanx works perfectly


Link Copied to Clipboard