#(mrskeleton) Inventory slots in event

20 messages · Page 1 of 1 (latest)

old arrow
#

Hello. I'm trying to make chest menu. I found "slot:" switch in inventory click event but can't understand how to use it.
I've tried "on player clicks in server_menu slot:7:", but it's triggering on both inventory clicks: player and custom.
How to use it properly?

https://paste.denizenscript.com/View/114751

slow fulcrumBOT
#

(mrskeleton) Inventory slots in event

slow fulcrumBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

slate nymph
#

Check if the clicked inventory is the correct one

#

or provide more info so we can give you a more specific answer

old arrow
slate nymph
#

What's the purpose of this inventory

old arrow
#

chestgui

#

many servers has it

slate nymph
#

Nice, so put items to click in them right

#

You can flag these items and have a item_flagged: matcher in your event line where item goes

#

And a single event which checks the flag on the items

#

and depending on what flags value they have you're doing different things!

old arrow
#

I thought not to use items, to save vanilla look

#

Only font

craggy quiver
#

you could do - if <context.clicked_inventory> != <player.inventory> that would make the code only work when the clicked inventory is the gui

storm wingBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@old arrow