Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /marchand [<text>] [<text>] [<player>]:
- permission:*
- trigger:
- if arg 3 is set:
- set {_p} to arg 3
- else:
- set {_p} to player
- if arg 1 is "main":
- create a gui slot 1, 2, 3, 4, 5, 6, 7, 9, 10, 16, 17, 19, 20, 21, 22, 23, 24 and 25 of {_p} with blue stained glass pane named " " to do nothing
- create a gui slot 0, 8, 18 and 26 of {_p} with air to do nothing
- create a gui slot 11 of {_p} with diamond chestplate named "&b&lArmures" to close then run console command "/marchand armures %{_p}%"
- create a gui slot 12 of {_p} with diamond sword named "&b&lArmes" to close then run console command "/marchand Attaque %{_p}%"
- create a gui slot 13 of {_p} with bow named "&b&lArmes spéciales" to close then run console command "/marchand defense %{_p}%"
- create a gui slot 14 of {_p} with bread named "&b&lNourriture" to close then run console command "/marchand Nourriture %{_p}%"
- create a gui slot 15 of {_p} with potion of healing named "&b&lPotions" to close then run console command "/marchand potions %{_p}%"
- else if arg 1 is "armures":
- open virtual chest inventory with size 6 with name "&9Marchand d'équipements" to {_p}
- create a gui slot 1, 2, 3, 4, 5, 6, 7, 10 ,19, 28, 37, 25, 34, 43, 46, 47, 48, 49, 50, 51, 52, 18, 27, 26, 35 and 16 of {_p} with blue stained glass pane named " " to do nothing
- create a gui slot 0, 9, 36, 45, 8, 17, 44 and 53 of {_p} with air to do nothing
- create a gui slot 11 of {_p} with leather helmet named "&9Chapeau en cuir" with lore "&aPrix &7: &21 Emraude" and "&fDurabilité &7:&f 55/55" and "&f&m " to run console command "/marchand buy chapeaucuir %{_p}%"
- create a gui slot 20 of {_p} with leather chestplate named "&9Tunique en cuir" with lore "&aPrix &7: &23 Emraudes" and "&fDurabilité &7:&f 80/80" and "&f&m " to run console command "/marchand buy tuniquecuir %{_p}%"
- create a gui slot 29 of {_p} with leather leggings named "&9Pantalon en cuir" with lore "&aPrix &7: &22 Emraudes" and "&fDurabilité &7:&f 75/75" and "&f&m " to run console command "/marchand buy pantaloncuir %{_p}%"
- create a gui slot 38 of {_p} with leather boots named "&9Bottes en cuir" with lore "&aPrix &7: &21 Emraude" and "&fDurabilité &7:&f 65/65" and "&f&m " to run console command "/marchand buy bottescuir %{_p}%"
- create a gui slot 12 of {_p} with golden helmet named "&9Casque en or" with lore "&aPrix &7: &23 Emraudes" and "&fDurabilité &7:&f 77/77" and "&f&m " to run console command "/marchand buy casqueor %{_p}%"
- create a gui slot 21 of {_p} with golden chestplate named "&9Plastron en or" with lore "&aPrix &7: &29 Emraudes" and "&fDurabilité &7:&f 122/122" and "&f&m " to run console command "/marchand buy plastronor %{_p}%"
- create a gui slot 30 of {_p} with golden leggings named "&9Jambières en or" with lore "&aPrix &7: &26 Emraudes" and "&fDurabilité &7:&f 105/105" and "&f&m " to run console command "/marchand buy jambieresor %{_p}%"
- create a gui slot 39 of {_p} with golden boots named "&9Bottes en or" with lore "&aPrix &7: &23 Emraudes" and "&fDurabilité &7:&f 91/91" and "&f&m " to run console command "/marchand buy bottesor %{_p}%"
- create a gui slot 13 of {_p} with chainmail helmet named "&9Casque de mailles" with lore "&aPrix &7: &24 Emraudes" and "&fDurabilité &7:&f 165/165" and "&f&m " to run console command "/marchand buy chapeaumailles %{_p}%"
- create a gui slot 22 of {_p} with chainmail chestplate named "&9Cotte de mailles" with lore "&aPrix &7: &212 Emraudes" and "&fDurabilité &7:&f 240/240" and "&f&m " to run console command "/marchand buy cottemailles %{_p}%"
- create a gui slot 31 of {_p} with chainmail leggings named "&9Jambières de mailles" with lore "&aPrix &7: &28 Emraudes" and "&fDurabilité &7:&f 225/225" and "&f&m " to run console command "/marchand buy jambieresmailles %{_p}%"
- create a gui slot 40 of {_p} with chainmail boots named "&9Bottes de mailles" with lore "&aPrix &7: &24 Emraudes" and "&fDurabilité &7:&f 195/195" and "&f&m " to run console command "/marchand buy bottesmailles %{_p}%"
- create a gui slot 14 of {_p} with iron helmet named "&9Casque de fer" with lore "&aPrix &7: &210 Emraudes" and "&fDurabilité &7:&f 165/165" and "&f&m " to run console command "/marchand buy chapeaufer %{_p}%"
- create a gui slot 23 of {_p} with iron chestplate named "&9plastron de fer" with lore "&aPrix &7: &230 Emraudes" and "&fDurabilité &7:&f 240/240" and "&f&m " to run console command "/marchand buy plastronfer %{_p}%"
- create a gui slot 32 of {_p} with iron leggings named "&9Jambières de fer" with lore "&aPrix &7: &220 Emraudes" and "&fDurabilité &7:&f 225/225" and "&f&m " to run console command "/marchand buy jambieresfer %{_p}%"
- create a gui slot 41 of {_p} with iron boots named "&9Bottes de fer" with lore "&aPrix &7: &210 Emraudes" and "&fDurabilité &7:&f 195/195" and "&f&m " to run console command "/marchand buy bottesfer %{_p}%"
- create a gui slot 15 of {_p} with diamond helmet named "&9Casque de diamant" with lore "&aPrix &7: &240 Emraudes" and "&fDurabilité &7:&f 363/363" and "&f&m " to run console command "/marchand buy chapeaudiamant %{_p}%"
- create a gui slot 24 of {_p} with diamond chestplate named "&9plastron de diamant" with lore "&aPrix &7: &2120 Emraudes" and "&fDurabilité &7:&f 528/528" and "&f&m " to run console command "/marchand buy plastrondiamant %{_p}%"
- create a gui slot 33 of {_p} with diamond leggings named "&9Jambières de diamant" with lore "&aPrix &7: &280 Emraudes" and "&fDurabilité &7:&f 495/495" and "&f&m " to run console command "/marchand buy jambieresdiamant %{_p}%"
- create a gui slot 42 of {_p} with diamond boots named "&9Bottes de diamant" with lore "&aPrix &7: &240 Emraudes" and "&fDurabilité &7:&f 429/429" and "&f&m " to run console command "/marchand buy bottesdiamant %{_p}%"
- else if arg 1 is "attaque":
- open virtual chest inventory with size 3 with name "&9Marchand d'équipements" to {_p}
- create a gui slot 1, 2, 3, 4, 5, 6, 7, 9, 10, 16, 17, 19, 20, 21, 22, 23, 24 and 25 of {_p} with blue stained glass pane named " " to do nothing
- create a gui slot 0, 8, 18 and 26 of {_p} with air to do nothing
- create a gui slot 11 of {_p} with wooden sword named "&9Épéen bois" with lore "&a&aPrix &7:&2 5 Emraudes" and "&fDurabilité &7:&f 59/59" and "&f&m " to run console command "/marchand buy epeebois %{_p}%"
- create a gui slot 12 of {_p} with gold sword named "&9Épée en or" with lore "&aPrix &7:&2 10 Emraudes" and "&fDurabilité &7:&f 32/32" and "&f&m " to run console command "/marchand buy epeeor %{_p}%"
- create a gui slot 13 of {_p} with stone sword named "&9Épée en pierre" with lore "&aPrix &7:&2 20 Emraudes" and "&fDurabilité &7:&f 131/131" and "&f&m " to run console command "/marchand buy epeepierre %{_p}%"
- create a gui slot 14 of {_p} with iron sword named "&9Épée en fer" with lore "&aPrix &7:&2 50 Emraudes" and "&fDurabilité &7:&f 250/250" and "&f&m " to run console command "/marchand buy epeefer %{_p}%"
- create a gui slot 15 of {_p} with diamond sword named "&9Épée en diamant" with lore "&aPrix &7:&2 100 Emraudes" and "&fDurabilité &7:&f 1561/1561" and "&f&m " to run console command "/marchand buy epeediamant %{_p}%"
- else if arg 1 is "defense":
- open virtual chest inventory with size 3 with name "&9Marchand d'équipements" to {_p}
- create a gui slot 2, 3, 4, 5, 6, 9, 10, 11, 15, 16, 17, 20, 21 ,22 ,23 and 24 of {_p} with blue stained glass pane named " " to do nothing
- create a gui slot 0, 1, 7, 8, 18, 19, 25 and 26 of {_p} with air to do nothing
- create a gui slot 12 of {_p} with bow named "&9Arc en bois" with lore "&aPrix &7: &2100 Emraudes" and "&fDurabilité &7:&f 384/384" and "&f&m " to run console command "/marchand buy bow %{_p}%"
- create a gui slot 13 of {_p} with shields named "&9Bouclier" with lore "&aPrix &7: &2100 Emraudes" and "&fDurabilité &7:&f 336/336" and "&f&m " to run console command "/marchand buy bouclier %{_p}%"
- create a gui slot 14 of {_p} with arrow named "&9Fléche" with lore "&aPrix &7: &21 Emraude" and "&fUtilisation &7:&f 1" and "&f&m " to run console command "/marchand buy fleche %{_p}%"
- else if arg 1 is "Nourriture":
- open virtual chest inventory with size 3 with name "&9Marchand d'équipements" to {_p}
- create a gui slot 2, 3, 4, 5, 6, 9, 10, 11, 15, 16, 17, 20, 21 ,22 ,23 and 24 of {_p} with blue stained glass pane named " " to do nothing
- create a gui slot 0, 1, 7, 8, 18, 19, 25 and 26 of {_p} with air to do nothing
- create a gui slot 12 of {_p} with bread named "&9Pain" with lore "&aPrix &7: &21 Emraude" and "&fRestaure &7:&f 5 &7(demi)&fGigots" and "&fSaturation &7:&f 6" and "&f&m " to run console command "/marchand buy pain %{_p}%"
- create a gui slot 13 of {_p} with cooked beef named "&9Steak" with lore "&aPrix &7: &22 Emraudes" and "&fRestaure &7:&f 8 &7(demi)&fGigots" and "&fSaturation &7:&f 12,8" and "&f&m " to run console command "/marchand buy steak %{_p}%"
- create a gui slot 14 of {_p} with golden carrot named "&9Carrote dorée" with lore "&aPrix &7: &23 Emraudes" and "&fRestaure &7:&f 6 &7(demi)&fGigots" and "&fSaturation &7:&f 14,4" and "&f&m " to run console command "/marchand buy carrote %{_p}%"
- else if arg 1 is "potions":
- open virtual chest inventory with size 3 with name "&9Marchand d'équipements" to {_p}
- create a gui slot 2, 3, 4, 5, 6, 9, 10, 11, 15, 16, 17, 20, 21 ,22 ,23 and 24 of {_p} with blue stained glass pane named " " to do nothing
- create a gui slot 0, 1, 7, 8, 18, 19, 25 and 26 of {_p} with air to do nothing
- create a gui slot 12 of {_p} with potion of healing named "&9Potion de sois" with lore "&aPrix &7: &21 Emraude" and "&fUtilisation &7:&f 1" and "&fNiveau &7:&f II" and "&f&m " to run console command "/marchand buy soins %{_p}%"
- create a gui slot 13 of {_p} with potion of strength named "&9Potion de force" with lore "&aPrix &7: &210 Emraudes" and "&fUtilisation &7:&f 1" and "&fDurée &7:&f 1:30" and "&fNiveau &7:&f II" and "&f&m " to run console command "/marchand buy force %{_p}%"
- create a gui slot 14 of {_p} with potion of speed named "&9Potion de rapidité" with lore "&aPrix &7: &22 Emraudes" and "&fUtilisation &7:&f 1" and "&fDurée &7:&f 1:30" and "&fNiveau &7:&f II" and "&f&m " to run console command "/marchand buy speed %{_p}%"
- if arg 1 is "buy":
- loop all items in player's inventory:
- if loop-item is emerald:
- set {_pe} to amount of emerald in player's inventory
- if arg 2 is "chapeaucuir":
- if {_pe} is greater than 1:
- remove 1 emerald from {_p}
- give 1 leather helmet to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "tuniquecuir":
- if {_pe} is greater than 3:
- remove 3 emerald from{_p}
- give 1 leather chestplate to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "pantaloncuir":
- if {_pe} is greater than 2:
- remove 2 emerald from {_p}
- give 1 leather leggings to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "bottescuir":
- if {_pe} is greater than 2:
- remove 2 emerald from the player
- give 1 leather boots to the player
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "casqueor":
- if {_pe} is greater than 3:
- remove 3 emerald from {_p}
- give 1 golden helmet to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "plastronor":
- if {_pe} is greater than 9:
- remove 9 emerald from {_p}
- give 1 golden chestplate to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "jambieresor":
- if {_pe} is greater than 6:
- remove 6 emerald from {_p}
- give 1 golden leggings to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "bottesor":
- if {_pe} is greater than 3:
- remove 3 emerald from {_p}
- give 1 golden boots to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "chapeaumailles":
- if {_pe} is greater than 4:
- remove 4 emerald from {_p}
- give 1 chainmail helmet to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "cottemailles":
- if {_pe} is greater than 12:
- remove 12 emerald from {_p}
- give 1 chainmail chestplate to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "jambieresmailles":
- if {_pe} is greater than 7:
- remove 7 emerald from {_p}
- give 1 chainmail leggings to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "bottesmailles":
- if {_pe} is greater than 4:
- remove 4 emerald from {_p}
- give 1 chainmail boots to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "chapeaufer":
- if {_pe} is greater than 10:
- remove 10 emerald from {_p}
- give 1 iron helmet to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "plastronfer":
- if {_pe} is greater than 30:
- remove 30 emerald from {_p}
- give 1 iron chestplate to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "jambieresfer":
- if {_pe} is greater than 20:
- remove 20 emerald from {_p}
- give 1 iron leggings to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "bottesfer":
- if {_pe} is greater than 10:
- remove 10 emerald from {_p}
- give 1 iron boots to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "chapeaudiamant":
- if {_pe} is greater than 40:
- remove 40 emerald from {_p}
- give 1 diamond helmet to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "plastrondiamant":
- if {_pe} is greater than 120:
- remove 120 emerald from {_p}
- give 1 diamond chestplate to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "jambieresdiamant":
- if {_pe} is greater than 80:
- remove 80 emerald from {_p}
- give 1 diamond leggings to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "bottesdiamant":
- if {_pe} is greater than 40:
- remove 40 emerald from {_p}
- give 1 diamond boots to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "epeebois":
- if {_pe} is greater than 5:
- remove 5 emerald from {_p}
- give 1 wooden sword to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "epeeor":
- if {_pe} is greater than 10:
- remove 10 emerald from {_p}
- give 1 gold sword to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "epeepierre":
- if {_pe} is greater than 20:
- remove 20 emerald from {_p}
- give 1 stone sword to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "epeefer":
- if {_pe} is greater than 50:
- remove 50 emerald from {_p}
- give 1 iron sword to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "epeediamant":
- if {_pe} is greater than 100:
- remove 100 emerald from {_p}
- give 1 leather helmet to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "bow":
- if {_pe} is greater than 100:
- remove 100 emerald from {_p}
- give 1 bow to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "bouclier":
- if {_pe} is greater than 100:
- remove 100 emerald from {_p}
- give 1 shields to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "fleche":
- if {_pe} is greater than 1:
- remove 1 emerald from {_p}
- give 1 arrow to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "pain":
- if {_pe} is greater than 1:
- remove 1 emerald from {_p}
- give 1 bread to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "steak":
- if {_pe} is greater than 2:
- remove 2 emerald from {_p}
- give 1 steak to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "carrote":
- if {_pe} is greater than 3:
- remove 3 emerald from {_p}
- give 1 golden carrot to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "soins":
- if {_pe} is greater than 1:
- remove 1 emerald from {_p}
- give 1 potion of healing 2 to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "force":
- if {_pe} is greater than 10:
- remove 10 emerald from {_p}
- give 1 potion of strength 2 to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
- if arg 2 is "speed":
- if {_pe} is greater than 2:
- remove 2 emerald from {_p}
- give 1 potion of speed to {_p}
- else:
- send "[LXFaction] Tu n'as pas assez d'émeraudes pour acheter cet objet !"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement