get Item Detail

Gets the ID of the item in the specified inventory slot of the agent.

agent.getItemDetail(1);

Parameters

  • slot: the slot index for which to return the item info, from 1 to 27, eg: 1

Example

Displays the item ID from the agent’s second slot in the game chat.

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