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)

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
Posté(e)

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
Posté(e)

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
Posté(e)

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
Posté(e)

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
Posté(e)

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
Posté(e)

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
Posté(e)

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&ltu n'a pas assez D'argent !"

  • 0
Posté(e)

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&ltu n'a pas assez D'argent !"

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