Advertisement
SYplayzYT33

For Skript Help

Sep 24th, 2022 (edited)
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.87 KB | None | 0 0
  1. #function ADD_ITEM(slot: integer, it: itemtype, itn: string, buy: integer, sell: integer):
  2. #        ADD_ITEM(10           , dirt        , "Dirt Block", 20         , 4            )
  3. #   make gui slot {_slot} with {_it} named "&b&l%{_itn}%" with lore " &b&l*&7 Buy Price: &b$%{_buy}%" and " &b&l*&7 Sell Price: &b$%{_sell}%" and "" and "&b&l[!]&b Click for Buy & Sell Options":
  4. #       ITEM(player, {_it}, {_buy}, {_sell}, {_itn})
  5.  
  6. function BUILDING_BLOCKS(p: player, page: integer):
  7.     create a gui with virtual chest with 6 rows named "Shop > Building Blocks":
  8.         make gui slot ((integers between 0 and 8) and (integers between 45 and 53)) with black stained glass pane named " "
  9.         make gui slot 9 and 18 and 27 and 36 and 17 and 26 and 35 and 44 with light blue stained glass pane named " "
  10.         make gui slot 49 with barrier named "&b&lBack" with lore "&b&l*&7 Return to Categories":
  11.             MAIN_SHOP(player)
  12.  
  13.         set {ITEM_LORE} to "%nl%&b&l[!]&b Click for Buy & Sell Options"
  14.        
  15.         if {_page} is 1:
  16.  
  17.  
  18.             ADD_ITEM(10, dirt, "Dirt Block", 20, 4) #<<<<<<<<<<<< HERE WILL PARSE THE ERROR
  19.             #LINE BELOW IS THE FULL FORM WITHOUT FUNCTIONS
  20.  
  21.  
  22.  
  23.  
  24.  
  25.             make gui slot 10 with dirt named "&b&lDirt Block" with lore " &b&l*&7 Buy Price: &b$20" and " &b&l*&7 Sell Price: &b$4" and {ITEM_LORE}:
  26.                 ITEM(player, dirt, 20, 4, "Dirt Block")
  27.             make gui slot 11 with rooted dirt named "&b&lRooted Dirt Block" with lore " &b&l*&7 Buy Price: &b$20" and " &b&l*&7 Sell Price: &b$4" and {ITEM_LORE}:
  28.                 ITEM(player, rooted dirt, 20, 4, "Rooted Dirt Block")
  29.             make gui slot 12 with coarse dirt named "&b&lCoarse Dirt Block" with lore " &b&l*&7 Buy Price: &b$20" and " &b&l*&7 Sell Price: &b$4" and {ITEM_LORE}:
  30.                 ITEM(player, coarse dirt, 20, 4, "Coarse Dirt Block")
  31.             make gui slot 13 with grass block named "&b&lGrass Block" with lore " &b&l*&7 Buy Price: &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
  32.                 ITEM(player, grass block, 50, 10, "Grass Block")
  33.             make gui slot 14 with podzol named "&b&lPodzol Block" with lore " &b&l*&7 Buy Price: &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
  34.                 ITEM(player, podzol, 50, 10, "Podzol Block")
  35.             make gui slot 15 with mycelium named "&b&lMycelium Block" with lore " &b&l*&7 Buy Price: &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
  36.                 ITEM(player, mycelium, 50, 10, "Mycelium Block")
  37.             make gui slot 16 with warped nylium named "&b&lWarped Nylium" with lore " &b&l*&7 Buy Price: &b$60" and " &b&l*&7 Sell Price: &b$15" and {ITEM_LORE}:
  38.                 ITEM(player, warped nylium, 60, 15, "Warped Nylium")
  39.            
  40.             make gui slot 19 with crimson nylium named "&b&lCrimson Nylium" with lore " &b&l*&7 Buy Price &b$60" and " &b&l*&7 Sell Price: &b$15" and {ITEM_LORE}:
  41.                 ITEM(player, warped nylium, 60, 15, "Warped Nylium")
  42.            
  43.             make gui slot 20 with cobblestone named "&b&lCobblestone Block" with lore " &b&l*&7 Buy Price &b$10" and " &b&l*&7 Sell Price: &b$2" and {ITEM_LORE}:
  44.                 ITEM(player, cobblestone, 10, 2, "Cobblestone Block")
  45.            
  46.             make gui slot 21 with stone named "&b&lStone Block" with lore " &b&l*&7 Buy Price &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
  47.                 ITEM(player, stone, 50, 10, "Stone Block")
  48.            
  49.             make gui slot 22 with gravel named "&b&lGravel Block" with lore " &b&l*&7 Buy Price &b$20" and " &b&l*&7 Sell Price: &b$4" and {ITEM_LORE}:
  50.                 ITEM(player, gravel, 20, 4, "Gravel Block")
  51.            
  52.             make gui slot 23 with andesite named "&b&lRaw Andesite" with lore " &b&l*&7 Buy Price &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
  53.                 ITEM(player, andesite, 50, 10, "Raw Andesite")
  54.                
  55.             make gui slot 50 with arrow named "&b&lNext Page" with lore "&b&l*&7 Go To Page 2":
  56.                 BUILDING_BLOCKS(player, 2)
  57.  
  58.         if {_page} is 2:
  59.             make gui slot 11 with grass block named "2!"
  60.  
  61.             make gui slot 48 with arrow named "&b&lPrevious Page" with lore "&b&l*&7 Back To Page 1":
  62.                 BUILDING_BLOCKS(player, 1)
  63.     open the last gui for {_P}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement