Advertisement
LukaMC59

Untitled

Nov 5th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. command shop:
  2. trigger:
  3. open chest with 3 rows named "&9Select A Kit:" to player
  4. format slot 13 of player with wooden sword named "&7Starter Sword" with lore "&7||&9Price &8» &7$10||&7" to close then run [set {clickedslot.%player%} to 13]
  5.  
  6. on inventory click:
  7. if inventory name of player's current inventory is "&9Select A Kit:":
  8. cancel event
  9. if {clickedslot.%player%} is 13:
  10. player's balance is greater than 9:
  11. remove 10 from player's balance
  12. message "&9SkyPvP123 &8» &7You have bought a Starter Sword for &9$10"
  13. execute console command "menu grab %player% sword1"
  14. set {clickedslot.%player%} to 0
  15. player's balance is less than 9:
  16. message "&9SkyPvP123 &8» &cYou need atleast $10 to buy this item!"
  17. set {clickedslot.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement