mIRC Home    About    Download    Register    News    Help

Print Thread
#184003 24/08/07 12:38 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Can anyone make or have something for masskick protection?

Garou #184010 24/08/07 02:22 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: Garou
Can anyone make or have something for masskick protection?


Code:
alias EnProt { 
  if ($1 == on) { %e.prot = on | %e.count = 0 }
  elseif ($1 == off) { %e.prot = off }
}

on *:KICK:#:{
  if (!%e.time) { .timer 1 5 /unset %e.det | %e.nick = %e.count }
  elseif (%e.prot == on) && (%e.count > 3) { ban -u300 $nick 3 | kick # $nick DO NOT MASSKICK EVER IN THIS CHANNEL 5MIN BAN }
}


Here's something that should work (Not tested)


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #184022 24/08/07 05:08 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
That won't work because you never set %e.time

hixxy #184036 24/08/07 08:02 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: hixxy
That won't work because you never set %e.time


my bad

Code:

alias EnProt { 
  if ($1 == on) { %e.prot = on | %e.count = 0 }
  elseif ($1 == off) { %e.prot = off }
}

on *:KICK:#:{
  if (!%e.time) { .timer 1 5 /unset %e.det | %e.nick = %e.count | .timer 1 5 /set %e.time on }
  elseif (%e.prot == on) && (%e.count > 3) { ban -u300 $nick 3 | kick # $nick DO NOT MASSKICK EVER IN THIS CHANNEL 5MIN BAN }
}


It would of stil lworked because i did !%e.time not %e.time except it would of always been constant and never close lol


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #184048 24/08/07 10:37 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
does it have to be set on manual?
whats the trigger to set of the alias EnProt?

Last edited by Garou; 24/08/07 10:39 PM.
Garou #184063 24/08/07 11:40 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
/enprot on|off


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!

Link Copied to Clipboard