Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # set {_a} to 0
- # loop 45 times:
- # format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- # add 1 to {_a}
- # format gui slot 0,4,8,22 and 26 of player with yellow stained glass pane named " " to do nothing
- # format gui slot 18 of player with yellow stained glass pane named "&cBack" to run:
- # player command "/shop blocks"
- #_________________________________________________________________________________________________________
- options:
- prefix: &6&lMig&e&lFarms&7 |
- function shop(player: player, amount: integer, item: item, cost: number):
- if {_player}'s balance < {_cost}:
- send "{@prefix} You haven't got enough money!" to {_player}
- else:
- remove {_cost} from {_player}'s balance
- give {_player} {_amount} of {_item}
- command /shop [<text>]:
- trigger:
- if arg-1 is "reload" or "rl":
- console command "skript reload Shop.sk"
- if arg-1 is "disable":
- console command "skript disable Shop.sk"
- if arg-1 is not set:
- open virtual chest with size 3 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18 and 22 and 26 of player with yellow stained glass pane named " " to do nothing
- format gui slot 10 of player with grass block named "&8Blocks" to run:
- player command "/shop blocks"
- format gui slot 11 of player with oak sapling named "&8Decor" to run:
- player command "/shop decor"
- format gui slot 12 of player with redstone dust named "&8Redstone" to run:
- player command "/shop redstone"
- format gui slot 13 of player with wheat seeds named "&8Farming" to run:
- player command "/shop Farming"
- format gui slot 14 of player with iron axe named "&8Tools" to run:
- player command "/shop tools"
- format gui slot 15 of player with paper named "&8Rankup" to run:
- player command "/rankup"
- format gui slot 16 of player with golden apple named "&8Donor Shop" to run:
- player command "/dshop"
- if arg-1 is "blocks":
- open virtual chest with size 3 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,22 and 26 of player with yellow stained glass pane named " " to do nothing
- format gui slot 18 of player with yellow stained glass pane named "&cBack" to run:
- player command "/shop"
- format gui slot 10 of player with white concrete named "&8Concrete" to run:
- player command "/shop blocks concrete"
- format gui slot 11 of player with white terracotta named "&8Terracotta" to run:
- player command "/shop blocks terracotta"
- format gui slot 12 of player with oak log named "&8Wood" to run:
- player command "/shop blocks wood"
- format gui slot 13 of player with white stained glass named "&8Glass" to run:
- player command "/shop blocks glass"
- format gui slot 14 of player with iron bars named "&8Coming Soon..."
- format gui slot 15 of player with iron bars named "&8Coming Soon..."
- format gui slot 16 of player with brick block named "&8Other" to run:
- player command "/shop blocks other"
- if arg-1 is "blocks concrete":
- open virtual chest with size 5 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
- format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
- player command "/shop blocks"
- format gui slot 10 of player with 16 white concrete named "&8Concrete | &a$320" to run function shop(player, 16, white concrete, 320)
- format gui slot 11 of player with 16 red concrete named "&8Concrete | &a$320" to run function shop(player, 16, red concrete, 320)
- format gui slot 12 of player with 16 orange concrete named "&8Concrete | &a$320" to run function shop(player, 16, orange concrete, 320)
- format gui slot 13 of player with 16 yellow concrete named "&8Concrete | &a$320" to run function shop(player, 16, yellow concrete, 320)
- format gui slot 14 of player with 16 lime concrete named "&8Concrete | &a$320" to run function shop(player, 16, lime concrete, 320)
- 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)
- format gui slot 16 of player with 16 pink concrete named "&8Concrete | &a$320" to run function shop(player, 16, pink concrete, 320)
- format gui slot 19 of player with 16 purple concrete named "&8Concrete | &a$320" to run function shop(player, 16, purple concrete, 320)
- 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)
- format gui slot 21 of player with 16 gray concrete named "&8Concrete | &a$320" to run function shop(player, 16, gray concrete, 320)
- format gui slot 22 of player with 16 black concrete named "&8Concrete | &a$320" to run function shop(player, 16, black concrete, 320)
- format gui slot 23 of player with 16 brown concrete named "&8Concrete | &a$320" to run function shop(player, 16, brown concrete, 320)
- format gui slot 24 of player with 16 magenta concrete named "&8Magenta Concrete | &a$320" to run function shop(player, 16, magenta concrete, 320)
- format gui slot 25 of player with 16 green concrete named "&8Concrete | &a$320" to run function shop(player, 16, geeen concrete, 320)
- format gui slot 29 of player with 16 blue concrete named "&8Concrete | &a$320" to run function shop(player, 16, blue concrete, 320)
- format gui slot 30 of player with 16 cyan concrete named "&8Concrete | &a$320" to run function shop(player, 16, cyan concrete, 320)
- if arg-1 is "blocks terracotta":
- open virtual chest with size 5 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
- format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
- player command "/shop blocks"
- format gui slot 10 of player with 16 white Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, white Terracotta, 320)
- format gui slot 11 of player with 16 red Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, red Terracotta, 320)
- format gui slot 12 of player with 16 orange Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, orange Terracotta, 320)
- format gui slot 13 of player with 16 yellow Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, yellow Terracotta, 320)
- format gui slot 14 of player with 16 lime Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, lime Terracotta, 320)
- 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)
- format gui slot 16 of player with 16 pink Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, pink Terracotta, 320)
- format gui slot 19 of player with 16 purple Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, purple Terracotta, 320)
- 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)
- format gui slot 21 of player with 16 gray Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, gray Terracotta, 320)
- format gui slot 22 of player with 16 black Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, black Terracotta, 320)
- format gui slot 23 of player with 16 brown Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, brown Terracotta, 320)
- format gui slot 25 of player with 16 green Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, geeen Terracotta, 320)
- format gui slot 29 of player with 16 blue Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, blue Terracotta, 320)
- format gui slot 30 of player with 16 cyan Terracotta named "&8Terracotta | &a$320" to run function shop(player, 16, cyan Terracotta, 320)
- if arg-1 is "blocks wood":
- open virtual chest with size 3 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18,36,40,44 and 26,22 of player with yellow stained glass pane named " " to do nothing
- format gui slot 18 of player with yellow stained glass pane named "&cBack" to run:
- player command "/shop blocks"
- format gui slot 10 of player with 16 oak log named "&8Log | &a$500" to run function shop(player, 16, Oak log, 500)
- format gui slot 11 of player with 16 birch log named "&8Log | &a$500" to run function shop(player, 16, birch log, 500)
- format gui slot 12 of player with 16 spruce log named "&8Log | &a$500" to run function shop(player, 16, spruce log, 500)
- format gui slot 13 of player with 16 jungle log named "&8Log | &a$500" to run function shop(player, 16, jungle log, 500)
- format gui slot 14 of player with 16 acacia log named "&8Log | &a$500" to run function shop(player, 16, acacia log, 500)
- 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)
- if arg-1 is "blocks glass":
- open virtual chest with size 5 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
- format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
- player command "/shop blocks"
- format gui slot 10 of player with 16 white Glass named "&8Glass | &a$320" to run function shop(player, 16, white Glass, 320)
- format gui slot 11 of player with 16 red Glass named "&8Glass | &a$320" to run function shop(player, 16, red Glass, 320)
- format gui slot 12 of player with 16 orange Glass named "&8Glass | &a$320" to run function shop(player, 16, orange Glass, 320)
- format gui slot 13 of player with 16 yellow Glass named "&8Glass | &a$320" to run function shop(player, 16, yellow Glass, 320)
- format gui slot 14 of player with 16 lime Glass named "&8Glass | &a$320" to run function shop(player, 16, lime Glass, 320)
- 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)
- format gui slot 16 of player with 16 pink Glass named "&8Glass | &a$320" to run function shop(player, 16, pink Glass, 320)
- format gui slot 19 of player with 16 purple Glass named "&8Glass | &a$320" to run function shop(player, 16, purple Glass, 320)
- 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)
- format gui slot 21 of player with 16 gray Glass named "&8Glass | &a$320" to run function shop(player, 16, gray Glass, 320)
- format gui slot 22 of player with 16 black Glass named "&8Glass | &a$320" to run function shop(player, 16, black Glass, 320)
- format gui slot 23 of player with 16 brown Glass named "&8Glass | &a$320" to run function shop(player, 16, brown Glass, 320)
- format gui slot 24 of player with 16 magenta Glass named "&8Magenta Glass | &a$320" to run function shop(player, 16, magenta Glass, 320)
- format gui slot 25 of player with 16 green Glass named "&8Glass | &a$320" to run function shop(player, 16, geeen Glass, 320)
- format gui slot 29 of player with 16 blue Glass named "&8Glass | &a$320" to run function shop(player, 16, blue Glass, 320)
- format gui slot 30 of player with 16 cyan Glass named "&8Glass | &a$320" to run function shop(player, 16, cyan Glass, 320)
- if arg-1 is "blocks other":
- open virtual chest with size 5 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
- format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
- player command "/shop blocks"
- format gui slot 10 of player with 16 brick block named "&8Brick | &a$320" to run function shop(player, 16, brick block, 320)
- format gui slot 11 of player with 16 cobblestone named "&8Cobblestone | &a$80" to run function shop(player, 16, cobblestone, 80)
- format gui slot 12 of player with 16 stone named "&8Stone | &a$320" to run function shop(player, 16, stone, 320)
- format gui slot 13 of player with 16 granite named "&8Granite | &a$320" to run function shop(player, 16, granite, 320)
- format gui slot 14 of player with 16 diorite named "&8Diorite | &a$320" to run function shop(player, 16, diorite, 320)
- format gui slot 15 of player with 16 andesite named "&8Andesite | &a$320" to run function shop(player, 16, andesite, 320)
- format gui slot 16 of player with 16 grass block named "&8Grass | &a$320" to run function shop(player, 16, grass block, 320)
- format gui slot 25 of player with 16 dirt named "&8Dirt | &a$80" to run function shop(player, 16, dirt, 80)
- format gui slot 19 of player with 16 sand named "&8Sand | &a$320" to run function shop(player, 16, sand, 320)
- format gui slot 20 of player with 16 red sand named "&8Red Sand | &a$320" to run function shop(player, 16, red sand, 320)
- format gui slot 21 of player with 16 prismarine named "&8Prismarine | &a$320" to run function shop(player, 16, prismarine, 320)
- format gui slot 22 of player with 16 dark prismarine named "&8Dark Prismarine | &a$320" to run function shop(player, 16, dark prismarine, 320)
- format gui slot 23 of player with 16 packed ice named "&8Packed Ice | &a$1000" to run function shop(player, 16, Packed Ice, 1000)
- format gui slot 24 of player with 16 blue ice named "&8Blue Ice | &a$5000" to run function shop(player, 16, Blue Ice, 5000)
- format gui slot 28 of player with 4 soul sand named "&8Soul Sand | &a$200" to run function shop(player, 4, Soul Sand, 200)
- format gui slot 29 of player with 4 magma block named "&8Magma block| &a$200" to run function shop(player, 4, Magma Block, 200)
- format gui slot 30 of player with 4 glowstone named "&8Glowstone| &a$500" to run function shop(player, 4, Sea Lantern, 500)
- format gui slot 31 of player with 4 magma block named "&8Sea Lantern| &a$500" to run function shop(player, 4, Sea Lantern, 500)
- #
- #
- #
- #
- if arg-1 is "farming":
- open virtual chest with size 3 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18 and 22 of player with yellow stained glass pane named " " to do nothing
- format gui slot 18 of player with yellow stained glass pane named "&cBack" to run:
- player command "/shop"
- format gui slot 26 of player with green stained glass pane named "&aNext Page" to run:
- player command "/shop 2farming"
- format gui slot 10 of player with 4 wheat seeds named "&8Seeds | &a$100" to run function shop(player, 16, wheat seeds, 100)
- format gui slot 11 of player with 4 carrot named "&8Carrots | &a$1,000" to run function shop(player, 16, carrot, 1000)
- format gui slot 12 of player with 4 potato named "&8Seeds | &a$1,000" to run function shop(player, 16, potato, 1000)
- 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)
- format gui slot 14 of player with 4 melon seeds named "&8Melon |&a $5,000" to run function shop(player, 1, melon block, 5000)
- format gui slot 15 of player with 4 pumpkin seeds named "&8Pumpkin |&a $10,000" to run function shop(player, 1, pumpkin, 10000)
- format gui slot 16 of player with 16 cactus named "&8Cactus |&a $50,000" to run function shop(player, 16, cactus, 50000)
- if arg-1 is "2farming":
- open virtual chest with size 3 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18,22,26 and 36 of player with yellow stained glass pane named " " to do nothing
- format gui slot 18 of player with red stained glass pane named "&cBack" to run:
- player command "/shop farming"
- format gui slot 10,11,12,13,14,15 and 16 of player with iron bars named "&cAny Suggestions?"
- if arg-1 is "redstone":
- open virtual chest with size 5 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
- format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
- player command "/shop"
- format gui slot 13 of player with 16 redstone dust named "&8Redstone |&a $600" to run function shop(player, 16, redstone, 600)
- format gui slot 22 of player with 3 hopper named "&8Hopper |&a $25000" to run function shop(player, 3, hopper, 25000)
- format gui slot 21 of player with 5 redstone comparator named "&8Comparator |&a $400" to run function shop(player, 16, redstone comparator, 400)
- format gui slot 23 of player with 16 redstone Repeater named "&8Repeater |&a $400" to run function shop(player, 16, redstone repeater, 400)
- format gui slot 24 of player with 16 string named "&8String |&a $50" to run function shop(player, 16, string, 50)
- format gui slot 10 of player with 4 piston named "&8Piston |&a $500" to run function shop(player, 4, Piston, 500)
- format gui slot 11 of player with 4 sticky piston named "&8Sticky Piston |&a $500" to run function shop(player, 4, sticky Piston, 500)
- format gui slot 12 of player with 2 observer named "&8Observer | &a$500" to run function shop(player, 2, observer, 500)
- format gui slot 14 of player with 16 redstone torch named "&8Torch | &a$50" to run function shop(player, 16, redstone torch, 50)
- format gui slot 31 of player with 16 slime block named "&8Slime Block | &a$5000" to run function shop(player, 16, Slime Block, 5000)
- format gui slot 20 of player with 4 dispenser named "&8Dispenser | &a$500" to run function shop(player, 16, dispenser, 500)
- format gui slot 19 of player with 4 dropper named "&8Dropper | &a$500" to run function shop(player, 16, Dropper, 500)
- format gui slot 15 of player with 4 redstone lamp named "&8Lamp | &a$500" to run function shop(player, 16, redstone Lamp, 500)
- if arg-1 is "decor":
- send "&c&lComing Soon!"
- if arg-1 is "tools":
- open virtual chest with size 5 to player
- set {_a} to 0
- loop 45 times:
- format gui slot {_a} of player with gray stained glass pane named " " to do nothing
- add 1 to {_a}
- format gui slot 0,4,8,18,36,40,44 and 26 of player with yellow stained glass pane named " " to do nothing
- format gui slot 36 of player with yellow stained glass pane named "&cBack" to run:
- player command "/shop"
- format gui slot 11 of player with diamond pickaxe named "&8Pickaxe |&a $500" to run function shop(player, 1, diamond pickaxe, 500)
- format gui slot 20 of player with diamond axe named "&8Axe |&a $500" to run function shop(player, 1, diamond axe, 500)
- format gui slot 29 of player with diamond pickaxe named "&8Shovel |&a $500" to run function shop(player, 1, diamond shovel, 500)
- format gui slot 21 of player with diamond hoe named "&8 Hoe|&a $500" to run function shop(player, 1, diamond hoe, 500)
- format gui slot 19 of player with fishing rod named "&8 rod|&a $500" to run function shop(player, 1, fishing rod, 500)
- 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)
- format gui slot 13 of player with water bucket named "&8 water |&a $50" to run function shop(player, 1, water bucket, 50)
- format gui slot 31 of player with Lava bucket named "&8lava |&a $100" to run function shop(player, 1, lava bucket, 100)
- format gui slot 19 of player with fishing rod named "&8 rod|&a $500" to run function shop(player, 1, fishing rod, 500)
- format gui slot 15 of player with iron pickaxe named "&8Pickaxe |&a $500" to run function shop(player, 1, iron pickaxe, 500)
- format gui slot 20 of player with iron axe named "&8Axe |&a $500" to run function shop(player, 1, iron axe, 500)
- format gui slot 29 of player with iron pickaxe named "&8Shovel |&a $500" to run function shop(player, 1, iron shovel, 500)
- format gui slot 21 of player with iron hoe named "&8 Hoe|&a $500" to run function shop(player, 1, iron hoe, 500)
- 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