YB Forums: Flyby Ban - YB Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Flyby Ban flyby or timed ban Rate Topic: -----

#1 User is offline   adoredcub Icon

  • Icon
  • Group: Members
  • Posts: 5
  • Joined: 21-January 10

Posted 21 January 2010 - 06:39 AM

Hi all I got this script its for flyby ban in my room I don't know why its not working right. It will ban the nicks and addresses but wont unban them not sure why maybe I wrote it wrong? It is supposed to ban them for 30mins then unban them here is the script. any help would be appreciated. thanks in advance.

on 1*:JOIN:#:{ 
  set -u60 $+(%,chan.,joinpart.,$address) 1 
}


on 1:TEXT:*:#:{ 
  if ($($+(%,chan.,joinpart.,$address),2)) { 
    unset $+(%,chan.,joinpart.,$address)
  } 
}

on 1:PART:#:{
  if ($($+(%,chan.,joinpart.,$address),2)) {
    set -u5 %flyby.flood [ $+ [ $chan  ] ] 5
    /ban -u1800 $chan $address

    notice $nick [- Banned From $chan ][Reason: FlyBy ][ Time: 30 Minutes -] 
    msg $chan [- Banned From $chan ][Reason: FlyBy ][ Time: 30 Minutes -]
  }
} 

0

#2 User is offline   Anthony Icon

  • Icon
  • Group: Support Helper
  • Posts: 20
  • Joined: 08-January 10
  • Gender:Male
  • Interests:I love scripting, and gaming... but don't have much time between work and a new baby and a wife and a 80lb dog... I think I'll just stop sleeping... *sigh*

Posted 21 January 2010 - 07:03 PM

We have tested this script and it seems to work just fine. Maybe you could give us some more info on what hapens when you use it. I would also add an ON QUIT section to this script.
0

#3 User is offline   adoredcub Icon

  • Icon
  • Group: Members
  • Posts: 5
  • Joined: 21-January 10

Posted 21 January 2010 - 08:10 PM

ok i had a sgentle min rewrite it for me thats knows more then me.

here is the new script.

on 1:JOIN:#: {
  if ($me isop #) { 
    set -u60 $+(%flyby.,$address($nick)) waiting
  }
}
on 1:TEXT:*:#: {
  if ($me isop #) { 
    unset $+(%flyby.,$address($nick))
  }
}
on 1:PART:#: {
  if ($me isop #) && $+(%flyby.,$address($nick)) { 
    ban -u1800 # $nick 3
    notice $nick [- Banned From $chan ][Reason: FlyBy ][ Time: 30 Minutes -]
    msg $chan [- Banned From $chan ][Reason: FlyBy ][ Time: 30 Minutes -]
  }
}

0

#4 User is offline   adoredcub Icon

  • Icon
  • Group: Members
  • Posts: 5
  • Joined: 21-January 10

Posted 21 January 2010 - 08:12 PM

View PostAnthony, on 21 January 2010 - 07:03 PM, said:

We have tested this script and it seems to work just fine. Maybe you could give us some more info on what hapens when you use it. I would also add an ON QUIT section to this script.

hi Anthony
Thnaks for the info Iam not a good script writer I had someone better then me look at it and he didn't like it so he rewrote. seems to work now before it would ban sometimes and not others. and if it did ban it wouldn't unban them at all.

turns out my mirc was just to old to work with the script its fixed now i upgraded the mirc thanks guys by the way the first script works the best.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users