Gets the total quantity of the specified item in the specified inventory.
Parameters
invId: number
id of the inventory to read from.
objId: number
id of the object to scan the inventory for.
Returns number
quantity of the item in the inventory.
Example
localBACKPACK = 93; localobjId = 1511; localquantity = osrs.ClientOp.invTotal(BACKPACK, objId) osrs.printf("Item id %d has a quantity of %d.", objId, tostring(quantity))
Gets the total quantity of the specified item in the specified inventory.