Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.76 KB | None | 0 0
  1. aliases:
  2. redstone = 331
  3. reeds = 338
  4. magma = 213
  5. end_bricks = 206
  6. logs = 17:0
  7. planks = 5:0
  8. purpur_block = 201
  9. cobble = 4
  10. stone_brick = 98
  11. stone = 1
  12.  
  13. function shopbuy(player: player, cost: integer, amount: integer, item: item):
  14. if balance of {_player} >= {_cost}:
  15. give {_player} {_amount} of {_item}
  16. remove {_cost} from balance of {_player}
  17. send "&b| &7Purchased {_amount} x {_item} for ${_cost}!" to {_p}
  18. function keyfire(player: player, cost: integer):
  19. if {crystals.%{_player}%} >= {_cost}:
  20. make console execute command "crate %{_player}% fire"
  21. remove {_cost} from {crystals.%{_player}%}
  22. function keyplasma(player: player, cost: integer):
  23. if {crystals.%{_player}%} >= {_cost}:
  24. make console execute command "crate %{_player}% plasma"
  25. remove {_cost} from {crystals.%{_player}%}
  26.  
  27. on script load:
  28. create a gui with id "G2S" with virtual chest with 4 rows named "&8Nevus Shop!":
  29. format gui slot 20 with wheat_item named "&eFarming" with lore "&7Click to open!":
  30. open gui "CShop" to player
  31. format gui slot 24 with redstone_dust named "&eRedstone" with lore "&7Click to open!":
  32. open gui "RShop" to player
  33. format gui slot 10 with grass named "&eBlocks" with lore "&7Click to open!":
  34. open gui "BShop" to player
  35. format gui slot 16 with diamond named "&eMinerals" with lore "&7Click to open!":
  36. open gui "TShop" to player
  37. format gui slot 13 with tripwire_hook named "&eCrate Keys!" with lore "&7Click to open!":
  38. open gui "KShop" to player
  39. create a gui with id "CShop" with virtual chest with 5 rows named "&8Farmables":
  40. format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 37, 38, 39, 40, 41, 42, 43, and 44 with gray glass pane named ""
  41. format gui slot 36 with arrow named "&cGo Back":
  42. open gui "G2S" to player
  43.  
  44. create a gui with id "RShop" with virtual chest with 5 rows named "&8Redstone":
  45. format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 37, 38, 39, 40, 41, 42, 43, and 44 with gray glass pane named ""
  46. format gui slot 36 with arrow named "&cGo Back":
  47. open gui "G2S" to player
  48.  
  49. create a gui with id "BShop" with virtual chest with 6 rows named "&8Blocks":
  50. format gui slot 10 with grass named "&eGrass &7[x4]" with lore "&ePrice: &7$500":
  51. shopbuy(player, 500, 4, grass) # Grass
  52. format gui slot 11 with Dirt named "&eDirt &7[x16]" with lore "&ePrice: &7$250":
  53. shopbuy(player, 250, 16, Dirt) # Dirt
  54. format gui slot 12 with stone_brick named "&eStone Brick &7[x8]" with lore "&ePrice: &7$1000":
  55. shopbuy(player, 1000, 8, stone_brick) # Stone Brick
  56. format gui slot 13 with stone named "&eStone &7[x8]" with lore "&ePrice: &7$250":
  57. shopbuy(player, 250, 8, stone) # Stone
  58. format gui slot 14 with Cobble named "&eCobblestone &7[x16]" with lore "&ePrice: &7$50":
  59. shopbuy(player, 50, 16, Cobble) # Cobble
  60. format gui slot 15 with Brick block named "&eBricks &7[x4]" with lore "&ePrice: &7$750":
  61. shopbuy(player, 750, 4, brick block) # Brick
  62. format gui slot 16 with end_stone named "&eEndstone &7[x4]" with lore "&ePrice: &7$1000":
  63. shopbuy(player, 1000, 4, end_stone) # End Stone
  64.  
  65. format gui slot 19 with sea_lantern named "&eSea Lanter &7[x1]" with lore "&ePrice: &7$100":
  66. shopbuy(player, 100, 1, sea_lantern) # Sea Lantern
  67. format gui slot 20 with obsidian named "&eObsidian &7[x1]" with lore "&ePrice: &7$1000":
  68. shopbuy(player, 1000, 1, obsidian) # Obsidian
  69. format gui slot 21 with white_wool named "&eWool &7[x4]" with lore "&ePrice: &7$250":
  70. shopbuy(player, 250, 4, white_wool) # White Wool
  71. format gui slot 22 with planks named "&eOak Planks &7[x16]" with lore "&ePrice: &7$100":
  72. shopbuy(player, 100, 16, planks) # Oak Planks
  73. format gui slot 23 with logs named "&eOak Logs &7[x16]" with lore "&ePrice: &7$400":
  74. shopbuy(player, 400, 16, logs) # Oak Logs
  75. format gui slot 24 with nether_brick block named "&eNether Brick &7[x4]" with lore "&ePrice: &7$750":
  76. shopbuy(player, 750, 4, nether_brick block) # Nether Brick
  77. format gui slot 25 with red_nether_brick named "&eRed Nether Brick &7[x4]" with lore "&ePrice: &7$750":
  78. shopbuy(player, 750, 4, red_nether_brick block) # Red Nether Brick
  79.  
  80. format gui slot 28 with Magma named "&eMagma &7[x1]" with lore "&ePrice: &7$2500":
  81. shopbuy(player, 2500, 1, magma) # Magma
  82. format gui slot 29 with Quartz block named "&eQuartz Block &7[x1]" with lore "&ePrice: &7$180,000":
  83. shopbuy(player, 170000, 1, Quartz block) # Quartz
  84. format gui slot 30 with prismarine:0 named "&ePrismarine &7[x4]" with lore "&ePrice: &7$500":
  85. shopbuy(player, 500, 4, prismarine:0) # prismarine
  86. format gui slot 31 with prismarine:1 named "&ePrismarine Brick &7[x1]" with lore "&ePrice: &7$750":
  87. shopbuy(player, 750, 1, prismarine:1) # prismarine Brick
  88. format gui slot 32 with prismarine:2 named "&eDark Prismarine &7[x1]" with lore "&ePrice: &7$750":
  89. shopbuy(player, 750, 1, prismarine:2) # dark prismarine
  90. format gui slot 33 with end_bricks named "&eEnd Bricks &7[x1]" with lore "&ePrice: &7$1000":
  91. shopbuy(player, 1000, 1, end_bricks) # End Stone Brick
  92. format gui slot 34 with purpur_block named "&ePurpur Block &7[x1]" with lore "&ePrice: &7$5000":
  93. shopbuy(player, 5000, 1, purpur_block) # PurPur Block
  94. format gui slot 49 with arrow named "&cGo Back":
  95. open gui "G2S" to player
  96.  
  97. create a gui with id "TShop" with virtual chest with 6 rows named "&8Minerals":
  98. format gui slot 10 with 263 named "&eCoal &7[x16]" with lore "&ePrice: &7$2500":
  99. shopbuy(player, 2500, 16, 263) # Coal
  100. format gui slot 11 with iron_ingot named "&eIron Ingot &7[x4]" with lore "&ePrice: &7$5,000":
  101. shopbuy(player, 5000, 4, iron_ingot) # Iron
  102. format gui slot 12 with gold_ingot named "&eGold Ingot &7[x2]" with lore "&ePrice: &7$7500":
  103. shopbuy(player, 7500, 2, gold_ingot) # Stone Brick
  104. format gui slot 13 with lapis named "&eLapis &7[x1]" with lore "&ePrice: &7$10,000":
  105. shopbuy(player, 10000, 1, lapis) # Lapis
  106. format gui slot 14 with diamond named "&eDiamond &7[x1]" with lore "&ePrice: &7$15,000":
  107. shopbuy(player, 15000, 1, Diamond) # Diamond
  108. format gui slot 15 with 406 named "&eQuartz &7[x1]" with lore "&ePrice: &7$20,000":
  109. shopbuy(player, 20000, 1, 406) #Quartz
  110. format gui slot 16 with emerald named "&eEmerald &7[x1]" with lore "&ePrice: &7$25,000":
  111. shopbuy(player, 25000, 1, emerald) # Emerald
  112.  
  113. format gui slot 19 with 263 named "&eCoal &7[x32]" with lore "&ePrice: &7$5000":
  114. shopbuy(player, 5000, 32, 263) # Coal
  115. format gui slot 20 with iron_ingot named "&eIron Ingot &7[x8]" with lore "&ePrice: &7$10,000":
  116. shopbuy(player, 10000, 8, iron_ingot) # Iron
  117. format gui slot 21 with gold_ingot named "&eGold Ingot &7[x4]" with lore "&ePrice: &7$15,000":
  118. shopbuy(player, 15000, 4, gold_ingot) # Stone Brick
  119. format gui slot 22 with lapis named "&eLapis &7[x4]" with lore "&ePrice: &7$20,000":
  120. shopbuy(player, 20000, 4, lapis) # Lapis
  121. format gui slot 23 with diamond named "&eDiamond &7[x4]" with lore "&ePrice: &7$30,000":
  122. shopbuy(player, 30000, 4, Diamond) # Diamond
  123. format gui slot 24 with 406 named "&eQuartz &7[x4]" with lore "&ePrice: &7$40,000":
  124. shopbuy(player, 40000, 4, 406) #Quartz
  125. format gui slot 25 with emerald named "&eEmerald &7[x4]" with lore "&ePrice: &7$50,000":
  126. shopbuy(player, 50000, 4, emerald) # Emerald
  127.  
  128. format gui slot 28 with 263 named "&eCoal &7[x64]" with lore "&ePrice: &7$10,000":
  129. shopbuy(player, 10000, 32, 263) # Coal
  130. format gui slot 29 with iron_ingot named "&eIron Ingot &7[x32]" with lore "&ePrice: &7$40,000":
  131. shopbuy(player, 40000, 32, iron_ingot) # Iron
  132. format gui slot 30 with gold_ingot named "&eGold Ingot &7[x16]" with lore "&ePrice: &7$60,000":
  133. shopbuy(player, 60000, 16, gold_ingot) # Stone Brick
  134. format gui slot 31 with lapis named "&eLapis &7[x16]" with lore "&ePrice: &7$160,000":
  135. shopbuy(player, 160000, 16, lapis) # Lapis
  136. format gui slot 32 with diamond named "&eDiamond &7[x16]" with lore "&ePrice: &7$240,000":
  137. shopbuy(player, 240000, 16, Diamond) # Diamond
  138. format gui slot 33 with 406 named "&eQuartz &7[x16]" with lore "&ePrice: &7$320,000":
  139. shopbuy(player, 320000, 16, 406) #Quartz
  140. format gui slot 34 with emerald named "&eEmerald &7[x16]" with lore "&ePrice: &7$400,000":
  141. shopbuy(player, 400000, 16, emerald) # Emerald
  142. format gui slot 49 with arrow named "&cGo Back":
  143. open gui "G2S" to player
  144.  
  145. create a gui with id "KShop" with virtual chest with 3 rows named "&8Keys!":
  146. format gui slot 22 with arrow named "&cGo Back":
  147. open gui "G2S" to player
  148. format gui slot 12 with Tripwire_hook named "&eFire Key" with lore "&7100 Crystals":
  149. keyfire(player, 100)
  150. format gui slot 14 with Tripwire_hook named "&ePlasma Key" with lore "&7250 Crystals":
  151. keyplasma(player, 250)
  152. command /Shop:
  153. trigger:
  154. open gui "G2S" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement