Aller au contenu
  • 0

Console execute command , bug /manuadd


Question

Posté(e)

Bonjour ,

 

J'ai créer un skript qui permet d'acheté des gardes avec de l'argent mais une ligne de code ne marche pas

ligne 6

 

...

if arg 1 is "ecuyer":
           if player's balance >= 10000:
               send "Vous venez d'acheter le Grade ecuyer!"
               make console execute command "/bcast &6&l%player% &b&lest désormais Ecuyer !"
               wait 5 ticks
               make console execute command "/manuadd %player% ecuyer all_unamed_worlds" #<===erreur !
               make console execute command "/eco take %player% 10000"
               stop

Messages recommandés

  • 0
Posté(e)

format slot 10 of player with leather helmet named "&7&lGrade Ecuyer" to close then run "sudo %player% grade ecuyer"

 

Tu utilises ça pour exécuter ta commande ? Si oui fait plutôt:

 

format slot 10 of player with leather helmet named "&7&lGrade Ecuyer" to close then run "run player command "grade ecuyer" as op"

 

Et aussi met 1 ou 2 ticks avec de faire l'action de la commande:

 

command /grade <text>:
   trigger:
       wait 2 ticks
       ACTION ...

 

Dans ton cas

 

command /grade [<text>]:                                                                                                                                #
   trigger:
       wait 2 ticks
       if arg 1 is not set:       #====================================Inventaire-GUI-GRADES================================#
           open chest with 3 rows named "&b&lGrade" to player
           wait 1 ticks
           format slot 18 of player with emerald named "&c&lTs : &7&lnaxicube.ts3serv.com" to be unstealable
           format slot 1 of player with yellow stained glass pane named "&7&lNaxiCube " to be unstealable                           #to be unstealable = ne fais rien
           format slot 2 of player with blue stained glass pane named "&7&lNaxiCube " to be unstealable                              #to close = fermer
           format slot 3 of player with blue stained glass pane named "&7&lNaxiCube " to be unstealable                              #to close then run "sudo %player% tacommande" = execute une commande
           format slot 4 of player with yellow stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 5 of player with blue stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 6 of player with blue stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 7 of player with yellow stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 26 of player with redstone named "&c&lQuitté le menu " to close
           format slot 9 of player with light green stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 10 of player with leather helmet named "&7&lGrade Ecuyer" to close then run "sudo %player% grade ecuyer"
           format slot 11 of player with light green stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 12 of player with Chain Helmet named "&2&lGrade Chevalier" to close then run "sudo %player% grade chevalier"
           format slot 13 of player with light green stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 14 of player with iron helmet named "&e&lGrade Mercenaire" to close then run "sudo %player% grade mercenaire"
           format slot 15 of player with light green stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 16 of player with diamond helmet named "&5&lGrade Templier " to close then run "sudo %player% grade templier"
           format slot 17 of player with light green stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 0 of player with diamond named "&c&lSite : &b&lwww.NaxiCube.fr " to be unstealable
           format slot 19 of player with yellow stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 20 of player with blue stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 21 of player with blue stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 22 of player with yellow stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 23 of player with blue stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 24 of player with blue stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 25 of player with yellow stained glass pane named "&7&lNaxiCube " to be unstealable
           format slot 8 of player with gold ingot named "&c&lBoutique : &e&lwww.NaxiCube.fr/boutique" to be unstealable
       if arg 1 is "ecuyer":
           if player's balance >= 10000:
               send "&6&lVous venez d'acheter le Grade &e&lecuyer!"
               make console execute command "/bcast &6&l%player% &b&lest désormais Ecuyer !"
               wait 5 ticks
               execute console command "manuadd %player% ecuyer"
               execute console command "eco take %player% 10000"
           else
               send "&c&lCe kit Coûte &b&l10000$ &c&ltu n'a pas assez D'argent !"

  • 0
Posté(e)

execute console command "manuadd %player% ecuyer"

 

test sa souvent la console ne prend pas le "/" vas savoir pourquoi

et si sa ne marche toujours pas je pense que c'est a cause du %player% car la console ne sais pas a qui donner le grade tu sera donc obliger de mettre un %loop-player% ^^

  • 0
Posté(e)
execute console command "manuadd %player% ecuyer"

 

test sa souvent la console ne prend pas le "/" vas savoir pourquoi

et si sa ne marche toujours pas je pense que c'est a cause du %player% car la console ne sais pas a qui donner le grade tu sera donc obliger de mettre un %loop-player% ^^

 

Aïe :/ Je suis d'accord pour le slash mais pour le %loop-player% il va falloir revoir les bases Nanof ^^

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