Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.53 KB | None | 0 0
  1. # set {_a} to 0
  2. # loop 45 times:
  3. # format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  4. # add 1 to {_a}
  5. # format gui slot 0,4,8,22 and 26 of player with yellow stained glass pane named " " to do nothing
  6. # format gui slot 18 of player with yellow stained glass pane named "&cBack" to run:
  7. # player command "/shop blocks"
  8. #_________________________________________________________________________________________________________
  9. options:
  10. prefix: &6&lMig&e&lFarms&7 |
  11.  
  12.  
  13. function shop(player: player, amount: integer, item: item, cost: number):
  14. if {_player}'s balance < {_cost}:
  15. send "{@prefix} You haven't got enough money!" to {_player}
  16. else:
  17. remove {_cost} from {_player}'s balance
  18. give {_player} {_amount} of {_item}
  19.  
  20.  
  21. command /shop [<text>]:
  22. trigger:
  23. if arg-1 is "reload" or "rl":
  24. console command "skript reload Shop.sk"
  25. if arg-1 is "disable":
  26. console command "skript disable Shop.sk"
  27. if arg-1 is not set:
  28. open virtual chest with size 3 to player
  29. set {_a} to 0
  30. loop 45 times:
  31. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  32. add 1 to {_a}
  33. format gui slot 0,4,8,18 and 22 and 26 of player with yellow stained glass pane named " " to do nothing
  34. format gui slot 10 of player with grass block named "&8Blocks" to run:
  35. player command "/shop blocks"
  36. format gui slot 11 of player with oak sapling named "&8Decor" to run:
  37. player command "/shop decor"
  38. format gui slot 12 of player with redstone dust named "&8Redstone" to run:
  39. player command "/shop redstone"
  40. format gui slot 13 of player with wheat seeds named "&8Farming" to run:
  41. player command "/shop Farming"
  42. format gui slot 14 of player with iron axe named "&8Tools" to run:
  43. player command "/shop tools"
  44. format gui slot 15 of player with paper named "&8Rankup" to run:
  45. player command "/rankup"
  46. format gui slot 16 of player with golden apple named "&8Donor Shop" to run:
  47. player command "/dshop"
  48.  
  49.  
  50.  
  51. if arg-1 is "blocks":
  52. open virtual chest with size 3 to player
  53. set {_a} to 0
  54. loop 45 times:
  55. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  56. add 1 to {_a}
  57. format gui slot 0,4,8,22 and 26 of player with yellow stained glass pane named " " to do nothing
  58. format gui slot 18 of player with yellow stained glass pane named "&cBack" to run:
  59. player command "/shop"
  60. format gui slot 10 of player with white concrete named "&8Concrete" to run:
  61. player command "/shop blocks concrete"
  62. format gui slot 11 of player with white terracotta named "&8Terracotta" to run:
  63. player command "/shop blocks terracotta"
  64. format gui slot 12 of player with oak log named "&8Wood" to run:
  65. player command "/shop blocks wood"
  66. format gui slot 13 of player with white stained glass named "&8Glass" to run:
  67. player command "/shop blocks glass"
  68. format gui slot 14 of player with iron bars named "&8Coming Soon..."
  69. format gui slot 15 of player with iron bars named "&8Coming Soon..."
  70. format gui slot 16 of player with brick block named "&8Other" to run:
  71. player command "/shop blocks other"
  72.  
  73. if arg-1 is "blocks concrete":
  74. open virtual chest with size 5 to player
  75. set {_a} to 0
  76. loop 45 times:
  77. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  78. add 1 to {_a}
  79. format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
  80. format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
  81. player command "/shop blocks"
  82. format gui slot 10 of player with 16 white concrete named "&8Concrete | &a$320" to run function shop(player, 16, white concrete, 320)
  83. format gui slot 11 of player with 16 red concrete named "&8Concrete | &a$320" to run function shop(player, 16, red concrete, 320)
  84. format gui slot 12 of player with 16 orange concrete named "&8Concrete | &a$320" to run function shop(player, 16, orange concrete, 320)
  85. format gui slot 13 of player with 16 yellow concrete named "&8Concrete | &a$320" to run function shop(player, 16, yellow concrete, 320)
  86. format gui slot 14 of player with 16 lime concrete named "&8Concrete | &a$320" to run function shop(player, 16, lime concrete, 320)
  87. format gui slot 15 of player with 16 light blue concrete named "&8Concrete | &a$320" to run function shop(player, 16, light blue concrete, 320)
  88. format gui slot 16 of player with 16 pink concrete named "&8Concrete | &a$320" to run function shop(player, 16, pink concrete, 320)
  89. format gui slot 19 of player with 16 purple concrete named "&8Concrete | &a$320" to run function shop(player, 16, purple concrete, 320)
  90. format gui slot 20 of player with 16 light gray concrete named "&8Concrete | &a$320" to run function shop(player, 16, light gray concrete, 320)
  91. format gui slot 21 of player with 16 gray concrete named "&8Concrete | &a$320" to run function shop(player, 16, gray concrete, 320)
  92. format gui slot 22 of player with 16 black concrete named "&8Concrete | &a$320" to run function shop(player, 16, black concrete, 320)
  93. format gui slot 23 of player with 16 brown concrete named "&8Concrete | &a$320" to run function shop(player, 16, brown concrete, 320)
  94. format gui slot 24 of player with 16 magenta concrete named "&8Magenta Concrete | &a$320" to run function shop(player, 16, magenta concrete, 320)
  95. format gui slot 25 of player with 16 green concrete named "&8Concrete | &a$320" to run function shop(player, 16, geeen concrete, 320)
  96. format gui slot 29 of player with 16 blue concrete named "&8Concrete | &a$320" to run function shop(player, 16, blue concrete, 320)
  97. format gui slot 30 of player with 16 cyan concrete named "&8Concrete | &a$320" to run function shop(player, 16, cyan concrete, 320)
  98.  
  99.  
  100. if arg-1 is "blocks terracotta":
  101. open virtual chest with size 5 to player
  102. set {_a} to 0
  103. loop 45 times:
  104. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  105. add 1 to {_a}
  106. format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
  107. format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
  108. player command "/shop blocks"
  109. format gui slot 10 of player with 16 white Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, white Terracotta, 320)
  110. format gui slot 11 of player with 16 red Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, red Terracotta, 320)
  111. format gui slot 12 of player with 16 orange Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, orange Terracotta, 320)
  112. format gui slot 13 of player with 16 yellow Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, yellow Terracotta, 320)
  113. format gui slot 14 of player with 16 lime Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, lime Terracotta, 320)
  114. format gui slot 15 of player with 16 light blue Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, light blue Terracotta, 320)
  115. format gui slot 16 of player with 16 pink Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, pink Terracotta, 320)
  116. format gui slot 19 of player with 16 purple Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, purple Terracotta, 320)
  117. format gui slot 20 of player with 16 light gray Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, light gray Terracotta, 320)
  118. format gui slot 21 of player with 16 gray Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, gray Terracotta, 320)
  119. format gui slot 22 of player with 16 black Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, black Terracotta, 320)
  120. format gui slot 23 of player with 16 brown Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, brown Terracotta, 320)
  121. format gui slot 25 of player with 16 green Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, geeen Terracotta, 320)
  122. format gui slot 29 of player with 16 blue Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, blue Terracotta, 320)
  123. format gui slot 30 of player with 16 cyan Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, cyan Terracotta, 320)
  124.  
  125. if arg-1 is "blocks wood":
  126. open virtual chest with size 3 to player
  127. set {_a} to 0
  128. loop 45 times:
  129. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  130. add 1 to {_a}
  131. format gui slot 0,4,8,18,36,40,44 and 26,22 of player with yellow stained glass pane named " " to do nothing
  132. format gui slot 18 of player with yellow stained glass pane named "&cBack" to run:
  133. player command "/shop blocks"
  134. format gui slot 10 of player with 16 oak log named "&8Log | &a$500" to run function shop(player, 16, Oak log, 500)
  135. format gui slot 11 of player with 16 birch log named "&8Log | &a$500" to run function shop(player, 16, birch log, 500)
  136. format gui slot 12 of player with 16 spruce log named "&8Log | &a$500" to run function shop(player, 16, spruce log, 500)
  137. format gui slot 13 of player with 16 jungle log named "&8Log | &a$500" to run function shop(player, 16, jungle log, 500)
  138. format gui slot 14 of player with 16 acacia log named "&8Log | &a$500" to run function shop(player, 16, acacia log, 500)
  139. format gui slot 15 of player with 16 dark oak log named "&8Log | &a$500" to run function shop(player, 16, dark oak log, 500)
  140.  
  141. if arg-1 is "blocks glass":
  142. open virtual chest with size 5 to player
  143. set {_a} to 0
  144. loop 45 times:
  145. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  146. add 1 to {_a}
  147. format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
  148. format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
  149. player command "/shop blocks"
  150. format gui slot 10 of player with 16 white Glass named "&8Glass | &a$320" to run function shop(player, 16, white Glass, 320)
  151. format gui slot 11 of player with 16 red Glass named "&8Glass | &a$320" to run function shop(player, 16, red Glass, 320)
  152. format gui slot 12 of player with 16 orange Glass named "&8Glass | &a$320" to run function shop(player, 16, orange Glass, 320)
  153. format gui slot 13 of player with 16 yellow Glass named "&8Glass | &a$320" to run function shop(player, 16, yellow Glass, 320)
  154. format gui slot 14 of player with 16 lime Glass named "&8Glass | &a$320" to run function shop(player, 16, lime Glass, 320)
  155. format gui slot 15 of player with 16 light blue Glass named "&8Glass | &a$320" to run function shop(player, 16, light blue Glass, 320)
  156. format gui slot 16 of player with 16 pink Glass named "&8Glass | &a$320" to run function shop(player, 16, pink Glass, 320)
  157. format gui slot 19 of player with 16 purple Glass named "&8Glass | &a$320" to run function shop(player, 16, purple Glass, 320)
  158. format gui slot 20 of player with 16 light gray Glass named "&8Glass | &a$320" to run function shop(player, 16, light gray Glass, 320)
  159. format gui slot 21 of player with 16 gray Glass named "&8Glass | &a$320" to run function shop(player, 16, gray Glass, 320)
  160. format gui slot 22 of player with 16 black Glass named "&8Glass | &a$320" to run function shop(player, 16, black Glass, 320)
  161. format gui slot 23 of player with 16 brown Glass named "&8Glass | &a$320" to run function shop(player, 16, brown Glass, 320)
  162. format gui slot 24 of player with 16 magenta Glass named "&8Magenta Glass | &a$320" to run function shop(player, 16, magenta Glass, 320)
  163. format gui slot 25 of player with 16 green Glass named "&8Glass | &a$320" to run function shop(player, 16, geeen Glass, 320)
  164. format gui slot 29 of player with 16 blue Glass named "&8Glass | &a$320" to run function shop(player, 16, blue Glass, 320)
  165. format gui slot 30 of player with 16 cyan Glass named "&8Glass | &a$320" to run function shop(player, 16, cyan Glass, 320)
  166.  
  167. if arg-1 is "blocks other":
  168. open virtual chest with size 5 to player
  169. set {_a} to 0
  170. loop 45 times:
  171. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  172. add 1 to {_a}
  173. format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
  174. format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
  175. player command "/shop blocks"
  176. format gui slot 10 of player with 16 brick block named "&8Brick | &a$320" to run function shop(player, 16, brick block, 320)
  177. format gui slot 11 of player with 16 cobblestone named "&8Cobblestone | &a$80" to run function shop(player, 16, cobblestone, 80)
  178. format gui slot 12 of player with 16 stone named "&8Stone | &a$320" to run function shop(player, 16, stone, 320)
  179. format gui slot 13 of player with 16 granite named "&8Granite | &a$320" to run function shop(player, 16, granite, 320)
  180. format gui slot 14 of player with 16 diorite named "&8Diorite | &a$320" to run function shop(player, 16, diorite, 320)
  181. format gui slot 15 of player with 16 andesite named "&8Andesite | &a$320" to run function shop(player, 16, andesite, 320)
  182. format gui slot 16 of player with 16 grass block named "&8Grass | &a$320" to run function shop(player, 16, grass block, 320)
  183. format gui slot 25 of player with 16 dirt named "&8Dirt | &a$80" to run function shop(player, 16, dirt, 80)
  184. format gui slot 19 of player with 16 sand named "&8Sand | &a$320" to run function shop(player, 16, sand, 320)
  185. format gui slot 20 of player with 16 red sand named "&8Red Sand | &a$320" to run function shop(player, 16, red sand, 320)
  186. format gui slot 21 of player with 16 prismarine named "&8Prismarine | &a$320" to run function shop(player, 16, prismarine, 320)
  187. format gui slot 22 of player with 16 dark prismarine named "&8Dark Prismarine | &a$320" to run function shop(player, 16, dark prismarine, 320)
  188. format gui slot 23 of player with 16 packed ice named "&8Packed Ice | &a$1000" to run function shop(player, 16, Packed Ice, 1000)
  189. format gui slot 24 of player with 16 blue ice named "&8Blue Ice | &a$5000" to run function shop(player, 16, Blue Ice, 5000)
  190. format gui slot 28 of player with 4 soul sand named "&8Soul Sand | &a$200" to run function shop(player, 4, Soul Sand, 200)
  191. format gui slot 29 of player with 4 magma block named "&8Magma block| &a$200" to run function shop(player, 4, Magma Block, 200)
  192. format gui slot 30 of player with 4 glowstone named "&8Glowstone| &a$500" to run function shop(player, 4, Sea Lantern, 500)
  193. format gui slot 31 of player with 4 magma block named "&8Sea Lantern| &a$500" to run function shop(player, 4, Sea Lantern, 500)
  194. #
  195. #
  196. #
  197. #
  198.  
  199. if arg-1 is "farming":
  200. open virtual chest with size 3 to player
  201. set {_a} to 0
  202. loop 45 times:
  203. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  204. add 1 to {_a}
  205. format gui slot 0,4,8,18 and 22 of player with yellow stained glass pane named " " to do nothing
  206. format gui slot 18 of player with yellow stained glass pane named "&cBack" to run:
  207. player command "/shop"
  208. format gui slot 26 of player with green stained glass pane named "&aNext Page" to run:
  209. player command "/shop 2farming"
  210. format gui slot 10 of player with 4 wheat seeds named "&8Seeds | &a$100" to run function shop(player, 16, wheat seeds, 100)
  211. format gui slot 11 of player with 4 carrot named "&8Carrots | &a$1,000" to run function shop(player, 16, carrot, 1000)
  212. format gui slot 12 of player with 4 potato named "&8Seeds | &a$1,000" to run function shop(player, 16, potato, 1000)
  213. format gui slot 13 of player with 4 sugar cane named "&8Sugar Cane |&a $1,000" to run function shop(player, 16, sugar cane, 1000)
  214. format gui slot 14 of player with 4 melon seeds named "&8Melon |&a $5,000" to run function shop(player, 1, melon block, 5000)
  215. format gui slot 15 of player with 4 pumpkin seeds named "&8Pumpkin |&a $10,000" to run function shop(player, 1, pumpkin, 10000)
  216. format gui slot 16 of player with 16 cactus named "&8Cactus |&a $50,000" to run function shop(player, 16, cactus, 50000)
  217.  
  218.  
  219.  
  220. if arg-1 is "2farming":
  221. open virtual chest with size 3 to player
  222. set {_a} to 0
  223. loop 45 times:
  224. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  225. add 1 to {_a}
  226. format gui slot 0,4,8,18,22,26 and 36 of player with yellow stained glass pane named " " to do nothing
  227. format gui slot 18 of player with red stained glass pane named "&cBack" to run:
  228. player command "/shop farming"
  229. format gui slot 10,11,12,13,14,15 and 16 of player with iron bars named "&cAny Suggestions?"
  230.  
  231.  
  232. if arg-1 is "redstone":
  233. open virtual chest with size 5 to player
  234. set {_a} to 0
  235. loop 45 times:
  236. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  237. add 1 to {_a}
  238. format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
  239. format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
  240. player command "/shop"
  241. format gui slot 13 of player with 16 redstone dust named "&8Redstone |&a $600" to run function shop(player, 16, redstone, 600)
  242. format gui slot 22 of player with 3 hopper named "&8Hopper |&a $25000" to run function shop(player, 3, hopper, 25000)
  243. format gui slot 21 of player with 5 redstone comparator named "&8Comparator |&a $400" to run function shop(player, 16, redstone comparator, 400)
  244. format gui slot 23 of player with 16 redstone Repeater named "&8Repeater |&a $400" to run function shop(player, 16, redstone repeater, 400)
  245. format gui slot 24 of player with 16 string named "&8String |&a $50" to run function shop(player, 16, string, 50)
  246. format gui slot 10 of player with 4 piston named "&8Piston |&a $500" to run function shop(player, 4, Piston, 500)
  247. format gui slot 11 of player with 4 sticky piston named "&8Sticky Piston |&a $500" to run function shop(player, 4, sticky Piston, 500)
  248. format gui slot 12 of player with 2 observer named "&8Observer | &a$500" to run function shop(player, 2, observer, 500)
  249. format gui slot 14 of player with 16 redstone torch named "&8Torch | &a$50" to run function shop(player, 16, redstone torch, 50)
  250. format gui slot 31 of player with 16 slime block named "&8Slime Block | &a$5000" to run function shop(player, 16, Slime Block, 5000)
  251. format gui slot 20 of player with 4 dispenser named "&8Dispenser | &a$500" to run function shop(player, 16, dispenser, 500)
  252. format gui slot 19 of player with 4 dropper named "&8Dropper | &a$500" to run function shop(player, 16, Dropper, 500)
  253. format gui slot 15 of player with 4 redstone lamp named "&8Lamp | &a$500" to run function shop(player, 16, redstone Lamp, 500)
  254.  
  255.  
  256.  
  257. if arg-1 is "decor":
  258. send "&c&lComing Soon!"
  259.  
  260.  
  261. if arg-1 is "tools":
  262. open virtual chest with size 5 to player
  263. set {_a} to 0
  264. loop 45 times:
  265. format gui slot {_a} of player with gray stained glass pane named " " to do nothing
  266. add 1 to {_a}
  267. format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
  268. format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
  269. player command "/shop"
  270. format gui slot 11 of player with diamond pickaxe named "&8Pickaxe |&a $500" to run function shop(player, 1, diamond pickaxe, 500)
  271. format gui slot 20 of player with diamond axe named "&8Axe |&a $500" to run function shop(player, 1, diamond axe, 500)
  272. format gui slot 29 of player with diamond pickaxe named "&8Shovel |&a $500" to run function shop(player, 1, diamond shovel, 500)
  273. format gui slot 21 of player with diamond hoe named "&8 Hoe|&a $500" to run function shop(player, 1, diamond hoe, 500)
  274. format gui slot 19 of player with fishing rod named "&8 rod|&a $500" to run function shop(player, 1, fishing rod, 500)
  275. format gui slot 22 of player with stick named "&e&lx1&7&l Sellwand |&a $1.5m" with lore "&6Mig&eFarms" to run function shop(player, 1, stick, -1)
  276. format gui slot 13 of player with water bucket named "&8 water |&a $50" to run function shop(player, 1, water bucket, 50)
  277. format gui slot 31 of player with Lava bucket named "&8lava |&a $100" to run function shop(player, 1, lava bucket, 100)
  278. format gui slot 19 of player with fishing rod named "&8 rod|&a $500" to run function shop(player, 1, fishing rod, 500)
  279. format gui slot 15 of player with iron pickaxe named "&8Pickaxe |&a $500" to run function shop(player, 1, iron pickaxe, 500)
  280. format gui slot 20 of player with iron axe named "&8Axe |&a $500" to run function shop(player, 1, iron axe, 500)
  281. format gui slot 29 of player with iron pickaxe named "&8Shovel |&a $500" to run function shop(player, 1, iron shovel, 500)
  282. format gui slot 21 of player with iron hoe named "&8 Hoe|&a $500" to run function shop(player, 1, iron hoe, 500)
  283. format gui slot 19 of player with fishing rod named "&8 rod|&a $500" to run function shop(player, 1, fishing rod, 500)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement