05-29-2013, 05:01 AM
Something like this? I'm realy bad in creating such posts ;(
LuaWindow
MCServer needs a class open for lua that allows them to create custom windows. For example if you use a command that it will open a window with 9 slots or something. This is the idea i have on how to work with it in Lua but i have no idea if it is possible:
Then with the use of a hook, the plugin should know what item the player clicked on.
LuaWindow
MCServer needs a class open for lua that allows them to create custom windows. For example if you use a command that it will open a window with 9 slots or something. This is the idea i have on how to work with it in Lua but i have no idea if it is possible:
function HandleCommand( Split, Player ) Window = cLuaWindow() Window:Create( 9 ) -- Create a window with 9 slots. Item = cItem( E_BLOCK_DEAD_BUSH, 1, 0, 0 ) -- Create a item. It's just an example <-- Window:SetSlot( 1, Item ) -- Set the first slot to the Item /\ Player:OpenWindow( Window ) -- Send the window to the player and let him open it || end
Then with the use of a hook, the plugin should know what item the player clicked on.