I'm trying to learn how to place a stockpile of items at the ground when something is placed in character's hand and his inventory is full.
So I've tried to do the next :
- Code: Select all
if (inventory.isFull() && getItemInHand() != null)
gui.map.wdgmsg("place", Coord.z, coordsToPlace, 3, 0, 0);
also I've tried to imitate a RMB click at the coordsToPlace and then a combination of SHIFT+LMB, but it still doesn't work.
If somebody know how to do it properly, I'll be very grateful.