Blockland Forums > Modification Help
Inventory Commands
<< < (2/3) > >>
Slicksilver:

--- Quote from: phflack on December 30, 2011, 01:02:56 AM ---hmm, the annoyance of making client mods is that i can't do everything the server can :I

--- End quote ---
Is there something specific you're trying to do? Since you're a bro, message me on RTB if you need any help.
phflack:
i just need a way to find which slot is currently active, and what is in the active slot, that's really about it
Port:
Well, serverCmdUseTool( client, slot ) is sent to the server every time the client wishes to change to another inventory slot. You could simply save a variable every time the client sends this (doing some if checks to make sure that they should be sending that first of course). I don't remember if there is already a default variable specifying the currently active slot, but at least the previously mentioned method would work.

client.currTool, I believe. And also: client.slot[ client.currTool ].
phflack:
wouldn't those be server sided though?
Port:
HUD_ToolName.getValue() - name of current item
getWord(HUD_ToolActive.position, 1) / 64 - index of current item (starting from 0)
Navigation
Message Index
Next page
Previous page

Go to full version