OSRS Plugin API
    Preparing search index...

    Function npcTypeId

    • Gets the type of of the npc.

      Parameters

      • npcId: number

        the id of the npc.

      Returns number

      the type of the specified npc.

      -- Highlights all types in the area
      idList = osrs.ClientOp.getNpcIdAll()
      for index, id in pairs(idList) do
      osrs.ClientOp.highlightNpcTypeOn(osrs.ClientOp.npcTypeId(id), 12)
      end