OSRS Plugin API
    Preparing search index...

    Function getNpcObj

    • Creates a LuaNpc with the given NPC ID.

      Parameters

      • id: number

        ID of the NPC.

      Returns Npc

      A LuaNpc based on the given ID.

      id = osrs.ClientOp.getNpcIdByName("Emblem Trader")
      npc = osrs.ClientOp.getNpcObj(id)