mass kick/ban

By paNix3d on May 06, 2005

just a simple script to ware if you want to, for some odd reason ban your whole room it will kick/ban them careful though.. it can flood your room very easy if it has 20+ users.
enjoy

very small and easy to use.
just /mb and will work automatically

i just edited it so it dosent loop and tested it
it is now a smoother script that before
enjoy it please and if there is any problems with it let me know

;:::::::::mass kick/ban::::::::::::::
;:::::::::by:paNix3d::::::::::::::::::

;/mb will kick/ban everyone in channel. works fine on mirc 6.16
;although i haven't tested any other versions
;enjoy :)

alias mb {
  /set %m 1
  :jump1
  /set %mnick $nick(#,%m)
  if (%mnick != $me) {  mode # +b %mnick | kick # %mnick }
  if (%mnick == $null) goto end
  if (%mnick == $me) { /inc %m | goto jump1 }
  if (%mnick == %except) { /inc %m | goto jump1 }
  inc %m
  goto jump1
  :end
}

Comments

Sign in to comment.
napa182   -  Jan 29, 2009

this will use banmask 2

alias mb {
  var %a = $nick(#,0)
  while (%a) {
    if ($nick(#,%a) != $me) ban -k # $v1 2 Mass Kick/Ban
    dec %a 
  }
}
 Respond  
woody_1234   -  Jan 29, 2009

what would you do if you jsut wanted it for the ip ? instead of nick

 Respond  
paNix3d   -  May 08, 2005

all fix3d

 Respond  
paNix3d   -  May 07, 2005

so { if (%m==0) /break %m } ??????.. lol im confused

 Respond  
xDaeMoN   -  May 07, 2005

see /help while loops

 Respond  
paNix3d   -  May 07, 2005

at end?

 Respond  
Yoinx   -  May 07, 2005

while ( %m <= $nick(#,0) ) { }

 Respond  
paNix3d   -  May 07, 2005

so what do u suggest?

 Respond  
supergeo   -  May 07, 2005

... It goes back to the jump... and back and back... it\'s basically looping through.

 Respond  
paNix3d   -  May 07, 2005

it dosent loop though.

 Respond  
Yoinx   -  May 06, 2005

it looks liek you\'ll have an infinite loop in that since you\'re looping regardless of the number of nicks in the chan.

 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.