Gets the number of slots in the specified inventory.
id of the inventory to read.
number of slots in the specified inventory.
local BACKPACK = 93;local size = osrs.ClientOp.invSize(BACKPACK);for i=0, size-1, 1 do local id = osrs.ClientOp.invGetObjId(BACKPACK, i) osrs.printf("Slot %d contains the item: %s", i, osrs.ClientOp.ocName(id))end Copy
local BACKPACK = 93;local size = osrs.ClientOp.invSize(BACKPACK);for i=0, size-1, 1 do local id = osrs.ClientOp.invGetObjId(BACKPACK, i) osrs.printf("Slot %d contains the item: %s", i, osrs.ClientOp.ocName(id))end
Gets the number of slots in the specified inventory.