OSRS Plugin API
    Preparing search index...

    Function getNpcIdAll

    • Gets the NPC Ids of all NPCs rendered on the screen.

      Returns number[]

      table of ids for all NPCs on-screen.

      -- Get a list of all of the npc id's that are on screen 
      idList = osrs.ClientOp.getNpcIdAll()

      -- Print the name of all of the npc's using their ids
      for index, id in pairs(idList) do
      osrs.print(osrs.ClientOp.npcName(id))
      end