Masstool les massmodes, masskick, et masskickban très facilement.

Contenu du snippet

Le MassTool permet les massmodes des modes + et - vhoaqbe
Et les masskick et masskickban.
Oui je sais, un while c'est mieux et plus propre, je sais pas pourquoi mais j'ai préféré les goto et labels :) J'étais à l'ile Maurice quand j'ai fait ça, ca doit être le soleil qui a tapé lol

Source / Exemple :


;#############################################################
;#  MassTool by G-FACTION                                                                            #
;#  Made in Grenoble City                                                                                 #
;#  Commentaire(s) : C'est très pratique et simple d'utilisation, Have fun ! =)  #
;#  Signature : ×××G-FACTION×××                                                                   #
;#############################################################

menu channel,nicklist,menubar {
  MassTool (by G-FACTION)
  .MassOp:/massmodeop
  .MassDeOp:/massmodedeop
  .-
  .MassHalfop:/massmodehalfop
  .MassDeHalfop:/massmodedehalfop
  .-
  .MassVoice:/massmodevoice
  .MassDeVoice:/massmodedevoice
  .-
  .MassProtect:/massmodeprotect
  .MassDeProtect:/massmodedeprotect
  .-
  .MassOwner:/massmodeowner
  .MassDeOwner:/massmodedeowner
  .-
  .MassBan:/massmodeban
  .MassUnBan:/massmodedeban
  .-
  .MassKick:/masskick
  .MassKickBan:/masskickban
}

; OP et DEOP ###################################################################################################################################

alias massmodeop {
  if ($me !isop $chan) {
    //echo You must to be OP on $chan !
    halt
  }
  else unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  /mode $chan +o $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been oped. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

alias massmodedeop {
  if ($me !isop $chan) {
    //echo You must to be OP on $chan !
    halt
  }
  else unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
    inc %channicktemp
    goto operation
  }
  else mode $chan -o $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been deoped. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

; VOICE et DEVOICE ###############################################################################################################################

alias massmodevoice {
  if (($me !ishop $chan) && ($me !isop $chan)) {
    //echo You must to be HALFOP or OP on $chan !
    halt
  }
  unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  /mode $chan +v $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been voiced. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

alias massmodedevoice {
  if (($me !ishop $chan) && ($me !isop $chan)) {
    //echo You must to be HALFOP or OP on $chan !
    halt
  }
  unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
    inc %channicktemp
    goto operation
  }
  else mode $chan -v $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been devoiced. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

; HALFOP et DEHALFOP #############################################################################################################################

alias massmodehalfop {
  if ($me !isop $chan) {
    //echo You must to be OP on $chan !
    halt
  }
  else unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  /mode $chan +h $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been halfoped. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

alias massmodedehalfop {
  if ($me !isop $chan) {
    //echo You must to be OP on $chan !
    halt
  }
  else unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
    inc %channicktemp
    goto operation
  }
  else mode $chan -h $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been dehalfoped. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

; PROTECT et DEPROTECT ###########################################################################################################################

alias massmodeprotect {
  if ($me !isop $chan) {
    //echo You must to be OP on $chan !
    halt
  }
  else unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  /mode $chan +a $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been protected. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

alias massmodedeprotect {
  if ($me !isop $chan) {
    //echo You must to be OP on $chan !
    halt
  }
  else unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
    inc %channicktemp
    goto operation
  }
  else mode $chan -a $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been deprotect. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

; OWNER et DEOWNER

alias massmodeowner {
  if ($me !isop $chan) {
    //echo You must to be OP on $chan !
    halt
  }
  else unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  /mode $chan +q $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been ownered. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

alias massmodedeowner {
  if ($me !isop $chan) {
    //echo You must to be OP on $chan !
    halt
  }
  else unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
    inc %channicktemp
    goto operation
  }
  else mode $chan -q $nick( $+ $chan $+ , $+ %channicktemp $+ )
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been deownered. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

; BAN et UNBAN ###################################################################################################################################

alias massmodeban {
  if (($me !ishop $chan) && ($me !isop $chan)) {
    //echo You must to be HALFOP or OP on $chan !
    halt
  }
  unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  mode $chan +b $address( $+ $nick( $+ $chan $+ , %channicktemp) $+ ,2)
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been banned. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

alias massmodedeban {
  if (($me !ishop $chan) && ($me !isop $chan)) {
    //echo You must to be HALFOP or OP on $chan !
    halt
  }
  unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
    inc %channicktemp
    goto operation
  }
  else mode $chan -b $address( $+ $nick( $+ $chan $+ , %channicktemp) $+ ,2)
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been unbanned. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

; MASSKICK ###########################################################################################################################################

alias masskick {
  if (($me !ishop $chan) && ($me !isop $chan)) {
    //echo You must to be HALFOP or OP on $chan !
    halt
  }
  unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  set %reason $$?="Quelle raison ?"
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
    inc %channicktemp
    goto operation
  }
  else /kick $chan $nick( $+ $chan $+ , $+ %channicktemp $+ ) %reason
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been kicked. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

; MASSKICKBAN ###################################################################################################################################

alias masskickban {
  if (($me !ishop $chan) && ($me !isop $chan)) {
    //echo You must to be HALFOP or OP on $chan !
    halt
  }
  unset %channicktemp
  unset %channicks
  unset %channumtemp
  unset %channum
  unset %leso
  set %channumtemp 1
  set %reason $$?="Quelle raison ?"
  :boucle
  set %channum $nick( $+ $chan $+ ,0)
  set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
  inc %channumtemp
  if (%channumtemp == $calc(%channum + 1)) {
    goto operation
  }
  else goto boucle
  :operation
  set %nicktemp $nick( $+ $chan $+ , %channicktemp $+ )
  if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
    inc %channicktemp
    goto operation
  }
  else mode $chan +b $address( $+ %nicktemp $+ ,2)
  /kick $chan %nicktemp %reason
  inc %channicktemp
  if (%channicktemp == $calc(%channum + 1)) {
    /msg $chan %channicks have been kicked and banned. (MassTool Gold edition by G-FACTION)
    halt
  }
  else goto operation
}

Conclusion :


Bon, voila je les ait mit en menuchannel menunicklist et menubar.

++

×××G-FACTION×××

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.