Solved Custom Menu Glitch

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

Status
Not open for further replies.

Lolinator

Member
Mar 2, 2017
4
1
3
SOLVED - Just redid the inventory with TuSKe. But that created a new problem. xP

So basically, when I use a GUI, you can exit before it is done and it will fill your inventory with the rest of the items. This is pretty game-breaking so I would like to know if anyone else has had this problem and/or knows a fix.

*This skript isn't initally by me. I am just editing it to my own*

Video: (Ignore my friends. :emoji_stuck_out_tongue: They are playing Leauge)

Skript:
code_language.skript:
#Buycraft Menu
command /buy:
    trigger:
        wait 1 tick
        open chest with 5 rows named "@l{@Name} {@SecondaryColor}>> {@MainColor}&lDonation Ranks!" to player
        wait 1 tick
        format slot 0 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 1 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 2 of player with {@SecondaryGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 3 of player with {@SecondaryGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 4 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 5 of player with {@SecondaryGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 6 of player with {@SecondaryGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 7 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 8 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 9 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 17 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 18 of player with {@SecondaryGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 20 of player with book named "&cTest" with lore "&cLore" to run [make player execute command "/apply"]
        wait 1 tick
        format slot 22 of player with book named "&cTest" with lore "&cLore" to run [make player execute command "/apply"]
        wait 1 tick
        format slot 24 of player with book named "&cTest" with lore "&cLore" to run [make player execute command "/apply"]
        wait 1 tick
        format slot 26 of player with {@SecondaryGlassColor} named "&a" to be unstealable         
        wait 1 tick
        format slot 27 of player with {@MainGlassColor} named "&a" to be unstealable 
        wait 1 tick
        format slot 35 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 36 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 37 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 38 of player with {@SecondaryGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 39 of player with {@SecondaryGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 40 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 41 of player with {@SecondaryGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 42 of player with {@SecondaryGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 43 of player with {@MainGlassColor} named "&a" to be unstealable
        wait 1 tick
        format slot 44 of player with {@MainGlassColor} named "&a" to be unstealable
 
Last edited:
Status
Not open for further replies.