Chest gui item exchange

  • 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!

vaxjo

Member
Dec 24, 2017
3
0
1
Hello,
I try to make i gui (Chest menu) with 3 rows.

When player put a items to this gui, and items have a lore Legendary, epic etc, i need to give player a essence (With command)
Anybody help me please ? :emoji_slight_smile: Thank you
 
code_language.skript:
command /menu:
    trigger:
        open chest with 3 rows named "somethings" to player
        while name of player's current inventory is "somethings":
            loop 3*9 times:
                if slot of loop-number -1 of player's current inventory isn't air:
                    if lore of slot of loop-number -1 of player's current inventory contains "Legendary", "Epic", "uncommon" or "commonn":
                        make console execute command "/doings execute"
                        set slot of loop-number -1 of player's current inventory to air
                        #If a Items with Lore that called "Legendary" etc. founded, Will execute a command then delete the item.
            wait a seconds#You can raise/Deraise


I'm no clue what you're trying, if you maybe telling more, what you're trying, may I can help difference. This is what i currently understand what you want.
 
I also have no idea what you mean by this to me it sounded like you were wanting a trade skript?