Gets the Id of the first NPC that is identified by the given name, if the NPC is rendered on the player's screen. Otherwise, returns -1.
The name of an NPC
The Id of the named NPC
id = osrs.ClientOp.getNpcIdByName("Emblem Trader")osrs.ClientOp.highlightNpcOn(id, osrs.ClientOp.npcCreationCycle(id), 6); Copy
id = osrs.ClientOp.getNpcIdByName("Emblem Trader")osrs.ClientOp.highlightNpcOn(id, osrs.ClientOp.npcCreationCycle(id), 6);
Gets the Id of the first NPC that is identified by the given name, if the NPC is rendered on the player's screen. Otherwise, returns -1.