Advertisement
twogz

Untitled

Jul 24th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. command /purchase [<text>]:
  2. trigger:
  3.  
  4. if arg 1 is "woodpick":
  5. if player's balance >= 5:
  6. give wood pick to player
  7. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  8. remove 5 from player's balance
  9.  
  10. if arg 1 is "stonepick":
  11. if {level.%uuid of player%} >= 5:
  12. if player's balance >= 15:
  13. give stone pick to player
  14. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  15. remove 15 from player's balance
  16.  
  17. else:
  18. message "&c&lHey! &7You don't have enough cash to purchase this item."
  19.  
  20. else:
  21. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  22.  
  23. if arg 1 is "ironpick":
  24. if {level.%uuid of player%} >= 10:
  25. if player's balance >= 30:
  26. give iron pick to player
  27. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  28. remove 30 from player's balance
  29.  
  30. else:
  31. message "&c&lHey! &7You don't have enough cash to purchase this item."
  32.  
  33. else:
  34. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  35.  
  36. if arg 1 is "goldpick":
  37. if {level.%uuid of player%} >= 20:
  38. if player's balance >= 50:
  39. give gold pick to player
  40. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  41. remove 50 from player's balance
  42.  
  43. else:
  44. message "&c&lHey! &7You don't have enough cash to purchase this item."
  45.  
  46. else:
  47. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  48.  
  49. if arg 1 is "diamondpick":
  50. if {level.%uuid of player%} >= 50:
  51. if player's balance >= 90:
  52. give diamond pick to player
  53. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  54. remove 90 from player's balance
  55.  
  56. else:
  57. message "&c&lHey! &7You don't have enough cash to purchase this item."
  58.  
  59. else:
  60. message "&c&lHey! &7You are not allowed to purchase this at your current level."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement