Solved stacks in GUIs

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

JuliHatSpaB

Member
Aug 18, 2023
47
1
8
Hi,
I want to set a slot in a GUI to a specific number of items. But I get an error. How should I do it right?
Code:
set slot 1 of {_buy.gui} to 1 of {shoptype::{shop::%location of event-block%}::%{shoptemp.%uuid of player%}%} with lore "1 Item for %{shopprice::%{shop::%location of event-block%}%::%location of event-block%}%"
set slot 2 of {_buy.gui} to 8 of {shoptype::{shop::%location of event-block%}::%{shoptemp.%uuid of player%}%} with lore "8 Items for %{shopprice::%{shop::%location of event-block%}%::%location of event-block%} * 8%"
set slot 3 of {_buy.gui} to 32 of {shoptype::{shop::%location of event-block%}::%{shoptemp.%uuid of player%}%} with lore "32 Items for %{shopprice::%{shop::%location of event-block%}%::%location of event-block%} * 32%"
set slot 4 of {_buy.gui} to 64 of {shoptype::{shop::%location of event-block%}::%{shoptemp.%uuid of player%}%} with lore "128 Items for %{shopprice::%{shop::%location of event-block%}%::%location of event-block%} * 128%"
1710665699538.png
 
Last edited: