Aller au contenu
  • 0

Achat de kits PvPBox


Question

10 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bonjour déja.

Et essaye sa

command /kitachat [<text>]:
   trigger:
       if arg 1 is not set:
           wait 2 ticks
           open chest with 1 rows named "&eBoutique" to player
           wait 1 ticks
           format slot 0 of player with 384 named "&8&lFullEnchant" with lore "&bPrix: 2 000 Fighticoins" to run [make player execute command "/kitachats FullEnchant"]
           format slot 1 of player with arrow named "&3&lSniper" with lore "&bPrix: 5 000 Fighticoins" to run [make player execute command "/kitachats Sniper"]
           format slot 2 of player with 346 named "&e&lSurvival Games" with lore "&bPrix: 7 000 Fighticoins" to run [make player execute command "/kitachats Sg"]
command /kitachats [<text>]:
   trigger:
       if arg 1 is "FullEchant":
           if {coins.%UUID of player%} > 2 000:
               remove 2000 from {coins.%UUID of player%}
               execute console command "/manudel %player% fullenchant.sk"
       if arg 1 is "Sniper":
           if {coins.%UUID of player%} > 5 000:
               remove 5000 from {coins.%UUID of player%}
               execute console command "/manudelp %player% snip.sk"
       if arg 1 is "Sg":
           if {coins.%UUID of player%} > 7 000:
               remove 7000 from {coins.%UUID of player%}
               execute console command "/manudelp %player% sg.kit"
       if arg-1 is not set:
           message "&a&lMerci de faire /kitachats <Ajout>"

  • 0
Posté(e)
Bonjour déja.

Et essaye sa

command /kitachat [<text>]:
   trigger:
       if arg 1 is not set:
           wait 2 ticks
           open chest with 1 rows named "&eBoutique" to player
           wait 1 ticks
           format slot 0 of player with 384 named "&8&lFullEnchant" with lore "&bPrix: 2 000 Fighticoins" to run [make player execute command "/kitachats FullEnchant"]
           format slot 1 of player with arrow named "&3&lSniper" with lore "&bPrix: 5 000 Fighticoins" to run [make player execute command "/kitachats Sniper"]
           format slot 2 of player with 346 named "&e&lSurvival Games" with lore "&bPrix: 7 000 Fighticoins" to run [make player execute command "/kitachats Sg"]
command /kitachats [<text>]:
   trigger:
       if arg 1 is "FullEchant":
           if {coins.%UUID of player%} > 2 000:
               remove 2000 from {coins.%UUID of player%}
               execute console command "/manudel %player% fullenchant.sk"
       if arg 1 is "Sniper":
           if {coins.%UUID of player%} > 5 000:
               remove 5000 from {coins.%UUID of player%}
               execute console command "/manudelp %player% snip.sk"
       if arg 1 is "Sg":
           if {coins.%UUID of player%} > 7 000:
               remove 7000 from {coins.%UUID of player%}
               execute console command "/manudelp %player% sg.kit"
       if arg-1 is not set:
           message "&a&lMerci de faire /kitachats <Ajout>"

Ok

  • 0
Posté(e)

Il n'y a pas de "Au pire",

 

Je suis et nous somme là pour t'aider,

Si la modification que j'ai apporté ne marche pas essaye celle ci:

 

J'ai refais tout le code:

on first join:
   set {Argent.%player%} to 100

command /kitachat [<text>]:
   trigger:
       if arg 1 is not set:
           wait 2 ticks
           open chest with 1 rows named "&eBoutique" to player
           wait 1 ticks
           format slot 0 of player with diamond sword named "&8&lFullEnchant" with lore "&bPrix: 2 000 Fighticoins" to run [make player execute command "/kitachats FullEnchant"]
           format slot 1 of player with arrow named "&3&lSniper" with lore "&bPrix: 5 000 Fighticoins" to run [make player execute command "/kitachats Sniper"]
           format slot 2 of player with bow named "&e&lSurvival Games" with lore "&bPrix: 7 000 Fighticoins" to run [make player execute command "/kitachats Sg"]


command /kitachats <text>:
   trigger:
       if arg 1 is "FullEnchant":
           if {Argent.%player%} > 7000:
               remove 7000 from {Argent.%player%}
               send "&7&oVous avez acheter le kit avec succés"
               message "&2Bank Centrale >> &7Votre solde à été déduit de 7.000€"
                      #AJOUTE LES EFFET,GIVE ECT
           else:
               send "&4Vous n'avez pas assez &cd'argent&4 pour effectuer cette achat"
command /mo:
   trigger:
       add 10000 to {Argent.%player%}
       send "&6Vous vous avez rajouté 10.000€ à votre solde"

command /moneyy:
   trigger:
       message "&2Bank Centrale >> &7Solde: &4%{Argent.%player%}% €"

 

 

Il te reste plus qu'a rajouter les kits et les effets :)

Ajout de commande :

 

/mo

permet de s'ajouter 10 000

/moneyy

permet de voir son argent

  • J'aime 1
×
×
  • 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.