lensko Posté(e) le 19 août 2016 Posté(e) le 19 août 2016 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
0 jarod54 Posté(e) le 21 août 2016 Posté(e) le 21 août 2016 Pourez tu envoyez les erreurs (Logs quand tu reload le plugins) ?
0 Diamax10 Posté(e) le 22 août 2016 Posté(e) le 22 août 2016 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<u n'a pas assez D'argent !"
0 nanof02 Posté(e) le 23 août 2016 Posté(e) le 23 août 2016 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 Diamax10 Posté(e) le 23 août 2016 Posté(e) le 23 août 2016 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 ^^
Question
lensko
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
...
30 réponses à cette question
Messages recommandés