What can i do so i can open another chest with in a skript

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

Carlos Badillo

New Member
Apr 17, 2017
6
0
0
Im not looking for other information on what else i can add to make the skript much more easier. All i am looking for is how i can open another chest from the main code i posted below.

code_language.skript:
            format slot 53 of player with gray dye named "&8&lPARDONS" with lore "&7Here you can pardon players||&7for talking to much||&7or has been ban or perm ban." to be unstealable
#End of [Pardons, UnMute, IPUnBan, UnWarn]


#test opening 2 chest in one chest
on inventory click:
    if inventory name of player's current inventory is "&8Punishing user &2&l%arg-1%":
        cancel event
        if clicked slot is 53:
            wait 1 tick
            open chest with 1 rows named "&8Punishing user &2&l%arg-1%" to player
 
Just close the player's inventory and open it again like you did.

add after if clicked slot is 53: close player's inventory
 
I tried to add it but nothing comes up with it
[doublepost=1508414158,1508394522][/doublepost]Heres what i put
code_language.skript:
            format slot 53 of player with gray dye named "&8&lPARDONS" with lore "&7Here you can pardon players||&7for talking to much||&7or has been ban or perm ban." to be unstealable
#End of [Pardons, UnMute, IPUnBan, UnWarn]
 
 
#test opening 2 chest in one chest
on inventory click:
    if inventory name of player's current inventory is "&8Punishing user &2&l%arg-1%":
        cancel event
        if clicked slot is 53:
            close player's inventory
            wait 1 tick
            open chest with 1 rows named "&8Punishing user &2&l%arg-1%" to player
 
Maybe its just shit skquery (Format slot).... Maybe you should start to begin to learn TuSKE or Skellett/Skript
 
Status
Not open for further replies.