get Item Space

Gets the remaining space in the specified slot.

agent.getItemSpace(1);

Parameters

  • slot: the slot index for which to count the remaining space, from 1 to 27, eg: 1

Example

Displays how much space is left in the agent’s second slot in the game chat.

player.say("" + agent.getItemSpace(2));

See Also

get-item-count