Advertisement
twogz

Untitled

Jul 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 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 "woodpick1":
  11. if player's balance >= 10:
  12. give wood pick of efficiency 1 to player
  13. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  14. remove 10 from player's balance
  15.  
  16. if arg 1 is "woodpick2":
  17. if player's balance >= 20:
  18. give wood pick of efficiency 2 to player
  19. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  20. remove 20 from player's balance
  21.  
  22. if arg 1 is "woodpick3":
  23. if player's balance >= 30:
  24. give wood pick of efficiency 3 to player
  25. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  26. remove 30 from player's balance
  27.  
  28. if arg 1 is "woodpick4":
  29. if player's balance >= 40:
  30. give wood pick of efficiency 4 to player
  31. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  32. remove 40 from player's balance
  33.  
  34. if arg 1 is "woodpick5":
  35. if player's balance >= 50:
  36. give wood pick of efficiency 5 to player
  37. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  38. remove 50 from player's balance
  39.  
  40.  
  41.  
  42.  
  43.  
  44. if arg 1 is "stonepick":
  45. if {level.%uuid of player%} >= 5:
  46. if player's balance >= 15:
  47. give stone pick to player
  48. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  49. remove 15 from player's balance
  50.  
  51. else:
  52. message "&c&lHey! &7You don't have enough cash to purchase this item."
  53.  
  54. else:
  55. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  56.  
  57. if arg 1 is "stonepick1":
  58. if {level.%uuid of player%} >= 5:
  59. if player's balance >= 30:
  60. give stone pick of efficiency 1 to player
  61. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  62. remove 30 from player's balance
  63.  
  64. else:
  65. message "&c&lHey! &7You don't have enough cash to purchase this item."
  66.  
  67. else:
  68. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  69.  
  70. if arg 1 is "stonepick2":
  71. if {level.%uuid of player%} >= 5:
  72. if player's balance >= 45:
  73. give stone pick of efficiency 2 to player
  74. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  75. remove 45 from player's balance
  76.  
  77. else:
  78. message "&c&lHey! &7You don't have enough cash to purchase this item."
  79.  
  80. else:
  81. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  82.  
  83. if arg 1 is "stonepick3":
  84. if {level.%uuid of player%} >= 5:
  85. if player's balance >= 60:
  86. give stone pick of efficiency 3 to player
  87. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  88. remove 60 from player's balance
  89.  
  90. else:
  91. message "&c&lHey! &7You don't have enough cash to purchase this item."
  92.  
  93. else:
  94. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  95.  
  96. if arg 1 is "stonepick4":
  97. if {level.%uuid of player%} >= 5:
  98. if player's balance >= 75:
  99. give stone pick of efficiency 4 to player
  100. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  101. remove 75 from player's balance
  102.  
  103. else:
  104. message "&c&lHey! &7You don't have enough cash to purchase this item."
  105.  
  106. else:
  107. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  108.  
  109.  
  110.  
  111.  
  112.  
  113. if arg 1 is "ironpick":
  114. if {level.%uuid of player%} >= 10:
  115. if player's balance >= 30:
  116. give iron pick to player
  117. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  118. remove 30 from player's balance
  119.  
  120. else:
  121. message "&c&lHey! &7You don't have enough cash to purchase this item."
  122.  
  123. else:
  124. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  125.  
  126. if arg 1 is "goldpick":
  127. if {level.%uuid of player%} >= 20:
  128. if player's balance >= 50:
  129. give gold pick to player
  130. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  131. remove 50 from player's balance
  132.  
  133. else:
  134. message "&c&lHey! &7You don't have enough cash to purchase this item."
  135.  
  136. else:
  137. message "&c&lHey! &7You are not allowed to purchase this at your current level."
  138.  
  139. if arg 1 is "diamondpick":
  140. if {level.%uuid of player%} >= 50:
  141. if player's balance >= 90:
  142. give diamond pick to player
  143. message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
  144. remove 90 from player's balance
  145.  
  146. else:
  147. message "&c&lHey! &7You don't have enough cash to purchase this item."
  148.  
  149. else:
  150. message "&c&lHey! &7You are not allowed to purchase this at your current level."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement