mIRC Homepage
Posted By: IR_n00b flood protection for script - 02/10/04 05:18 AM
does anyone knoow how to use flood protection for a script liek this?
on *:text:*cookie*:#: { /describe $chan gives $nick a cookie

}
Posted By: Mentality Re: flood protection for script - 02/10/04 09:56 AM
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,
Posted By: IR_n00b Re: flood protection for script - 02/10/04 06:34 PM
thanx works perfectly
© mIRC Discussion Forums