mIRC Home    About    Download    Register    News    Help

Print Thread
#144090 05/03/06 07:15 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
Hi, i was searching for a Flood Protection... But what i found on the internet didn't worked...
-
I'm searching for a script that kicks & bans the person for 1 minute after repeating 4 lines... (on quakenet) ... Can someone create a working one 4 me? ;\ Thankx...

Last edited by PhyxiuS; 05/03/06 07:16 PM.

If you mess with the best, u will die like the rest !
#144091 06/03/06 06:39 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
Ok, i searched more & i found a script from "Genius at work" ...
(i already made some changes to it, btw...)
This one:
Code:
on @*:TEXT:*:#: {
  if ($nick isop $chan) return  
  inc -u5 $+(%,flood.,$chan) 1
  if ($($+(%,flood.,$chan),2) > 3) { 
    mode $chan +m
    mode $chan -v $nick
     msg $chan You aint allowed to flood on this channel, $nick ! 
    timer 1 5 mode $chan -m 
  }
}


Well, that's working fine... But i need something else (changes) & i don't know how to create them by myself.
-
Needed:
The script is detecting everyone that's flooding different lines, but i'm searching for a working script that only does the same, but then only when users "REPEAT" the lines, not when they're flooding different lines... & The script is doing mode +m, then -v the user & after 5 seconds it does -m again, i want ² keep that but with a warning, the second time they gettin' banned for 30 minutes or something, can someone please help me with this? confused


If you mess with the best, u will die like the rest !
#144092 07/03/06 01:49 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Code:
on @*:TEXT:*:#: {
  if ($nick isop $chan) return

  ;*** Flood protection *** 
  inc -u5 $+(%,flood.,$chan,.,$nick) 1
  if ($($+(%,flood.,$chan,.,$nick),2) > 3) {
    inc $+(%,warn.,$chan,.,$nick) 1 
    mode $chan +m
    mode $chan -v $nick
    msg $chan You aint allowed to flood on this channel, $nick ! 
    timer 1 5 mode $chan -m 
  }

  ;*** Repeat Protection ***
  if ($1- == $($+(%,rep.t.,$chan,.,$nick),2)) {
    inc $+(%,rep.c.,$chan,.,$nick)
    if ($($+(%,rep.c.,$chan,.,$nick),2) > 3) {
      inc $+(%,warn.,$chan,.,$nick) 1
      mode $chan +m
      mode $chan -v $nick
      msg $chan You aint allowed to repeat on this channel, $nick !
      .timer 1 5 mode $chan -m
    }
  }
  else set $+(%,rep.t.,$chan,.,$nick) $1-

  ;*** Kick/ban for repeated offenses ***
  if ($($+(%,warn.,$chan,.,$nick),2) == 2) kick $chan $nick Last warning...
  elseif ($($+(%,warn.,$chan,.,$nick),2) >= 3) ban -ku1800 $chan $nick 2 Guess you can't take a hint
}


(Untested)

I altered the code so that it was nick/chan-specific.

-genius_at_work


Link Copied to Clipboard