Mass Modes 2.0

By X-FILE on Jun 09, 2004

A complete mass modes snippet.

---------------------------------------------------------------------------------------------------
##Date of release : 13.6.2004
##Name : Mass modes snippet v2.0 Final
##Author : Erarber (X-FILE)
##usefull : To make mass modes in channel like kick/ban everyone :/
##Containing: Mass Kick , Mass Kick/Ban , Mass Op , Mass Deop , Mass Voice , Mass Devoice.
##Use : Everything is done , i have done even the menu channel so all you will have to do is copy/paste the code to script editor/remotes.
##Everything is very easy so you can fully use the source for your script , if you wish even without giving credits to me. 
##What's new in 2.0? 1. (New) Mass kick only ops (It will kick only ops) , 2. (New) Mass kick only non-ops (It will kick normal and voiced users) .

----------------------------------------------------------------------------------------------------
Here's the code ;

;Mass Deop
alias massdeop {
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # -o $nick(#,%num.nick) | goto start }
}

;Mass Op
alias massop {
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # +o $nick(#,%num.nick) | goto start }
}

;Mass Kick
alias masskick {
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start  }
  else { kick # $nick(#,%num.nick) MassKick.  | goto start }
}

;Mass Kick/Ban
alias massban {
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # +b $nick(#,%num.nick) | kick # $nick(#,%num.nick) Mass Kick-Ban!  | goto start }
}

;Mass Voice
alias massv {
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # +v $nick(#,%num.nick) | goto start }
}

;Mass Devoice
alias massdv {
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # -v $nick(#,%num.nick) | goto start }
}

;Mass Kick ops
alias masskickop {
  set %k 0
  :start
  %k = %k + 1
  if ($opnick(#,%k) == $me) { goto start }
  if ($opnick(#,%k) == $null) { halt }
  kick # $opnick(#,%k) Kicking all the operators..
  goto start
}
alias masskicknop {
  set %k 0
  :start
  %k = %k + 1
  if ($nopnick(#,%k) == $me) { goto start }
  if ($nopnick(#,%k) == $null) { halt }
  kick # $nopnick(#,%k) Kicking all the normal/voiced users..
  goto start
}

Menu channel {
mass
.kick:Masskick
.kick/ban:massban
.op:massop
.deop:massdeop
.voice:massv
.devoice:massdv
.Kick only ops:masskickop
.Kick normal/voiced:masskicknop
.-
.About snippet:echo -a Mass modes 2.0 final coded by X-FILE. 
}

Comments

Sign in to comment.
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.