OSRS Plugin API
    Preparing search index...

    Function invGetObjId

    • Gets the item id of the item in the specified slot of the specified inventory.

      Parameters

      • invId: number

        id of the inventory to read the slot from.

      • slot: number

        index of the slot in the inventory to read.

      Returns number

      id of the item currently in the slot. -1 if none.

      local item = osrs.ClientOp.invGetObjId(93, 1);
      osrs.print(osrs.ClientOp.ocName(item));