Aller au contenu
  • 0

[Gui] Soucis de rightclick !


Question

Posté(e)

Bonjour à tous, je suis en version 1.9 et j'ai un petit soucis avec mon menu GUI je vous pose le skript ici :

 

on join:
   set slot 4 of the player to a clock named "&2Octa&aRush"


on rightclick with clock
   open chest with 3 rows named "&etest" to player
   wait 1 tick
   format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
   format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
   format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
   format slot 4 of player with arg-1's skull named "&a%arg 1%" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

 

et l'erreur :

 

[ATTACH=full]4576[/ATTACH]

 

( toute les erreurs ne sont pas mises )

 

Merci bien et bonne journée :)

20 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Bonjour à tous, je suis en version 1.9 et j'ai un petit soucis avec mon menu GUI je vous pose le skript ici :

 

on join:
   set slot 4 of the player to a clock named "&2Octa&aRush"


on rightclick with clock
   open chest with 3 rows named "&etest" to player
   wait 1 tick
   format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
   format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
   format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
   format slot 4 of player with arg-1's skull named "&a%arg 1%" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

 

et l'erreur :

 

[ATTACH=full]4576[/ATTACH]

 

( toute les erreurs ne sont pas mises )

 

Merci bien et bonne journée :)

Bonjour :)

 

Tu as oublié les ":" à la ligne 5

  • 0
Posté(e)
Bonjour :)

 

Tu as oublié les ":" à la ligne 5

Salut, j'ai rien mis à la ligne 5 et si tu parles des lignes en comptant celles écrites, c'est le tick et je suis pas sur que on doit en mettre après le wait [...] si ?

 

edit : j'ai trouvé " c'était au rightclick pas au wait je sais pas compter xD "

  • 0
Posté(e)
Salut, j'ai rien mis à la ligne 5 et si tu parles des lignes en comptant celles écrites, c'est le tick et je suis pas sur que on doit en mettre après le wait [...] si ?

 

edit : j'ai trouvé " c'était au rightclick pas au wait je sais pas compter xD "

Okay, alors tout est bon ;)

  • 0
Posté(e)

C'est encore moi :p

 

J'ai un soucis à cette ligne :

format slot 4 of player with arg-1's skull named "&a%arg 1%" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

avec cette erreur :

[ATTACH=full]4577[/ATTACH]

 

Pourtant le skript semble correct ? Le arg-1's serait-il le soucis ?

  • 0
Posté(e)
C'est encore moi :p

 

J'ai un soucis à cette ligne :

format slot 4 of player with arg-1's skull named "&a%arg 1%" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

avec cette erreur :

[ATTACH=full]4577[/ATTACH]

 

Pourtant le skript semble correct ? Le arg-1's serait-il le soucis ?

Trouvé ! Dans ta commande, arg 1 n'est pas <player> ou <offline player>, et il ne peut pas donner la tête de (par exemple) <text> ;)

Remplace donc ton argument numéro 1 par <player> ou <offline player>

  • 0
Posté(e)

Yo :)

Je vois pas comment rajouter mon arg 1 sachant que je ne l'ai même pas défini, comment je pourrais faire ?

on join:
   clear player's inventory
   set slot 4 of the player to a clock named "&2Octa&aRush"


on rightclick with clock:
   open chest with 3 rows named "&etest" to player
   wait 1 tick
   format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
   format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
   format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
   format slot 4 of player with arg-1's skull named "&a%arg 1%" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

  • 0
Posté(e)
Yo :)

Je vois pas comment rajouter mon arg 1 sachant que je ne l'ai même pas défini, comment je pourrais faire ?

on join:
   clear player's inventory
   set slot 4 of the player to a clock named "&2Octa&aRush"


on rightclick with clock:
   open chest with 3 rows named "&etest" to player
   wait 1 tick
   format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
   format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
   format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
   format slot 4 of player with arg-1's skull named "&a%arg 1%" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

Tu as dit la réponse dans ta réponse:

Tu n'as pas défini d'arg 1, comment veux-tu la tête de arg 1?

  • 0
Posté(e)
Ahah, il est vrai que je suis "débile" x) moyen de le mettre en options ? Ou de définir une commande avec une permission que personne n'aura ? :)

En fait, dis moi le contexte pour que je te dise x) Sinon tu peux mettre une permission quelconque pour que personne ne l'ai, sauf ceux qui ont '*' et ceux qui sont op (pour empêcher cela, mets "- -tapermission" pour l'interdire dans groupmanager ;)

  • 0
Posté(e)

J'ai essayé ainsi :

on join:
   clear player's inventory
   set slot 4 of the player to a clock named "&2Octa&aRush"

command /test [<offline player>]
   trigger:
       on rightclick with clock:
           open chest with 3 rows named "&etest" to player
           wait 1 tick
           format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
           format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
           format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
           format slot 4 of player with arg-1's skull named "&a<player>" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

 

Mais j'ai 9 erreurs ^^'

  • 0
Posté(e)
J'ai essayé ainsi :

on join:
   clear player's inventory
   set slot 4 of the player to a clock named "&2Octa&aRush"

command /test [<offline player>]
   trigger:
       on rightclick with clock:
           open chest with 3 rows named "&etest" to player
           wait 1 tick
           format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
           format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
           format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
           format slot 4 of player with arg-1's skull named "&a<player>" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

 

Mais j'ai 9 erreurs ^^'

AH ! Horreur x) Tu as mis un event dans un trigger ! Fais plutot:

command /test [<offline player>]
   trigger:
       open chest with 3 rows named "&etest" to player
       wait 1 tick
       format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
       format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
       format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
       format slot 4 of player with arg-1's skull named "&a<player>" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

on rightclick with clock:
   make player execute "test"

  • 0
Posté(e)
AH ! Horreur x) Tu as mis un event dans un trigger ! Fais plutot:

command /test [<offline player>]
   trigger:
       open chest with 3 rows named "&etest" to player
       wait 1 tick
       format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
       format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
       format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
       format slot 4 of player with arg-1's skull named "&a<player>" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

on rightclick with clock:
   make player execute "test"

Salut, j'ai fais comme tu m'as dit j'ai 9 erreurs et en clique droit avec la clock ça me dit commande inconnue ^^'

 

on join:
   clear player's inventory
   set slot 4 of the player to a clock named "&2Octa&aRush"

command /test [<offline player>]
   trigger:
       open chest with 3 rows named "&etest" to player
       wait 1 tick
       format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
       format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
       format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
       format slot 4 of player with arg-1's skull named "&a<player>" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

on rightclick with clock:
   make player execute "test"

Edit : J'ai trouvé j'avais pas mid les ":" devant la command :) Merci cata ! :)

  • 0
Posté(e)
Salut, j'ai fais comme tu m'as dit j'ai 9 erreurs et en clique droit avec la clock ça me dit commande inconnue ^^'

 

on join:
   clear player's inventory
   set slot 4 of the player to a clock named "&2Octa&aRush"

command /test [<offline player>]
   trigger:
       open chest with 3 rows named "&etest" to player
       wait 1 tick
       format slot 0 of player with paper named "&bHelp" with lore "&8➜ &7Commandes du serveur" to close then run [make player execute command "/aide"]
       format slot 9 of player with beacon named "&cReport" with lore "&8➜ &7Afficher les commandes du /report" to close then run [make player execute command "/reporthelp"]
       format slot 18 of player with book and quill named "&aIdées" with lore "&8➜ &7Envoie nous tes idées ! (clique)" to close then run [make player execute command "/idhelp"]
       format slot 4 of player with arg-1's skull named "&a<player>" with lore "&8➜ &7Vos stats : (clique)" to close then run [make player execute command "/stats"]

on rightclick with clock:
   make player execute "test"

Aie, juste les ":" ligne 5 au niveau de command /test... ":"

  • J'aime 1
  • 0
Posté(e)
Npp, juste tu saurais comment faire pour que quand le joueur mort sa lui regive la boussole ? un one death give player .. ?

Yep,

on death:
   wait 1.5 seconds
   set slot 4 of the player to a clock named "&2Octa&aRush"

  • 0
Posté(e)
Merci dernière question :p

Tout marche ! Sauf que dans le slot 4 y'a pas la tête mais quand je clique où elle devrait être le /stats se fait why ?

Euh bizarre, peut être un bug graphique ou ajoute un wait, aucune idée.. :/

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