Thread: NPC Id
View Single Post
03/18/20, 08:33 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
I doubt there is a unique unitId for each NPC in the game.
At least it wasn't in the past afaik.

Most of the GetUnit... functions use the unitTag (no id) which is a string like
"player"
"group1" etc and only work for yourself or group/guild members.

e.g. GetUnitName("player") will return your own character's name.
But I doubt you can use GetUnitName(npc).
Maybe only if you move the mouse over it and use this code:
GetUnitNameHighlightedByReticle()

P.S.
The 8738 seems to be an internal ID used on the UESP website. Not sure if this is also an ID used within the ESO code somewhere.

Last edited by Baertram : 03/18/20 at 08:35 AM.
  Reply With Quote