banall command

By TrueCoppa on Mar 02, 2010

..:: THIS IS JUST A FUN SCRIPT ::..
..:: YOU NEED CHANNEL OP OR OPER OVERRIDE (operflag v for Unreal) FOR THIS TO WORK ::..

Use at your own risk..
This is a simple script that bans all users in a channel... Pretty funny but make sure to unban them afterwards...

Paste in your aliases and you're ready to go!

(Sorry about set usage instead of var, this is an old script that I just felt like uploading)

banall {
  set %banall 0
  say 4You are about to get pooned cz I activated my banall command :D
  while (%banall < $nick(#,0)) {
    inc %banall
    if ($nick(#,%banall) == $me) { say (I would be banned here.. But that's not happening hehehe.) }
    else { ban $nick(#,%banall) }
  }
  if (%banall == $nick(#,0)) { HALT }
}

Comments

Sign in to comment.
Powerkip   -  Feb 28, 2011

HARRO DER TC

 Respond  
napa182   -  Mar 07, 2010

Slickone Said:

maybe have it make sure you don't ban yourself
TrueCoppa Said:
Slickone, seeing as I have netadmin it doesn't really matter =x

well TrueCoppa be that as it may others don't have netadmin so it does matter when you post a snippet here. So it would be a good idea to add it in as suggested.

 Respond  
TrueCoppa   -  Mar 07, 2010

Korvin, I didn't see that extra bracket o.o (Also, I just felt like putting an if statement in =x)

Slickone, seeing as I have netadmin it doesn't really matter =x

Jethro_, same comment as on my other snippet

 Respond  
Jethro   -  Mar 02, 2010

Positive loop:

alias banall {
  say 4You are about to get pooned cz I activated my banall command :D
  var %x = 1 
  while ($nick(#,%x)) {
    if ($v1 != $me) {
      ban -k # $v1 2
    }
    inc %x
  }
}
 Respond  
Korvin   -  Mar 02, 2010

This does the same thing yours does

banall {
  var %b = $nick(#,0)
  say 4You are about to get pooned cz I activated my banall command :D
  while (%b) { 
    ban $nick(#,%b)
    Dec %b
  }
}

Your if does absolutely nothing, and you have an extra bracket.

 Respond  
Slickone   -  Mar 02, 2010

maybe have it make sure you don't ban yourself

alias banall {
  var %a = $nick(#,0)
  while (%a) {
    if ($nick(#,%a) != $me) ban -k # $v1 Banall
    dec %a
  }
}
 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.