mIRC Home    About    Download    Register    News    Help

Print Thread
#119991 12/05/05 02:01 AM
Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
Hi, i came across this script, and was wondering, maybe if yall could take a look at it. here it is.

on *:NICK: {
inc -u10 $+(%,nickflood,.,$address)
var %chan = #channel,#channel
if (!$($+(%,nickflood,.,w,.,$address),2)) {
if ($($+(%,nickflood,.,$address),2) >= 3) {
set $+(%,nickflood,.,w,.,$address) 1
msg %chan $newnick Excessive Nick Change will NOT be Tolerated! This is your First & Last Warning.
}
}
else {
if ($newnick ison %chan) && ($me isop %chan) {
kick %chan $newnick Excessive Nick Change!
unset $+(%,nickflood,.,w,.,$address)
}
}
}

on *:START: .unset %nickflood*

it works and everything, but it picks up on every room im in, when i just need it to work in only 2 of the rooms, any ideas?
Thanks In Advance

#119992 12/05/05 06:04 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
on *:START: .unset %nickflood.*
on *:NICK: {
  [color:blue]var %chan = #channel1,#channel2[/color]
   if ( (($newnick ison $gettok(%chan,1,44)) && ($me isop $v2)) || (($newnick ison $gettok(%chan,2,44)) && ($me isop $v2)) ) {
    inc -u10 $+(%,nickflood.,$address)
    if ($($+(%,nickflood.,$address),2) = 3) {
      if (($newnick ison $gettok(%chan,1,44)) && ($me isop $v2)) { msg $v2 $newnick Excessive Nick Change will NOT be Tolerated! This is your First & Last Warning. }
      if (($newnick ison $gettok(%chan,2,44)) && ($me isop $v2)) { msg $v2 $newnick Excessive Nick Change will NOT be Tolerated! This is your First & Last Warning. }
    }
    elseif ($($+(%,nickflood.,$address),2) > 3) {
      if (($newnick ison $gettok(%chan,1,44)) && ($me isop $v2)) { kick $v2 $newnick Excessive Nick Change! }
      if (($newnick ison $gettok(%chan,2,44)) && ($me isop $v2)) { kick $v2 $newnick Excessive Nick Change! }
    }
  }
}


try that note the blue line you need to put ya channels on it.

* untested

#119993 13/05/05 12:13 AM
Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
works great , thanks smile 1 question tho, how would i give exceptions for ops? so it doesnt kick the ops

#119994 13/05/05 12:56 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
on *:START: .unset %nickflood.*
on *:NICK: {
  [color:blue]var %chan = #channel1,#channel2[/color]
   if ( (($newnick ison $gettok(%chan,1,44)) && ($me isop $v2) && ($newnick !isop $v2)) || (($newnick ison $gettok(%chan,2,44)) && ($me isop $v2) && ($newnick !isop $v2)) ) {
    inc -u10 $+(%,nickflood.,$address)
    if ($($+(%,nickflood.,$address),2) = 3) {
      if (($newnick ison $gettok(%chan,1,44)) && ($me isop $v2) && ($newnick !isop $v2)) { msg $v2 $newnick Excessive Nick Change will NOT be Tolerated! This is your First & Last Warning. }
      if (($newnick ison $gettok(%chan,2,44)) && ($me isop $v2) && ($newnick !isop $v2)) { msg $v2 $newnick Excessive Nick Change will NOT be Tolerated! This is your First & Last Warning. }
    }
    elseif ($($+(%,nickflood.,$address),2) > 3) {
      if (($newnick ison $gettok(%chan,1,44)) && ($me isop $v2) && ($newnick !isop $v2)) { kick $v2 $newnick Excessive Nick Change! }
      if (($newnick ison $gettok(%chan,2,44)) && ($me isop $v2) && ($newnick !isop $v2)) { kick $v2 $newnick Excessive Nick Change! }
    }
  }
}

^ that well ignore them if there an op but well kick em from the other channel if they are not an op


Code:
on *:START: .unset %nickflood.*
on *:NICK: {
  [color:blue]var %chan = #channel1,#channel2[/color]
   if ( (($newnick !isop $gettok(%chan,1,44)) && ($newnick !isop $gettok(%chan,2,44))) && ( (($newnick ison $gettok(%chan,1,44)) && ($me isop $v2)) || (($newnick ison $gettok(%chan,2,44)) && ($me isop $v2)) ) ) {
    inc -u10 $+(%,nickflood.,$address)
    if ($($+(%,nickflood.,$address),2) = 3) {
      if (($newnick ison $gettok(%chan,1,44)) && ($me isop $v2)) { msg $v2 $newnick Excessive Nick Change will NOT be Tolerated! This is your First & Last Warning. }
      if (($newnick ison $gettok(%chan,2,44)) && ($me isop $v2)) { msg $v2 $newnick Excessive Nick Change will NOT be Tolerated! This is your First & Last Warning. }
    }
    elseif ($($+(%,nickflood.,$address),2) > 3) {
      if (($newnick ison $gettok(%chan,1,44)) && ($me isop $v2)) { kick $v2 $newnick Excessive Nick Change! }
      if (($newnick ison $gettok(%chan,2,44)) && ($me isop $v2)) { kick $v2 $newnick Excessive Nick Change! }
    }
  }
}

^ that well ignore them if there an op on ether channel

* again untested

#119995 13/05/05 01:23 AM
Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
seems to work smile thanks alot

#119996 15/05/05 10:20 PM
Joined: May 2005
Posts: 1
A
Mostly harmless
Offline
Mostly harmless
A
Joined: May 2005
Posts: 1
where do you post this code?


A dog may be a man's best friend, but a horse is a woman's.

-ashley-

Link Copied to Clipboard