Aller au contenu
  • 0

Is not a text


Question

Posté(e)

Bonjour, j'ai un petit problème, lorsque je reload, le problème est que pour tous les:

to run [make player execute command "/x"] ça me dit: "/x"] is not a text

 

code:

 

command /changerprix <text> <text>:
   trigger:
       if player have permission "op.use":
           set {%arg 1%.prix} to arg 2
           send "&1&l[&3&lHOTEL DE VENTE&1&l]&4Tu as bien change le prix de %arg 1% -> %arg 2% kamas !"

command /hdvressource:
   trigger:
       open chest with 1 rows named "&1&lRessource" to player
       wait 5 ticks
       format slot 5 of player with dcedolainechefguerrebouftou named "&1Laine" to close then run [make player execute command "/menulaine"]
       wait 1 ticks
       format slot 1 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks                                                                       
       format slot 2 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 3 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 4 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 0 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 6 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 7 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 8 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 9 of player with white stained glass pane named "-" to be unstealable

           #LAINE  
           #LAINE
           #LAINE

command /menulaine:
   trigger:
       open chest with 1 rows named "&1&l Achat Laine" to player
       format slot 1 of player with 4595 named "&1Laine de bouftou" to run [make player execute command /acheterlainebouftou]

command /acheterlainebouftou:
   trigger:
       open chest with 1 rows named "&1Laine de bouftou" to player
       wait 5 ticks
       format slot 0 of player with 4624 named "-" to run [make player execute command "/acheterlalaine3"]
       wait 1 ticks
       format slot 1 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 2 of player with 4598 named "-" to run [make player execute command "/acheterlalaine2"]
       wait 1 ticks
       format slot 3 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 4 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 5 of player with 4595 "-" to run [make player execute command "/acheterlalaine1"]
       wait 1 ticks
       format slot 6 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 7 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 8 of player with 4597 named "-" to run [make player execute command "/acheterlalaine4"]
       wait 1 ticks
       format slot 9 of player with white stained glass pane named "-" to be unstealable

command /acheterlalaine1:   
   trigger:
       if {stocklaine1} > 0:
           remove 1 from {stocklaine1}
           remove {laine1.prix} from the player's balance
       else:
           send "&1&l[&3&lACHAT&1&l] cette ressource n'est plus en vente !"

command /acheterlalaine2:   
   trigger:
       if {stocklaine2} > 0:
           remove 1 from {stocklaine2}
           remove {laine2.prix} from the player's balance
       else:
           send "&1&l[&3&lACHAT&1&l] cette ressource n'est plus en vente !"

command /acheterlalaine3:   
   trigger:
       if {stocklaine3} > 0:
           remove 1 from {stocklaine3}
           remove {laine3.prix} from the player's balance
       else:
           send "&1&l[&3&lACHAT&1&l] cette ressource n'est plus en vente !"

command /acheterlalaine4:   
   trigger:
       if {stocklaine4} > 0:
           remove 1 from {stocklaine4}
           remove {laine4.prix} from the player's balance
       else:
           send "&1&l[&3&lACHAT&1&l] cette ressource n'est plus en vente !"

command /hdvvressource:
   trigger:
       open chest with 1 rows named "&1&l Vendre Laine" to player
       format slot 5 of player with 5175 with lore "&1Laine" to close then run [make player execute command "/menulaine2"]
       wait 1 ticks
       format slot 1 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 2 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 3 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 4 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 0 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 6 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 7 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 8 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 9 of player with white stained glass pane named "-" to be unstealable

command /menulaine2:
   trigger:
       open chest with 1 rows named "&1&l Achat Laine" to player
       format slot 1 of player with 4595 named "&1Laine de bouftou" to run [make player execute command "/vendrelainebouftou"]

command /vendrelainebouftou:
   trigger:
       open chest with 1 rows named "&1Laine de bouftou" to player
       wait 5 ticks
       format slot 0 of player with 4598 named "-" to run [make player execute command "/vendrelalaine2"]
       wait 1 ticks
       format slot 1 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks 
       format slot 2 of player with 4624 named "-" to run [make player execute command "/vendrelalaine3"]
       wait 1 ticks
       format slot 3 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 4 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 5 of player with 4595 "-" to run [make player execute command "/vendrelalaine1"]
       wait 1 ticks
       format slot 6 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 7 of player with white stained glass pane named "-" to be unstealable
       wait 1 ticks
       format slot 8 of player with 4597 named "-" to run [make player execute command "/vendrelalaine4"]
       wait 1 ticks
       format slot 9 of player with white stained glass pane named "-" to be unstealable

command /vendrelalaine1:
   trigger:
       send "&1&l[&3&lVENTE&1&l] Tu as bien mis en vente 1 laine de bouftou ! L'hotel de vente te paye !"
       add 1 to {stocklaine1}
       add {laine1.prix} to player's balance

command /vendrelalaine2:
   trigger:
       send "&1&l[&3&lVENTE&1&l] Tu as bien mis en vente 1 laine de bouftou ! L'hotel de vente te paye !"
       add 1 to {stocklaine2}
       add {laine2.prix} to player's balance


command /vendrelalaine3:
   trigger:
       send "&1&l[&3&lVENTE&1&l] Tu as bien mis en vente 1 laine de bouftou ! L'hotel de vente te paye !"
       add 1 to {stocklaine3}
       add {laine3.prix} to player's balance

command /vendrelalaine4:
   trigger:
       send "&1&l[&3&lVENTE&1&l] Tu as bien mis en vente 1 laine de bouftou ! L'hotel de vente te paye !"
       add 1 to {stocklaine4}
       add {laine4.prix} to player's balance

6 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Il ne faut pas mettre de /.

make player execute command "tacommande"

Tu n'es pas obligé de mettre (wait 1 ticks) entre des format slot

Moi avec le / ca marche.

Par contre ici il n'y a pas de guillements

[make player execute command /acheterlainebouftou]
×
×
  • 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.