Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
It is possible, although not too comfortable, to interact with the UI in the plugins - you can catch the PLAYER_USING_BLOCK hook and let it cancel the action, then let it simulate the chest opening by itself - Lua can open any kind of UI window with any items, using the cLuaWindow class. That one provides the callbacks you need that MCS calls when the player clicks inside the window.
Posts: 372
Threads: 29
Joined: Mar 2011
Thanks: 1
Given 21 thank(s) in 18 post(s)
Seadragon nah just updating, and going to set it up on different port.
Should have time tomorrow to finish it up.
Posts: 513
Threads: 10
Joined: May 2014
Thanks: 138
Given 89 thank(s) in 75 post(s)
07-23-2014, 06:37 AM
(This post was last modified: 07-23-2014, 06:38 AM by Seadragon91.)
Okay haven't found a nice way for creating a inventory for challenges. Have tought and tried a few different ideas, but the main problem is to disallow the player to take the items out, there I haven't found any way.
Will need to wait for a hook, where I can get the player and cancel the event.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
Whaaaa? What happened? So sudden!