How to find NPC IDs
Posted: Mon Jun 06, 2011 9:32 pm
Pulled from WoWWiki:
Simple script, point and shoot.
or the more verbose version:
Should be useful since all of the datamining has failed to turn up any of these new rares' names, much less IDs yet.
Well, when the servers come back up anyway.
Simple script, point and shoot.
Code: Select all
/run print("Target NPC ID:", tonumber((UnitGUID("target")):sub(-10, -7), 16))
Code: Select all
/run local a=strsub(UnitGUID("target"),7,10); print("NPC ID(\""..UnitName("target").."\") = 0x"..a.." = "..tonumber(a,16))
Well, when the servers come back up anyway.