Overkill ban.

By Fan_Of_Ur_Mom on Jan 22, 2008

This is for the ban happy people who just love to ban excessivly.... Like me. :D Simple, paste it under the "nick list" section of Popups and right click there nick on the nick list and you should see a "total ban" section go to it and click "add bans" and BAM them be banned/muted ... It's basically an oversized mute and if they leave they are banned to hell. >:| Quite pointless, but fun none the less.

There is an updated version of the ban underneath the original script (For those who would get off my ass, I didn't change it 'cause it's a ridiculous script and it's not worth my time fixing a noob script, now leave me alone.)

 Total Ban
  .Add Bans:{
    /mode $chan +b ~n: $+ $address($$1,2)
    /mode $chan +b ~q: $+ $address($$1,2)
    /mode $chan +b $address($$1,1)
    /mode $chan +b $address($$1,2)
    /mode $chan +b $address($$1,3)
    /mode $chan +b $address($$1,4)
    /mode $chan +b $address($$1,5)
    /mode $chan +b $address($$1,6)
    /mode $chan +b $address($$1,7)
    /mode $chan +b $address($$1,8)
    /mode $chan +b $address($$1,9)
    /mode $chan +b $address($$1,10)
    /mode $chan +b $$1
    /mode $chan -q $$1
    /mode $chan -a $$1
    /mode $chan -o $$1
    /mode $chan -h $$1
    /mode $chan -v $$1

  }
  .Remove Bans:{
    /mode $chan -b ~n: $+ $address($$1,2)
    /mode $chan -b ~q: $+ $address($$1,2)
    /mode $chan +b $address($$1,1)
    /mode $chan -b $address($$1,2)
    /mode $chan -b $address($$1,3)
    /mode $chan -b $address($$1,4)
    /mode $chan -b $address($$1,5)
    /mode $chan -b $address($$1,6)
    /mode $chan -b $address($$1,7)
    /mode $chan -b $address($$1,8)
    /mode $chan -b $address($$1,9)
    /mode $chan -b $address($$1,10)
    /mode $chan -b $$1
    /mode $chan +v $$1
  }
}

;;;;;;;;;;;;;;;;;;;;;
;;;;;;;Updated;;;;;;;
;;;;;;;;;;;;;;;;;;;;;

menu channel,nicklist { 
Total Ban 
.Add bans { var %x 1 | while (%x <= 20) { mode $active +b $address($$1,%x) | inc %x } }
.remove bans { var %x 1 | while (%x <= 20) { mode $active -b $address($$1,%x) | inc %x } }
}

;There, it's not anything pro, I just can't be assed to make it look any better or spend anymore time on it. Leave me alone!

Comments

Sign in to comment.
Korvin   -  Jun 13, 2008
alias banb { 
var %b = $1,%c = $2,%p = $$3,%i = 1
while (%i < 11) { 
mode %c %b $address(%p,%i)
inc %i
}
mode $chan %b ~n: $+ $address(%p,2)
mode $chan %b ~q: $+ $address(%p,2)
mode $chan %b $+ -qaohv %p %p %p %p %p %p
mode $chan $iif(+* iswm %b,-v,+v) %p
}

Total Ban
  .Add Bans:banb +b $active $$1
  .Remove Bans:banb -b $active $$1
}

^^How i\'d do it^^

 Respond  
a careful warchild   -  Jun 13, 2008

nice fan, its me jordy :)

 Respond  
Fan_Of_Ur_Mom   -  Mar 24, 2008

Nope... No help... >.< Why would I need help on something as extreamly easy as that?! O.o

Fan.dx3k.com 8000

 Respond  
Darkriddick   -  Mar 16, 2008

Hi fan its me SPAWN , :P nice little ban thingy lol. i know u had like alot of help on it

 Respond  
Noutrious   -  Jan 24, 2008

I guess its no just of learning something to him, no changes at all + this is very stupid, actually.

 Respond  
Solo   -  Jan 24, 2008

the code could be alot better, here is a small example
usage /ovrkillban #channel

alias ovrkillban {
if (!$ial($2)) { echo -a * /ovrkillban: IAL error | return }
var %i = 1,%addresses
while (%i <= 10) {
%addr = %addr $address($2,%i)
if ($numtok(%addr,32) == $modespl) {
mode $1 + $+ $str(b,$numtok(%addr,32)) %addr
%addr = \"\"
}
inc %i
}
if (%addr) mode $1 + $+ $str(b,$numtok(%addr,32)) %addr
}

 Respond  
Korvin   -  Jan 23, 2008

in the removal part, you have a +b, didnt know if you saw that or not.

 Respond  
guest598594   -  Jan 23, 2008

lol

 Respond  
Cheiron   -  Jan 23, 2008

there we go.. i\'ll do the comments and mountain dew can do the coding side of things.. i think that is just about perfection lol...

 Respond  
Fan_Of_Ur_Mom   -  Jan 23, 2008

Thanks, Mountaindew. :D I will change it up a bit. xD

 Respond  
guest598594   -  Jan 23, 2008

just to clarify the second thing, $str repeats something N times (in this case 5), so that is the same thing as doing

mode $chan -qaohv $$1 $$1 $$1 $$1 $$1
 Respond  
guest598594   -  Jan 23, 2008
    /mode $chan +b $address($$1,1)
    /mode $chan +b $address($$1,2)
    /mode $chan +b $address($$1,3)
    /mode $chan +b $address($$1,4)
    /mode $chan +b $address($$1,5)
    /mode $chan +b $address($$1,6)
    /mode $chan +b $address($$1,7)
    /mode $chan +b $address($$1,8)
    /mode $chan +b $address($$1,9)
    /mode $chan +b $address($$1,10)

could use a simple while loop

var %x = 1
while %x <= 10 {
  mode $chan +b $address($$1,%x)
  inc %x
}

    /mode $chan +b $$1
    /mode $chan -q $$1
    /mode $chan -a $$1
    /mode $chan -o $$1
    /mode $chan -h $$1
    /mode $chan -v $$1

u can simply do

mode $chan -qaohv $str($$1 $+ $chr(32),5)

(for ever mode, u need a nick)

 Respond  
Fan_Of_Ur_Mom   -  Jan 23, 2008

Thank you Cheiron. :D I would like to learn more... I am kinda new to the scripting, I have a few who teach me and help me, but another person never hurts. :)

 Respond  
Cheiron   -  Jan 23, 2008

ok.. here we go. fairly good script. well written, but a few issues i have found for your attention to note. there are better ways to write the ban, but i will not go into the actual coding side this time.
firstly, chanserv only allocates a certain amount of bans per channel. this will add that number of bans to the chanserv list.
secondly, some of those ban masks will cancel the other out. there are 20 ways a user can be banned according to their nick, hostamsk and isp. but they are duplicated. so instead of setting 20 bans fro example, you would end up with something like 8.
thirdly... make sure what level bans you are using. one of the ban masks hits the isp DIRECTLY. this means that ANY user on that isp will not be able to join room, regardless of if they are the banned user or innocent.
fourthly. there are a good few scripts on this site that look very very close code wise.
http://www.hawkee.com/snippet/2524/ for example.. Ultimate Ban + Kick by pyro.
and this one..
http://www.hawkee.com/snippet/2644/ for example.. Alias-Ban by xutim-

 Respond  
Fan_Of_Ur_Mom   -  Jan 23, 2008

You didn\'t rate D: </3 Bad pewn!!!! And I know who you are. -.-

 Respond  
Lysergic Diethylamide   -  Jan 23, 2008

Lol fan I <3 you and your overkill. Its poon BTW.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.