nathan Posté(e) le 3 septembre 2016 Posté(e) le 3 septembre 2016 Boujour en se moment je suis sur un projet de skript avec des menus gui(coffre) pour des grades évolutife mais j'ai juste un problème c'est que tous les gui s'affiche avant d'être dans le gui qui nous corespond donc des perm et je voudrais contourner le problème que tous les gui s'affiche un par un donc voyez par vous même on damage: name of victim contains "&f-=&7[&6&lGrade&7]&f=-" cancel event run attacker command "grade" as op on right click on villager: name of clicked villager contains "&f-=&7[&6&lGrade&7]&f=-" cancel event run player command "grade" as op command /grade: permission: op trigger: if player has permission "citoyen.skript": wait 1 ticks open chest with 1 rows named "&f-=&7[&6&lCitoyen&7]&f=-" to player wait 1 ticks format slot 0 of player with White stained glass named " " to be unstealable wait 1 ticks format slot 1 of player with White stained glass named " " to be unstealable wait 1 ticks format slot 2 of player with a Leather Tunic named "&f-=&7[&7&lCitoyen]&f=-" with lore "&b&lDescription : ||&8&lPrix &7: &8Grade de base" to close then run [send "&4Erreur vous avez déjà le grade &f-=&7[&6&lCitoyen&7]&f=-"] wait 1 ticks format slot 3 of player with a Chainmail Chestplate of sharpness 2 named "&f-=&7[&b&lWanted&7]&f=-" with lore "&b&lDescription : ||&8&lPrix &7: &830,000 $" to close then run [run player command "buygradewanted" as op] wait 1 ticks format slot 4 of player with a Iron Chestplate of sharpness 3 named "&f-=&7[&3&lGuerrier&7]&f=-" with lore "&b&lDescription : ||&8&lPrix &7: &8je c'est pas" to close then run [send "&4Erreur vous devez d'abord acheter le kit &f-=&7[&b&lWanted&7]&f=-"] wait 1 ticks format slot 5 of player with a Golden Chestplate of sharpness 4 named "&f-=&7[&9&lPaladin&7]&f=-" with lore "&b&lDescription : ||&8&lPrix &7: &8je c'est pas" to close then run [send "&4Erreur vous devez d'abord acheter le kit &f-=&7[&b&lWanted&7]&f=-"] wait 1 ticks format slot 6 of player with a Diamond Chestplate of sharpness 6 named "&f-=&7[&5&lGladiateur&7]&f=-" with lore "&b&lDescription : ||&8&lPrix &7: &8je c'est pas" to close then run [send "&4Erreur vous devez d'abord acheter le kit &f-=&7[&b&lWanted&7]&f=-" ] wait 1 ticks format slot 7 of player with White stained glass named " " to be unstealable wait 1 ticks format slot 8 of player with White stained glass named " " to be unstealable else: stop if player has permission "Wanted.skript": wait 1 ticks open chest with 1 rows named "&f-=&7[&b&lWanted&7]&f=-" to player wait 1 ticks format slot 0 of player with White stained glass named " " to be unstealable wait 1 ticks format slot 1 of player with White stained glass named " " to be unstealable wait 1 ticks format slot 2 of player with a Leather Tunic named "&f-=&7[&7&lCitoyen]&f=-" to run [run player command "grade-erreur" as op] wait 1 ticks format slot 3 of player with a Chainmail Chestplate named "&f-=&7[&b&lWanted&7]&f=-" to run [run player command "grade-erreur" as op] wait 1 ticks format slot 4 of player with a Iron Chestplate of sharpness 3 named "&f-=&7[&3&lGuerrier&7]&f=-" to run [run player command "buygradeguerrier" as op] wait 1 ticks format slot 5 of player with a Golden Chestplate of sharpness 4 named "&f-=&7[&9&lPaladin&7]&f=-" to run [run player command "erreur" as op] wait 1 ticks format slot 6 of player with a Diamond Chestplate of sharpness 6 named "&f-=&7[&5&lGladiateur&7]&f=-" to run [run player command "erreur" as op] wait 1 ticks format slot 7 of player with White stained glass named " " to be unstealable wait 1 ticks format slot 8 of player with White stained glass named " " to be unstealable else: stop if player has permission "Guerrier.skript": wait 1 ticks open chest with 1 rows named "&f-=&7[&3&lGuerrier&7]&f=-" to player wait 1 ticks format slot 0 of player with White stained glass named " " to be unstealable wait 1 ticks format slot 1 of player with White stained glass named " " to be unstealable wait 1 ticks format slot 2 of player with a Leather Tunic named "&f-=&7[&7&lCitoyen]&f=-" to run [run player command "grade-erreur" as op] wait 1 ticks format slot 3 of player with a Chainmail Chestplate named "&f-=&7[&b&lWanted&7]&f=-" to run [run player command "grade-erreur" as op] wait 1 ticks format slot 4 of player with a Iron Chestplate named "&f-=&7[&3&lGuerrier&7]&f=-" to run [run player command "grade-erreur" as op] wait 1 ticks format slot 5 of player with a Golden Chestplate of sharpness 4 named "&f-=&7[&9&lPaladin&7]&f=-" to run [run player command "buygradepaladin" as op] wait 1 ticks format slot 6 of player with a Diamond Chestplate of sharpness 6 named "&f-=&7[&5&lGladiateur&7]&f=-" to run [run player command "erreur" as op] wait 1 ticks format slot 7 of player with White stained glass named " " to be unstealable wait 1 ticks format slot 8 of player with White stained glass named " " to be unstealable command /grade-erreur: permission: op trigger: send "&4Erreur vous avez deja le grade &f-=&7[&6&lCitoyen&7]&f=-" command /buygradewanted: permission: op trigger: wait 1 ticks if player's balance is greater than or equal to 30001: wait 1 ticks execute player command "eco take %player% 30000" wait 1 ticks launch ball large firework colored red,blue,green at player timed 0 wait 1 ticks execute console command "manuadd %player% wanted" wait 1 ticks execute console command "manuaddp %player% Wanted.skript" wait 1 ticks execute console command "manudelp %player% citoyen.skript" else: send "&4Tu n'as pas assez d'argent" command /buygradeguerrier: permission: op trigger: wait 1 ticks if player's balance is greater than or equal to 30001: wait 1 ticks execute player command "eco take %player% 30000" wait 1 ticks launch ball large firework colored red,blue,green at player timed 0 wait 1 ticks execute console command "manuadd %player% Guerrier" wait 1 ticks execute console command "manuaddp %player% Guerrier.skript" wait 1 ticks execute console command "manudelp %player% Wanted.skript" else: send "&4Tu n'as pas assez d'argent" command /buygradepaladin: permission: op trigger: wait 1 ticks if player's balance is greater than or equal to 30001: wait 1 ticks execute player command "eco take %player% 30000" wait 1 ticks launch ball large firework colored red,blue,green at player timed 0 wait 1 ticks execute console command "manuadd %player% Paladin" wait 1 ticks execute console command "manuaddp %player% Paladin.skript" wait 1 ticks execute console command "manudelp %player% Guerrier.skript" else: send "&4Tu n'as pas assez d'argent" command /buygradegladiateur: permission: op trigger: wait 1 ticks if player's balance is greater than or equal to 30001: wait 1 ticks execute player command "eco take %player% 30000" wait 1 ticks launch ball large firework colored red,blue,green at player timed 0 wait 1 ticks execute console command "manuadd %player% gladiateur" wait 1 ticks execute console command "manuaddp %player% Gladiateur.skript" wait 1 ticks execute console command "manudelp %player% Paladin.skript" else: send "&4Tu n'as pas assez d'argent"
nathan Posté(e) le 3 septembre 2016 Auteur Posté(e) le 3 septembre 2016 mec entre les Format Slot retire les wait format slot 0 of player with White stained glass named " " to be unstealable format slot 1 of player with White stained glass named " " to be unstealable[code] et retire le Else: Stop je te conseil de mettre le Stop a la fin quand le joueur a ouvert le coffre Mais sans wait sa bug
Xelef Posté(e) le 4 septembre 2016 Posté(e) le 4 septembre 2016 Pour les wait 1 tick, c'est suffisant de le mettre q'une seule fois entre : open chest with 1 rows named "&f-=&7[&3&lGuerrier&7]&f=-" to player et un format slot.. ^^
Messages recommandés