Aller au contenu

Question

Posté(e)

Bonjour Ou Bonsoir :)

 

Je fait appelle a vous skripteur et skripteuse !

 

J'ai télécharger le skript de 6moon de "HikaBrain" j'ai eu des erreurs sur les note. j'ai donc retiré les ligne ou il avais les erreurs mais ce n'est pas sa le problème, le problème est que quand je fait /mlgrush tousvas bien se me tp , 3, 2, 1 puis sa me mes un message bizarre (voir screenshot)

 

Voici le skript:

options:
   PermissionMessage: &cTu n'as pas le droit d'executer cette commande !
   SetSpawn: &7Tu as set le Spawn aux coordonnés suivantes
   BlocInterdit: &cTu ne peux pas interagir ce bloc !
   CoucheMinimal: 142 # Coordonée Y minimal où le joueur sera téléporté à son spawn !

   HikaBrain: &3HikaBrain &f>>
   JoinPartie: &3%player% &7a rejoint la partie ! &f(&e%size of {game.player::*}%&f/&62&f)
   QuitPartie: &3%player% &7a quitté la partie ! &f(&e%size of {game.player::*}%&f/&62&f)
   LeavePartie: &cTu as quitté la partie !

   CompteARebourd3: &bDébut de la partie dans &33 secondes &b!
   CompteARebourd23: &33 secondes !
   CompteARebourd2: &bDébut de la partie dans &32 secondes &b!
   CompteARebourd22: &32 secondes !
   CompteARebourd1: &bDébut de la partie dans &31 seconde &b!
   CompteARebourd21: &31 seconde !
   DébutDeLaPartie: &7La partie commence !

   EstTombé: %player% &fest tombé(e)
   AétéTué: %player% &fa été tué par

   PointPourBleu: %player% &fa marqué ! (&6%{game.pointbleu}% &fpoints)
   PointPourRouge: %player% &fa marqué ! (&6%{game.pointrouge}% &fpoints)

   Déconnexion: &fDéconnexion du joueur &6%player% &f!
   Victoire: %player% &fa gagné la partie !

#               - Spawn -              #

on any move:
   if {game.start} is true:
       if {game.%player%} is true:
           if {game.dontmove} is true:
               if {game.team.%player%} is "bleu":
                   teleport player at {game.spawnbleu}
               if {game.team.%player%} is "rouge":
                   teleport player at {game.spawnrouge}

#               - Reset les Stats en cas de Bug -              #                

command /resetmlgrush:
   trigger:
       delete {game.start}
       loop {game.player::*}:
           delete {game.%loop-value%}
           clear {game.team.%loop-value%}
       clear {game.player::*}
       set {game.pointrouge} to 0
       set {game.pointbleu} to 0
       delete {game.dontmove}
       stop

#               - Commande Admin -              #

command /mlgrushadm [<text>] [<text>]:
   permission: mlgrush.adm
   permission message: {@PermissionMessage}
   trigger:
       if arg 1 is "set":
           if arg 2 is "spawnrouge":
               set {game.spawnrouge} to player's location
               send "{@HikaBrain} {@SetSpawn}: &6%{game.spawnrouge}%"
               stop
           if arg 2 is "spawnbleu":
               set {game.spawnbleu} to player's location
               send "{@HikaBrain} {@SetSpawn}: &6%{game.spawnbleu}%"
               stop

#               - Commande Joueur -              #

command /mlgrush:
   aliases: hikabrain
   trigger:
       if {game.start} isn't set:
           if {game.start} isn't set:
               if {game.%player%} isn't set:
                   if size of {game.player::*} isn't greater than 2:
                       add player to {game.player::*}
                       set {game.%player%} to true
                       send "{@HikaBrain} {@JoinPartie}" to {game.player::*}
                       if size of {game.player::*} is equal to 2:
                           set {game.start} to true
                           send "{@HikaBrain} {@CompteARebourd3}" to {game.player::*}
                           wait 1 second
                           if size of {game.player::*} is equal to 2:
                               send "{@HikaBrain} {@CompteARebourd2}" to {game.player::*}
                               wait 1 second
                               if size of {game.player::*} is equal to 2:
                                   send "{@HikaBrain} {@CompteARebourd1}" to {game.player::*}
                                   wait 1 second
                                   if size of {game.player::*} is equal to 2:
                                       clear {game.player::*}'s inventory
                                       equip {game.player::1} with all leather armour named "&bÉquipement"
                                       equip {game.player::2} with all leather armour named "&cÉquipement"
                                       dye {game.player::1}'s helmet blue
                                       dye {game.player::1}'s chestplate blue
                                       dye {game.player::1}'s leggings blue
                                       dye {game.player::1}'s boots blue
                                       dye {game.player::2}'s helmet red
                                       dye {game.player::2}'s chestplate red
                                       dye {game.player::2}'s leggings red
                                       dye {game.player::2}'s boots red
                                       set slot 0 of {game.player::1} to iron sword of unbreaking 3 named "&bEpée"
                                       set slot 0 of {game.player::2} to iron sword of unbreaking 3 named "&cEpée"
                                       set slot 1 of {game.player::1} to iron pickaxe of unbreaking 3, efficiency 3 named "&bPioche"
                                       set slot 1 of {game.player::2} to iron pickaxe of unbreaking 3, efficiency 3 named "&cPioche"
                                       set slot 2 of {game.player::1} to 64 golden apple named "&bPomme d'Or"
                                       set slot 2 of {game.player::2} to 64 golden apple named "&cPomme d'Or"
                                       loop 10 times:
                                           give 64 sand stone:2 named "&bSandStone" to {game.player::1}
                                       loop 10 times:
                                           give 64 sand stone:2 named "&cSandStone" to {game.player::2}
                                       apply regeneration 2 to {game.player::1} for 999999 seconds
                                       apply regeneration 2 to {game.player::2} for 999999 seconds
                                       set {game.team.%{game.player::1}%} to "bleu"
                                       set {game.team.%{game.player::2}%} to "rouge"
                                       set {game.player::*}'s gamemode to survival
                                       teleport {game.player::1} at {game.spawnbleu}
                                       teleport {game.player::2} at {game.spawnrouge}
                                       set {game.dontmove} to true
                                       send "{@HikaBrain} {@DébutDeLaPartie}" to {game.player::*}    
                                       set action bar of {game.player::*} to "{@HikaBrain} {@CompteARebourd23}"
                                       send {game.player::*} title "{@CompteARebourd23}" with subtitle " " for 1 second                                
                                       wait a second
                                       set action bar of {game.player::*} to "{@HikaBrain} {@CompteARebourd22}"
                                       send {game.player::*} title "{@CompteARebourd22}" with subtitle " " for 1 second                                
                                       wait a second
                                       set action bar of {game.player::*} to "{@HikaBrain} {@CompteARebourd21}"
                                       send {game.player::*} title "{@CompteARebourd21}" with subtitle " " for 1 second                                
                                       wait a second
                                       delete {game.dontmove}
                                       stop
               else:
                   send "{@HikaBrain} {@LeavePartie}" to player
                   remove player from {game.player::*}
                   send "{@HikaBrain} {@QuitPartie}" to {game.player::*}
                   delete {game.%player%}

#               - Si un joueur quitte la partie -              #

on quit:
   if {game.start} is true:
       if {game.%player%} is true:
           if {game.team.%player%} is "bleu":
               # send "{@HikaBrain} &c{@Victoire}" to {game.player::*}
               send "{@HikaBrain} {@Déconnexion}" to {game.player::*}
           if {game.team.%player%} is "rouge":
               # send "{@HikaBrain} &b{@Victoire}" to {game.player::*}
               send "{@HikaBrain} {@Déconnexion}" to {game.player::*}
           clear {game.player::*}'s inventory
           set {game.player::*}'s gamemode to spectator
           loop {game.player::*}:
               delete {game.%loop-value%}
               clear {game.team.%loop-value%}                        
           loop {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}:
               set {_loc} to loop-value
               set block at {_loc} to air
           delete {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}
           loop {%{mlgrushblockplacé.%{game.player::2}%}%.blocs::*}:
               set {_loc} to loop-value
               set block at {_loc} to air                
           wait a second
           set {game.player::*}'s gamemode to survival
           make {game.player::*} execute command "/hub"
           delete {game.start}
           clear {game.player::*}
           set {game.pointrouge} to 0
           set {game.pointbleu} to 0
           delete {game.dontmove}
           stop

#               - Message dans le chat -              #

on chat:
   if {game.start} is true:
       if {game.%player%} is true:
           if {game.team.%player%} is "bleu":
               cancel event
               broadcast "{@HikaBrain} &b%player%&f: %message%"
           if {game.team.%player%} is "rouge":
               cancel event
               broadcast "{@HikaBrain} &c%player%&f: %message%"

#               - Plaçage de bloc -              #

on place:
   if {game.start} is true:
       if {game.%player%} is true:
           if block is sand stone:2:
               add location of block to {%{mlgrushblockplacé.%player%}%.blocs::*}
               set {%{mlgrushblockplacé.ignore.%player%}%.loc::%location of event-block%} to true
               stop
           else:
               cancel event
               send "{@HikaBrain} {@BlocInterdit}" to player

#               - Cassage de bloc -              #

on break:
   if {game.start} is true:
       if {game.%player%} is true:
           if block is sand stone:2:
               cancel event
               add location of block to {%player%.blocscassé::*}
               add type of block to {%player%.blocscassé.type::*}
               set {%{mlgrushbase}%.ignore.loc::%location of event-block%} to true
               set block to air
           else:
               cancel event
               send "{@HikaBrain} {@BlocInterdit}" to player

#               - Lorsque le joueur tombe -              #

on any move:
   if {game.start} is true:
       if y-coordinate of player is less than {@CoucheMinimal}:
           if {game.%player%} is true:
               if {game.team.%player%} is "bleu":
                   teleport player at {game.spawnbleu}
                   send "{@HikaBrain} &b{@EstTombé}" to {game.player::*}
                   wait 2 ticks
                   heal the player
               if {game.team.%player%} is "rouge":
                   teleport player at {game.spawnrouge}
                   send "{@HikaBrain} &c{@EstTombé}" to {game.player::*}
                   wait 2 ticks
                   heal the player

#               - Respawn du joueur -              #

on respawn:
   if {game.team.%player%} is "bleu":
       teleport player at {game.spawnbleu}
       equip player with all leather armour named "&bÉquipement"
       dye player's helmet blue
       dye player's chestplate blue
       dye player's leggings blue
       dye player's boots blue
       set slot 0 of player to iron sword of unbreaking 3 named "&bEpée"
       set slot 1 of player to iron pickaxe of unbreaking 3, efficiency 3 named "&bPioche"
       set slot 2 of player to 64 golden apple named "&bPomme d'Or"
       loop 10 times:
           give 64 sand stone:2 named "&bSandStone" to player
   if {game.team.%player%} is "rouge":
       teleport player at {game.spawnrouge}
       equip player with all leather armour named "&cÉquipement"
       dye player's helmet red
       dye player's chestplate red
       dye player's leggings red
       dye player's boots red
       set slot 0 of player to iron sword of unbreaking 3 named "&cEpée"
       set slot 1 of player to iron pickaxe of unbreaking 3, efficiency 3 named "&cPioche"
       set slot 2 of player to 64 golden apple named "&cPomme d'Or"
       loop 10 times:
           give 64 sand stone:2 named "&cSandStone" to player

#               - Mort du Joueur -              #

on death of player:
   if {game.start} is true:
       if {game.%victim%} is true:
           clear drops
           set death message to ""
           if {game.team.%victim%} is "bleu":
               if attacker isn't a player:
                   send "{@HikaBrain} &b{@EstTombé}" to {game.player::*}
               else:
                   send "{@HikaBrain} &b{@AétéTué} &c%attacker%" to {game.player::*}
           if {game.team.%victim%} is "rouge":
               if attacker isn't a player:
                   send "{@HikaBrain} &c{@EstTombé}" to {game.player::*}
               else:
                   send "{@HikaBrain} &c{@AétéTué} &b%attacker%" to {game.player::*}

#               - Lorsque l'on marche sur la laine -              #

on walk on blue wool:
   if {game.start} is true:
       if {game.%player%} is true:
           if {game.team.%player%} is "rouge":
               add 1 to {game.pointrouge}
               send "{@HikaBrain} &c{@PointPourRouge}" to {game.player::*}
               if {game.pointrouge} is smaller than 5:
                   set {game.dontmove} to true                        
                   loop {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}:
                       set {_loc} to loop-value
                       set block at {_loc} to air
                   delete {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}
                   loop {%{mlgrushblockplacé.%{game.player::2}%}%.blocs::*}:
                       set {_loc} to loop-value
                       set block at {_loc} to air                    
                   delete {%{mlgrushblockplacé.%{game.player::2}%}%.blocs::*}                
                   clear {game.player::*}'s inventory
                   equip {game.player::1} with all leather armour named "&bÉquipement"
                   equip {game.player::2} with all leather armour named "&cÉquipement"
                   dye {game.player::1}'s helmet blue
                   dye {game.player::1}'s chestplate blue
                   dye {game.player::1}'s leggings blue
                   dye {game.player::1}'s boots blue
                   dye {game.player::2}'s helmet red
                   dye {game.player::2}'s chestplate red
                   dye {game.player::2}'s leggings red
                   dye {game.player::2}'s boots red
                   set slot 0 of {game.player::1} to iron sword of unbreaking 3 named "&bEpée"
                   set slot 0 of {game.player::2} to iron sword of unbreaking 3 named "&cEpée"
                   set slot 1 of {game.player::1} to iron pickaxe of unbreaking 3, efficiency 3 named "&bPioche"
                   set slot 1 of {game.player::2} to iron pickaxe of unbreaking 3, efficiency 3 named "&cPioche"
                   set slot 2 of {game.player::1} to 64 golden apple named "&bPomme d'Or"
                   set slot 2 of {game.player::2} to 64 golden apple named "&cPomme d'Or"
                   loop 10 times:
                       give 64 sand stone:2 named "&bSandStone" to {game.player::1}
                   loop 10 times:
                       give 64 sand stone:2 named "&cSandStone" to {game.player::2}
                   teleport {game.player::1} at {game.spawnbleu}
                   teleport {game.player::2} at {game.spawnrouge}
                   set action bar of {game.player::*} to "{@HikaBrain} {@CompteARebourd23}"
                   send {game.player::*} title "{@CompteARebourd23}" with subtitle " " for 1 second                                
                   wait a second
                   set action bar of {game.player::*} to "{@HikaBrain} {@CompteARebourd22}"
                   send {game.player::*} title "{@CompteARebourd22}" with subtitle " " for 1 second                                
                   wait a second
                   set action bar of {game.player::*} to "{@HikaBrain} {@CompteARebourd21}"
                   send {game.player::*} title "{@CompteARebourd21}" with subtitle " " for 1 second                                
                   wait a second
                   delete {game.dontmove}
                   stop
               if {game.pointrouge} is equal to 5:
                   send "{@HikaBrain} &c{@Victoire}" to {game.player::*}
                   clear {game.player::*}'s inventory
                   set {game.player::*}'s gamemode to spectator
                   loop {game.player::*}:
                       delete {game.%loop-value%}
                       clear {game.team.%loop-value%}                        
                   loop {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}:
                       set {_loc} to loop-value
                       set block at {_loc} to air
                   delete {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}
                   loop {%{mlgrushblockplacé.%{game.player::2}%}%.blocs::*}:
                       set {_loc} to loop-value
                       set block at {_loc} to air                
                   wait a second
                   set {game.player::*}'s gamemode to survival
                   make {game.player::*} execute command "/hub"
                   delete {game.start}
                   clear {game.player::*}
                   set {game.pointrouge} to 0
                   set {game.pointbleu} to 0
                   delete {game.dontmove}
                   stop

on walk on red wool:
   if {game.start} is true:
       if {game.%player%} is true:
           if {game.team.%player%} is "bleu":
               add 1 to {game.pointbleu}
               send "{@HikaBrain} &b{@PointPourBleu}" to {game.player::*}
               if {game.pointbleu} is smaller than 5:
                   set {game.dontmove} to true
                   loop {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}:
                       set {_loc} to loop-value
                       set block at {_loc} to air
                   delete {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}
                   loop {%{mlgrushblockplacé.%{game.player::2}%}%.blocs::*}:
                       set {_loc} to loop-value
                       set block at {_loc} to air
                   clear {game.player::*}'s inventory
                   equip {game.player::1} with all leather armour named "&bÉquipement"
                   equip {game.player::2} with all leather armour named "&cÉquipement"
                   dye {game.player::1}'s helmet blue
                   dye {game.player::1}'s chestplate blue
                   dye {game.player::1}'s leggings blue
                   dye {game.player::1}'s boots blue
                   dye {game.player::2}'s helmet red
                   dye {game.player::2}'s chestplate red
                   dye {game.player::2}'s leggings red
                   dye {game.player::2}'s boots red
                   set slot 0 of {game.player::1} to iron sword of unbreaking 3 named "&bEpée"
                   set slot 0 of {game.player::2} to iron sword of unbreaking 3 named "&cEpée"
                   set slot 1 of {game.player::1} to iron pickaxe of unbreaking 3, efficiency 3 named "&bPioche"
                   set slot 1 of {game.player::2} to iron pickaxe of unbreaking 3, efficiency 3 named "&cPioche"
                   set slot 2 of {game.player::1} to 64 golden apple named "&bPomme d'Or"
                   set slot 2 of {game.player::2} to 64 golden apple named "&cPomme d'Or"
                   loop 10 times:
                       give 64 sand stone:2 named "&bSandStone" to {game.player::1}
                   loop 10 times:
                       give 64 sand stone:2 named "&cSandStone" to {game.player::2}
                   teleport {game.player::1} at {game.spawnbleu}
                   teleport {game.player::2} at {game.spawnrouge}
                   set action bar of {game.player::*} to "{@HikaBrain} {@CompteARebourd23}"
                   send {game.player::*} title "{@CompteARebourd23}" with subtitle " " for 1 second                                
                   wait a second
                   set action bar of {game.player::*} to "{@HikaBrain} {@CompteARebourd22}"
                   send {game.player::*} title "{@CompteARebourd22}" with subtitle " " for 1 second                                
                   wait a second
                   set action bar of {game.player::*} to "{@HikaBrain} {@CompteARebourd21}"
                   send {game.player::*} title "{@CompteARebourd21}" with subtitle " " for 1 second                                
                   wait a second
                   delete {game.dontmove}
                   stop
               if {game.pointbleu} is equal to 5:
                   send "{@HikaBrain} &b{@Victoire}" to {game.player::*}
                   clear {game.player::*}'s inventory
                   set {game.player::*}'s gamemode to spectator        
                   loop {game.player::*}:
                       delete {game.%loop-value%}
                       clear {game.team.%loop-value%}                
                   loop {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}:
                       set {_loc} to loop-value
                       set block at {_loc} to air
                   delete {%{mlgrushblockplacé.%{game.player::1}%}%.blocs::*}
                   loop {%{mlgrushblockplacé.%{game.player::2}%}%.blocs::*}:
                       set {_loc} to loop-value
                       set block at {_loc} to air
                   delete {%{mlgrushblockplacé.%{game.player::2}%}%.blocs::*}                
                   wait a second
                   set {game.player::*}'s gamemode to survival
                   make {game.player::*} execute command "/hub"
                   delete {game.start}
                   clear {game.player::*}
                   set {game.pointrouge} to 0
                   set {game.pointbleu} to 0
                   delete {game.dontmove}
                   stop

 

cordialement !

10 réponses à cette question

Messages recommandés

  • 0
Posté(e)

C'est sur que si tu supprime des lignes ça vas pas marcher ^^, Cette erreur c'est que le skript repette une action a l'infini en une fraction de seconde donc sa arette de boucle, Sans les erreurs au ligne que ta supprimer on peut pas t'aider dsl

  • 0
Posté(e)
options:
   Bungeecord: False
   Jeu_Name: HungerGames
   MsgJoin: &9[&6HungerGames&9] &aVous avez rejoint la partie !
   MsgJoinOther: &9[&6HungerGames&9] &7%player% a rejoint la partie !  &5(%size of {FilePlayer::*}% / 4)
   NbrStart: 1
   NbrMax: 4
   Debut30: &9[&6HungerGames&9] &6Début dans 30 secondes !
   Debut15: &9[&6HungerGames&9] &6Début dans 15 secondes !
   Debut10: &9[&6HungerGames&9] &6Début dans 10 secondes !
   Debut5: &9[&6HungerGames&9] &6Début dans 5 secondes !
   Debut4: &9[&6HungerGames&9] &6Début dans 4 secondes !
   Debut3: &9[&6HungerGames&9] &6Début dans 3 secondes !
   Debut2: &9[&6HungerGames&9] &6Début dans 2 secondes !
   Debut1: &9[&6HungerGames&9] &6Début dans 1 seconde !
   Annulé: &9[&6HungerGames&9] &cCompte à rebours annulé : Pas assez de personnes &8(%size of {FilePlayer::*}% / 4) !
   World: hg
   MortAttacker: &9[&6HungerGames&9] &c%victim% &6est mort de la main de &a%attacker%
   MortOther: &9[&6HungerGames&9] &c%victim% &6est mort !
   MortJoueur: &9[&6HungerGames&9] &cVous êtes mort !
   MsgQuit: &9[&6HungerGames&9] &7Vous avez &cquitté &7la partie !
   MsgQuitOther: &9[&6HungerGames&9] &7%player% a &cquitté &7la partie !  &5(%size of {FilePlayer::*}% / 20)
   EnCours: &9[&6HungerGames&9] &7La partie est en cours !
   Win: &9[&6HungerGames&9] &5%loop-value% a gagné !
   Full: &9[&6HungerGames&9] &cLa partie est complete !
   RadiusMap: 10
on join:
   set {_bungee} to "{@Bungeecord}"
   {_bungee} is "true"
   make player execute command "/§gamejoin"






command /hg:
   trigger:
       set {_bungee} to "{@Bungeecord}"
       {_bungee} isn't "true"
       player's world is "{@World}"
       open chest with 1 rows named "&6Menu" to player
       wait 1 tick
       format slot 4 of player with a diamond named "&aRejoindre le &6HungerGames" to run [make player execute command "/gamejoin"]
on right click with a bed:
   player is holding a bed named "&cRetour au hub"
   player's world is "{@World}"
   make player execute command "/§gamequit"
on quit:
   make player execute command "/§gamequit"
on death:
   victim's world is "{@World}"
   send "{@MortJoueur}" to victim
   set death message to ""
   loop {FilePlayer::*}:
       loop-value is a player
       if attacker is a player:
           send "{@MortAttacker}" to loop-value
   remove victim from {FilePlayer::*}
   make victim execute command "/§gamequitmort"
   damage was caused by lava, fire, fall or burning:
       loop {FilePlayer::*}:
           loop-value is a player
           send "{@MortOther}" to loop-value
command /setpos [<text>] [<number>]:
   permission: op
   permission message: &cTu n'as pas la permission
   trigger:
       if arg 1 is not set:
           send "&cUsage: /setpos [File/Spawn/Centre]"
           stop
       if arg 1 is not "File" or "spawn" or "Centre":
           send "&cUsage: /setpos [File/Spawn/Centre]"
           stop
       if arg 1 is "File":
           set {File} to player's location 
           send "&aPosition de téléportation défini (File)"
           stop
       if arg 1 is "Spawn":
           if arg 2 is not set:
               send "&cUsage: /setpos Spawn Nombre"
               stop
           else:

               set {Spawn.%number-arg%} to player's location
               send "&aPosition de téléportation défini (Spawn n° %arg 2%)"
       if arg 1 is "Centre":
           set {Centre} to player's location
           send "&aPosition du centre bien défini :D"

command /gamejoin:
   trigger:
       if {InGame} is not set:
           set player's gamemode to survival
           if {InFile.%player%} is not set:
               if size of {FilePlayer::*} > {@NbrMax}:
                   send "{@Full}"
                   stop
               else:
                   player's world is "{@World}"
                   set {LastPos.%player%} to player's location
                   set {InFile.%player%} to true
                   add player to {FilePlayer::*}
                   teleport player to {File}
                   set slot 8 of player to a bed named "&cRetour au hub"
                   wait 1 tick
                   loop {FilePlayer::*}:
                       loop-value is a player
                       send "{@MsgJoinOther}" to loop-value
                   send "{@MsgJoin}" to player
                   make player execute command "/§consolestart"
           else:
               send "&cTu es dans la file"
               stop
       else:
           send "{@EnCours}" to player
           make console execute command "/gamemode %player% spectator"
command /§gamequit:
   trigger:
       player's world is "{@World}"
       clear {cantmoove.%player%}
       if {InGame} is not set:
           if {InWait} is set:
               if size of {FilePlayer::*} = 2:
                   if {InFile.%player%} is true:
                       clear {InWait}
                       clear {InFile.%player%}
                       remove player from {FilePlayer::*}
                       teleport player to {LastPos.%player%}
                       clear sender's inventory
                       loop {FilePlayer::*}:
                           send "{@MsgQuitOther}" to loop-value
                       send  "{@MsgQuit}" to sender
           else: 
               if {InFile.%player%} is true:
                   clear {InWait}
                   clear {InFile.%player%}
                   remove player from {FilePlayer::*}
                   teleport player to {LastPos.%player%}
                   clear sender's inventory
                   loop {FilePlayer::*}:
                       send "{@MsgQuitOther}" to loop-value
                       send  "{@MsgQuit}" to sender
               else if {InFile.%player%} is not set:
                   send "&cTu n'es pas dans la file"
       else:
           if {InFile.%player%} is true:
               remove player from {FilePlayer::*}
               clear {InFile.%player%}
               teleport player to {LastPos.%player%}
               clear sender's inventory
               loop {FilePlayer::*}:
                   loop-value is a player
                   send "{@MsgQuitOther}" to loop-value
               send  "{@MsgQuit}" to sender
               if size of {FilePlayer::*} = 1:
                   loop {FilePlayer::*}:
                       clear {cantmoove.%loop-value%}
                       clear loop-value's inventory
                       loop-value is a player
                       broadcast "{@Win}"
                       heal loop-value
                       clear {InFile.%loop-value%}
                       teleport loop-value to {LastPos.%loop-value%}
                       clear {FilePlayer::*}
                       clear {InGame}
           else if {InFile.%player%} is not set:
               send "&cTu n'es pas dans la file"
on damage:
   victim's world is "{@World}"
   if {InWait} is set:
       cancel event
   if {InGame} is not set:
       cancel event
command /§gamequitmort:
   trigger:
       player's world is "{@World}"
       clear {cantmoove.%player%}
       make console execute command "/gamemode %player% spectator"
       if {InFile.%player%} is true:
           remove player from {FilePlayer::*}
           clear {InFile.%player%}
           teleport player to {LastPos.%player%}
           clear sender's inventory
           if size of {FilePlayer::*} = 1:
               loop {FilePlayer::*}:
                   clear loop-value's inventory
                   clear {cantmoove.%loop-value%}
                   loop-value is a player
                   broadcast "{@Win}"
                   heal loop-value
                   teleport loop-value to {LastPos.%loop-value%}
                   clear {InFile.%loop-value%}
                   clear {FilePlayer::*}
                   clear {InGame}
                   clear {InWait}
           loop all players in world "{@World}":
               set loop-player's gamemode to survival
on script load:
   clear {InWait}
command /consolestart:
   trigger:
       {InWait} is not set
       {Centre} is set
       if {InGame} is true:
           send "&4ERREUR, partie en jeu !" to console
           stop
       else:
           if size of {FilePlayer::*} > {@NbrStart}:
               loop {FilePlayer::*}:
                   loop-value is a player
                   send "{@Debut30}" to loop-value
               set {InWait} to true
               wait 15 seconds
               {InWait} is true
               if size of {FilePlayer::*} > {@NbrStart}:
                   loop {FilePlayer::*}:
                       loop-value is a player
                       send "{@Debut15}" to loop-value
                   wait 5 seconds
                   if size of {FilePlayer::*} > {@NbrStart}:
                       loop {FilePlayer::*}:
                           loop-value is a player
                           send "{@Debut10}" to loop-value
                       wait 5 seconds
                       if size of {FilePlayer::*} > {@NbrStart}:
                           loop {FilePlayer::*}:
                               loop-value is a player
                               send "{@Debut5}" to loop-value
                           wait 1 seconds
                           if size of {FilePlayer::*} > {@NbrStart}:
                               loop {FilePlayer::*}:
                                   loop-value is a player
                                   send "{@Debut4}" to loop-value
                               wait 1 seconds
                               if size of {FilePlayer::*} > {@NbrStart}:
                                   loop {FilePlayer::*}:
                                       loop-value is a player
                                       send "{@Debut3}" to loop-value
                                   wait 1 seconds
                                   if size of {FilePlayer::*} > {@NbrStart}:
                                       loop {FilePlayer::*}:
                                           loop-value is a player
                                           send "{@Debut2}" to loop-value
                                       wait 1 seconds
                                       if size of {FilePlayer::*} > {@NbrStart}:
                                           loop {FilePlayer::*}:
                                               loop-value is a player
                                               send "{@Debut1}" to loop-value
                                           wait 1 seconds
                                           clear {InWait}
                                           set {_nombreTP} to 1
                                           loop {FilePlayer::*}:

                                               loop-value is a player
                                               teleport loop-value to {Spawn.%{_nombreTP}%}
                                               set {InGame} to true
                                               clear loop-value's inventory
                                               add 1 to {_nombreTP}
                                               set {cantmoove.%loop-value%} to true
                                               send loop-value title "&9Début dans" with subtitle "&45 secondes" for 1 seconds
                                           wait 1 second
                                           loop {FilePlayer::*}:
                                               send loop-value title "&9Début dans" with subtitle "&54 secondes" for 1 seconds
                                           wait 1 second
                                           loop {FilePlayer::*}:
                                               send loop-value title "&9Début dans" with subtitle "&c3 secondes" for 1 seconds
                                           wait 1 second
                                           loop {FilePlayer::*}:
                                               send loop-value title "&9Début dans" with subtitle "&62 secondes" for 1 seconds
                                           wait 1 second
                                           loop {FilePlayer::*}:
                                               send loop-value title "&9Début dans" with subtitle "&a1 seconde" for 1 seconds
                                           wait 1 second
                                           loop {FilePlayer::*}:
                                               send loop-value title "&9Début dans" with subtitle "&50 seconde" for 1 seconds
                                           wait 1 second
                                           loop {FilePlayer::*}:
                                               send loop-value title "&aGO" with subtitle "&aQue le meilleur gagne !" for 5 seconds
                                               clear {Cantmoove.%loop-value%}
                                           broadcast "{@Jeu_Name} &9La partie a commencé ! &aQue le meilleur gagne !"
                                           loop blocks in radius {@RadiusMap} around {Centre}:
                                               if loop-block is a chest:
                                                   clear loop-block's inventory
                                                   add 1 diamond chestplate to {_refill.list::*}
                                                   add 1 diamond sword to {_refill.list::*}
                                                   add 1 diamond boots to {_refill.list::*}
                                                   add 1 diamond leggings to {_refill.list::*}
                                                   add 1 diamond helmet to {_refill.list::*}
                                                   add 12 golden apple to {_refill.list::*}
                                                   add 1 flint and steel to {_refill.list::*}
                                                   set {_reffil1} to a random element out of {_refill.list::*}
                                                   set {_reffil2} to a random element out of {_refill.list::*}
                                                   set {_reffil3} to a random element out of {_refill.list::*}
                                                   add {_reffil1} to inventory of loop-block 
                                                   add {_reffil2} to inventory of loop-block 
                                                   add {_reffil3} to inventory of loop-block

                                       else:
                                           loop {FilePlayer::*}:
                                               loop-value is a player
                                               send "{@Annulé}" to loop-value
                                               clear {InWait}
                                               stop
                                   else:
                                       loop {FilePlayer::*}:
                                           loop-value is a player
                                           send "{@Annulé}" to loop-value
                                           clear {InWait}
                                           stop
                               else:
                                   loop {FilePlayer::*}:
                                       loop-value is a player
                                       send "{@Annulé}" to loop-value
                                       clear {InWait}
                                       stop
                           else:
                               loop {FilePlayer::*}:
                                   loop-value is a player
                                   send "{@Annulé}" to loop-value
                                   clear {InWait}
                                   stop
                       else:
                           loop {FilePlayer::*}:
                               loop-value is a player
                               send "{@Annulé}" to loop-value
                               clear {InWait}
                               stop
                   else:
                       loop {FilePlayer::*}:
                           loop-value is a player
                           send "{@Annulé}" to loop-value
                           clear {InWait}
                           stop
               else:
                   loop {FilePlayer::*}:
                       loop-value is a player
                       send "{@Annulé}" to loop-value
                       clear {InWait}
                       stop
on any move:
   if {cantmoove.%player%} is set:
       cancel event
command /leave:
   trigger:
       make player execute command "/§gamequit"
on break:
   player's world is "{@World}"
   if player is not op:
       cancel event

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.