OSRS Plugin API
    Preparing search index...

    Function npcName

    • Gets the name of the npc identified by the provided id.

      Parameters

      • npcId: number

        id of the npc.

      Returns string

      name of the specified npc.

      id = osrs.ClientOp.getNpcIdByName("Emblem Trader");
      osrs.printf("The name of the npc is %s", osrs.ClientOp.npcName(id))