Advertisement
twogz

Untitled

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