Aller au contenu
  • 0

GUI


Question

Posté(e)

Voila j'ai un bug mais pas d'erreur dans la console...

Voila j'aimerais que lorsque que je clique sur le plume sa ouvre un autre menu...

Mais la cela ferme juste celui avec la plume help.

Voici le code:

        if arg 1 is "shop":
           if {ninjapvp.%player%} is true:
               if "%{np.money.uuid of player}%" is "<none>":
                   open chest with 1 row named "&6Ta money:  &c0  &5Sky&eCoins" to player
                   wait 1 tick
                   format slot 1 of player with feather named "&2Abilitées" to close then run [make player execute command "/np shop perk"]


               else:
                   open chest with 1 row named "&6Ta money: &a%{np.money.uuid of player}% &5Sky&eCoins" to player
                   wait 1 tick
                   format slot 1 of player with feather named "&2Abilitées" to close then run [make player execute command "/np shop bonus"]


           if arg 2 is "bonus":
               open chest with 1 row named "&6Ta money:  &c0  &5Sky&eCoins" to player
               wait 1 tick
               format slot 1 of player with fishing rod named "&6Grapin du sensei" to be unstealable
           else:
               open chest with 1 row named "&6Ta money: &a%{np.money.uuid of player}% &5Sky&eCoins" to player
               wait 1 tick
               format slot 1 of player with fishing rod named "&6Grapin du sensei" to be unstealable

Messages recommandés

  • 0
Posté(e)

            if arg 2 is "bonus":
               open chest with 1 row named "&6Ta money:  &c0  &5Sky&eCoins" to player
               wait 1 tick
               format slot 1 of player with fishing rod named "&6Grapin du sensei" to be unstealable
           else:
               open chest with 1 row named "&6Ta money: &a%{np.money.uuid of player}% &5Sky&eCoins" to player
               wait 5 tick
               format slot 1 of player with fishing rod named "&6Grapin du sensei" to be unstealable

 

 

Le coffre n'a pas le temps de s'ouvrir & donc te laisse la plume, du coup, j'ai mis 5ticks ;) ça marchera normalement ^^

  • 0
Posté(e)

Le coffre n'a pas le temps de s'ouvrir & donc te laisse la plume, du coup, j'ai mis 5ticks ;) ça marchera normalement ^^

 

Mais alors pourquoi chez moi sa fonctionne ? Je trouve sa tres chiant qu il y ai temps de différence entre chaque serveur ...

  • 0
Posté(e)
            if arg 2 is "bonus":
               open chest with 1 row named "&6Ta money:  &c0  &5Sky&eCoins" to player
               wait 1 tick
               format slot 1 of player with fishing rod named "&6Grapin du sensei" to be unstealable
           else:
               open chest with 1 row named "&6Ta money: &a%{np.money.uuid of player}% &5Sky&eCoins" to player
               wait 5 tick
               format slot 1 of player with fishing rod named "&6Grapin du sensei" to be unstealable

 

 

Le coffre n'a pas le temps de s'ouvrir & donc te laisse la plume, du coup, j'ai mis 5ticks ;) ça marchera normalement ^^

Marche pas :/

  • 0
Posté(e)

Ou sinon recrée l'évent

 

en gros, tu refait :

 

command /pn  [<text>]:
    trigger:
        if arg 1 is "shop":
           # ce que tu dois mettre,

comme ça dans le gui tu met justement /pn shop

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