Advertisement
twogz

Untitled

Jul 24th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 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. if arg 1 is "ironpick":
  17. if {level.%uuid of player%} >= 10:
  18. if player's balance >= 30:
  19. give iron pick to player
  20. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  21. remove 30 from player's balance
  22.  
  23. if arg 1 is "goldpick":
  24. if {level.%uuid of player%} >= 20:
  25. if player's balance >= 50:
  26. give gold pick to player
  27. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  28. remove 50 from player's balance
  29.  
  30. if arg 1 is "diamondpick":
  31. if {level.%uuid of player%} >= 50:
  32. if player's balance >= 90:
  33. give diamond pick to player
  34. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  35. remove 90 from player's balance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement