Aller au contenu
  • 0

Aide Slot A la MjKits


Question

Posté(e)

Kk c'est Sushi alors voila:

J'aimerais que lorsque l'on achete un kit dans un gui

[ATTACH=full]186[/ATTACH]

Hé bien celui ci ce place ici:

[ATTACH=full]187[/ATTACH]

 

 

MERCI d'avance ! (BISOUS)

20 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bon je ne vais pas de donner un code (il faut que tu réfléchise un peu) mais je vais t'aider

Quand une personne achète un kit tu set un variable sur true

set {guerrier.buy.%player%}to true

Et quand tu ouvre le menu tu met une condtion. Si la variable est sur true ça me le kit

if {guerrier.buy.%player%} is true:
format slot %slot number% of player with 1 of %item% named "&6Guerrier" with lore "Choisis le kit guerrier"

 

Amicalement,

nico0509mc :)

  • 0
Posté(e)

Heu par contre

options:
   slot 0: slot 0 of player with white stained glass pane to close
   slot 1: slot 1 of player with white stained glass pane to close
   slot 2: slot 2 of player with white stained glass pane to close
   slot 3: slot 3 of player with white stained glass pane to close
   slot 4: slot 4 of player with gold ingot named "&6Boutique" to run [make player execute command "/guibuy"]
   slot 5: slot 5 of player with white stained glass pane to close
   slot 6: slot 6 of player with white stained glass pane to close
   slot 7: slot 7 of player with white stained glass pane to close
   slot 8: slot 8 of player with white stained glass pane to close
   slot 9: slot 9 of player with stone sword named "&bPvP" to run [make player execute command "/pvp %player%"]
   slot 10: slot 10 of player with button named "&bGambler" to close
   slot 11: slot 11 of player with iron helmet named "&bAnti-Stomper" to close
   slot 12: slot 12 of player with stick of knockback 2 named "&bGrandPa" to close
   if {guerrier.buy.%player%} is true:
   slot 13: slot 13 of player with 401 named "&bKangaroo" to close

 

Pk c'est pas bon ? STP

  • 0
Posté(e)

tu fais :

options:
slot 13: slot 13 of player with 401 named "&bKangaroo" to close

command /gui:
trigger:
	open chest ...... etc ..
	if{guerrier.buy.%player%} is true:
		format {@slot 13}

  • 0
Posté(e)

Heu Déso du dérangement mais j'ai remarquer:

open chest with 6 row named "                 &f&lKits" to player
       wait 1 tick
       if{guerrier.buy.%player%} is true:
           format {@slot 13}

 

=

 

[ATTACH=full]189[/ATTACH]

 

STP Aide moi :p

  • 0
Posté(e)

open chest with 6 row named "                 &f&lKits" to player
       wait 1 tick
       if {guerrier.buy.%player%} is true:
           format {@slot 13}

 

?

:p

Coordialement Sushi des MERS

  • 0
Posté(e)

command /guichest:
   trigger:
       open chest with 6 row named "                 &f&lKits" to player
       wait 1 tick
       if {guerrier.buy.%player%} is true:
           format {@slot 13}
           format {@slot 0}
           format {@slot 1}
           format {@slot 2}
           format {@slot 3}
           format {@slot 4}   
           format {@slot 5}
           format {@slot 6}
           format {@slot 7}
           format {@slot 8}       
           format {@slot 9}   
           format {@slot 10}   
           format {@slot 11}   
           format {@slot 12}
           format {@slot 45}
           format {@slot 46}
           format {@slot 47}
           format {@slot 48}
           format {@slot 49}
           format {@slot 50}
           format {@slot 51}
           format {@slot 52}
           format {@slot 53}        

 

Ou je dois le placer car si non sa me fais sa

 

[ATTACH=full]190[/ATTACH]

  • 0
Posté(e)

alors .. juste un petit probleme .. il faut que tu replace tous les format {machin} 1 tab en moins pour afficher les autres !

command /guichest:
   trigger:
       open chest with 6 row named "                 &f&lKits" to player
       wait 1 tick
      if{guerrier.buy.%player%} is true:
          format{@slot 13}
      format{@slot 0}
      format{@slot 1}
      format{@slot 2}
etc ...

 

ps: pour aller plus vite .. tu sélectionnes tous les format {slot ...} et tu clique sur tab pour que toutes les lignes rajoutent un tab ! et pour enlever .. bah à la main ^^

  • 0
Posté(e)

Comme sa aussi :p

command /guichest:
   trigger:
       open chest with 6 row named "                 &f&lKits" to player
       wait 1 tick
       format {@slot 0}
       format {@slot 1}
       format {@slot 2}
       format {@slot 3}
       format {@slot 4}   
       format {@slot 5}
       format {@slot 6}
       format {@slot 7}
       format {@slot 8}       
       format {@slot 9}   
       format {@slot 10}   
       format {@slot 11}   
       format {@slot 12}
       format {@slot 45}
       format {@slot 46}
       format {@slot 47}
       format {@slot 48}
       format {@slot 49}
       format {@slot 50}
       format {@slot 51}
       format {@slot 52}
       format {@slot 53}       
       if {kangaroo.buy.%player%} is true:
           format {@slot 13}

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