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

Soyez le premier à donner votre avis sur cette source.

Snippet vu 4 234 fois - Téléchargée 29 fois

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×××

A voir également

Ajouter un commentaire Commentaires
davelister
Messages postés
7
Date d'inscription
lundi 3 mars 2003
Statut
Membre
Dernière intervention
1 août 2004

6 juil. 2004 à 01:16
Pas mal comme script :)
cedricpcboss
Messages postés
17
Date d'inscription
jeudi 17 avril 2003
Statut
Membre
Dernière intervention
27 mai 2004

18 déc. 2003 à 17:12
Quelqu'un l'as tester le scripts de abdoulax ? Chez moi perso il marche pas :/
cs_T0x1K
Messages postés
261
Date d'inscription
dimanche 6 avril 2003
Statut
Membre
Dernière intervention
12 janvier 2010

29 août 2003 à 18:32
ouais abdoulax, pour une fois que tu di qqch d interessant :P
GFACTION
Messages postés
199
Date d'inscription
lundi 19 mai 2003
Statut
Membre
Dernière intervention
7 avril 2005

29 août 2003 à 12:15
Toniolol ca vite de taper X fois +vvvvvvvvvvvv et toi c limité à 4 personnes par exemple ect...

Abdoulax tu as raison, je n'y avais pas pensé...
Toniolol
Messages postés
21
Date d'inscription
mercredi 21 mai 2003
Statut
Membre
Dernière intervention
25 juillet 2005

28 août 2003 à 23:39
Je comprends pas pourquoi toutes cers lignes.
Moi j'utilise :
Mass Voice:/mode # +vvvv $$1 $2 $3 $4 | /mode # +vvvv $$5 $6 $7 $8 | /mode # +vvvv $$9 $10 $11 $12
dans mes popups/Nick List
En 3 ou 4 cliks c'est torché....
Afficher les 6 commentaires

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.