#validation des achats des kits
command /kitsorcier [<text>]:
trigger:
if arg 1 is not set:
wait 4 ticks
open chest with 1 rows named "&aValidation &c(200 Tokens)" to player
wait 1 tick
format slot 0 of player with red stained glass pane named "&cAnnuler" to close then run [make player execute command "annuler"]
format slot 1 of player with red stained glass pane named "&cAnnuler" to close then run [make player execute command "annuler"]
format slot 2 of player with red stained glass pane named "&cAnnuler" to close then run [make player execute command "annuler"]
format slot 3 of player with red stained glass pane named "&cAnnuler" to close then run [make player execute command "annuler"]
format slot 4 of player with black stained glass pane named " " to close
format slot 5 of player with green stained glass pane named "&aConfirmer" to close then run [make player execute command "/kitsorcier confirm"]
format slot 6 of player with green stained glass pane named "&aConfirmer" to close then run [make player execute command "/kitsorcier confirm"]
format slot 7 of player with green stained glass pane named "&aConfirmer" to close then run [make player execute command "/kitsorcier confirm"]
format slot 8 of player with green stained glass pane named "&aConfirmer" to close then run [make player execute command "/kitsorcier confirm"]
else if arg 1 is "confirm":
if {tokens.%UUID of player%} >= 200:
remove 200 from {tokens.%UUID of player%}
message "&eMerci &c%player% &epour ton achat"
make console execute command "manuaddp %player% essentials.kits.sorcier"
make console execute command "broadcast Merci à&a %player% d'avoir acheté le kit &8Sorcier&a!"
else:
message "&8[&e&l!&8] &cIl vous faut 200 tokens pour ceci, vous n'en avez que &e%{tokens.%UUID of player%}%"
command /kitalchimiste [<text>]:
trigger:
if arg 1 is not set:
wait 4 ticks
open chest with 1 rows named "&aValidation &c(200 Tokens)" to player
wait 1 tick
format slot 0 of player with red stained glass pane named "&cAnnuler" to close then run [make player execute command "annuler"]
format slot 1 of player with red stained glass pane named "&cAnnuler" to close then run [make player execute command "annuler"]
format slot 2 of player with red stained glass pane named "&cAnnuler" to close then run [make player execute command "annuler"]
format slot 3 of player with red stained glass pane named "&cAnnuler" to close then run [make player execute command "annuler"]
format slot 4 of player with black stained glass pane named " " to close
format slot 5 of player with green stained glass pane named "&aConfirmer" to close then run [make player execute command "/kitalchimiste confirm"]
format slot 6 of player with green stained glass pane named "&aConfirmer" to close then run [make player execute command "/kitalchimiste confirm"]
format slot 7 of player with green stained glass pane named "&aConfirmer" to close then run [make player execute command "/kitalchimiste confirm"]
format slot 8 of player with green stained glass pane named "&aConfirmer" to close then run [make player execute command "/kitalchimiste confirm"]
else if arg 1 is "confirm":
if {tokens.%UUID of player%} >= 200:
remove 200 from {tokens.%UUID of player%}
message "&eMerci &c%player% &epour ton achat"
make console execute command "manuaddp %player% essentials.kits.alchimiste"
make console execute command "broadcast Merci à&a %player% d'avoir acheté le kit &8Alchimiste&a!"
else:
message "&8[&e&l!&8] &cIl vous faut 200 tokens pour ceci, vous n'en avez que &e%{tokens.%UUID of player%}%"
command /kitdestructeur [<text>]:
trigger:
if arg 1 is not set:
wait 4 ticks
open chest with 1 rows named "&aValidation &c(250 Tokens)" to player
wait 1 ticks
format slot 0 of player with red stained glass pane named "&cAnnuler " to close then run [make player execute command "annuler"]
format slot 1 of player with red stained glass pane named "&cAnnuler " to close then run [make player execute command "annuler"]
format slot 2 of player with red stained glass pane named "&cAnnuler " to close then run [make player execute command "annuler"]
format slot 3 of player with red stained glass pane named "&cAnnuler " to close then run [make player execute command "annuler"]
format slot 4 of player with black stained glass pane named " " to close
format slot 5 of player with green stained glass pane named "&aConfirmer " to close then run [make player execute command "kitdestructeur confirm"]
format slot 6 of player with green stained glass pane named "&aConfirmer " to close then run [make player execute command "kitdestructeur confirm"]
format slot 7 of player with green stained glass pane named "&aConfirmer " to close then run [make player execute command "kitdestructeur confirm"]
format slot 8 of player with green stained glass pane named "&aConfirmer " to close then run [make player execute command "kitdestructeur confirm"]
else if arg 1 is "confirm":
if {tokens.%UUID of player%} >= 250:
remove 250 from {tokens.%UUID of player%}
message "&eMerci &c%player% &epour ton achat"
make console execute command "manuaddp %player% essentials.kits.destructeur"
make console execute command "broadcast Merci à&a %player% d'avoir acheté le kit &8Destructeur&a!"
else:
message "&8[&e&l!&8] &cIl vous faut 250 tokens pour ceci, vous n'en avez que &e%{tokens.%UUID of player%}%"
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.
Question
AzeLiK
Bonjour a tous,
je suis en creation d'un skript et quand je met le code 3 fois de suite, il m'affiche des erreurs de ce type:
alors que les lignes plus haut sont juste :/
http://www.noelshack.com/2016-34-1471981917-capture.jpg
http://www.noelshack.com/2016-34-1471981917-capture3.jpg
Les deux erreurs et le code:
Merci de votre aide :)
5 réponses à cette question
Messages recommandés