Solved Clicked Entity Inventory

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

xGrow

Member
Feb 26, 2017
10
1
0
I want loop all inventory of player what i clicked.
Like this:
code_language.skript:
on rightclick on a player:
    loop all items in the clicked entity inventory:
 
This will open up whatever is in the inventory of the clicked player in a chest, you could use format slot and set a variable to true and false when they close, format slot is fine for this. Should work fine, addons required are Skquery I believe.
code_language.skript:
on rightclick on a player:
    loop all items in clicked player's inventory:
        add loop-item to {items::%uuid of player%::*}
    open chest with 6 rows named "&c%clicked player%'s inv" to player
    set {_a} to 0
    loop {items::%uuid of player%::*}:
        format slot {_a} of player with loop-value to be unstealable
        add 1 to {_a}
on inventory close:
    clear {items::%uuid of player%::*}
 
format slot {_a} of player with loop-value to be unstealable
just no, please, use either set slot or TuSKe's GUI manager, here is a tutorial of the TuSKe's GUI manager which is very similar to the format slot (but not as buggy as the format slot).
 
just no, please, use either set slot or TuSKe's GUI manager, here is a tutorial of the TuSKe's GUI manager which is very similar to the format slot (but not as buggy as the format slot).
I never have gotten these bugs in my server with format slot, what happens with it that makes everyone hate it? It doesn't do anything odd for me ;c
 
Status
Not open for further replies.