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 Random Posté(e) le 19 août 2016 Posté(e) le 19 août 2016 Enlève all_unamed_worlds, et je crois qu'il y a deux n à unnamed (je dis probablement des conneries)
0 lensko Posté(e) le 19 août 2016 Auteur Posté(e) le 19 août 2016 Nan cela ne marche pas :'( la command ne s'éxécute pas
0 cercus Posté(e) le 19 août 2016 Posté(e) le 19 août 2016 tu peux aussi mettre "execute console command" a la place de "make console execute command". apres je crois que >= n'est pas prit en compte mais dans le doute essaye "if player's balance is greater than or equal to 10000:"
0 lensko Posté(e) le 19 août 2016 Auteur Posté(e) le 19 août 2016 si >= marche très bien c'est juste la ligne make console execute command "/manuadd %player% ecuyer all_unamed_worlds" #<===erreur ! qui ne marche pas je test vos réponse ;)
0 Araenn Posté(e) le 19 août 2016 Posté(e) le 19 août 2016 essaye de chercher dans la documentation officielle de group manager une commande pour donner une perm a un joueur et execute la dans ton skript si tu n y arrive pas dmain je t aiderai
0 cercus Posté(e) le 19 août 2016 Posté(e) le 19 août 2016 La commande est "/manuaddp %player% <nom_de_la_permission>" -> quand tu fais la commande de ton script, as tu une erreur dans la console/log de ton serveur ?
0 lensko Posté(e) le 19 août 2016 Auteur Posté(e) le 19 août 2016 le plugin a pour bute de lui donné un grade et non une permission ! log : [01:14:18] [server thread/INFO]: TK_LenSko issued server command: /grade ecuyer [01:14:18] [server thread/INFO]: TK_LenSko [822a2049-7be4-3596-95d0-422776f14fac]: /grade ecuyer c'est juste make console execute command "/manuadd %player% ecuyer all_unamed_worlds" qui ne marche pas
0 lensko Posté(e) le 19 août 2016 Auteur Posté(e) le 19 août 2016 Non c'est pour désigné le monde ou le grade sera acif et j'ai test -_-
0 Random Posté(e) le 19 août 2016 Posté(e) le 19 août 2016 Normalement de base quand tu ne renseignes pas de world, ça le met automatiquement
0 lensko Posté(e) le 19 août 2016 Auteur Posté(e) le 19 août 2016 sa marche aussi et c'est mieu pour la console
0 Random Posté(e) le 19 août 2016 Posté(e) le 19 août 2016 Tu as remplacé make console execute command par execute console command ?
0 MarioGaming877 Posté(e) le 20 août 2016 Posté(e) le 20 août 2016 execute console command "/manuadd %player% <Grade>"
0 lensko Posté(e) le 20 août 2016 Auteur Posté(e) le 20 août 2016 je ne suis pas un débutant j'ai testé beaucoup de chose avant de dérangé la communoté de Skript Mc bref oui j'ai tout testé , mais rien , aucun erreur dans les logs :'(
0 Skripting Posté(e) le 20 août 2016 Posté(e) le 20 août 2016 Ceci devrait marcher car avant j'avais un Skript qui faisait ceci aussi et ça marchait parfaitement : make player run "/manuadd %player% <Grade>" as op 1
0 lensko Posté(e) le 20 août 2016 Auteur Posté(e) le 20 août 2016 sa ne marche , voici le code dépendant , testé le svp et dite moi si sa marche de votre coté command /grade [<text>]: # trigger: if arg 1 is not set: #====================================Inventaire-GUI-GRADES================================# wait 2 ticks 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 "Vous venez d'acheter le Grade ecuyer!" make console execute command "/bcast &6&l%player% &b&lest désormais Ecuyer !" wait 5 ticks make player run "/manuadd %player% ecuyer world" as op make console execute command "/eco take %player% 10000" stop
0 Diamax10 Posté(e) le 20 août 2016 Posté(e) le 20 août 2016 Et si tu essayes: run player command "/manuadd ..." as op execute console command "/manuadd ..." Et aussi essaye sans le slash ^^
0 lensko Posté(e) le 21 août 2016 Auteur Posté(e) le 21 août 2016 Rien ne marche , je vous demanderait de testé ce code sur un serveur et de me dire ou faire en sorte qu'il marche ;) merci a tout ce qui feront sa :D #============================GRADES==============================================# on click with emerald: #Si il clic sur le coffre make player execute command "/grade" #Commande si il Clic command /grade [<text>]: # trigger: if arg 1 is not set: #====================================Inventaire-GUI-GRADES================================# wait 2 ticks 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 Random Posté(e) le 21 août 2016 Posté(e) le 21 août 2016 on click: player is holding an emerald: Mets plutôt ça
0 lensko Posté(e) le 21 août 2016 Auteur Posté(e) le 21 août 2016 Mais Nan arrete de rep a des question que je ne te pose PAS ! sa marche le On clic with emerald ces ligne de code suivante ne marche pas : 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" #Marche pas :'( execute console command "eco take %player% 10000" #Marche pas :'( else send "&c&lCe kit Coûte &b&l10000$ &c<u n'a pas assez D'argent !"
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