Page 1 of 1

How to find NPC IDs

Posted: Mon Jun 06, 2011 9:32 pm
by Fafnir
Pulled from WoWWiki:

Simple script, point and shoot.

Code: Select all

/run print("Target NPC ID:", tonumber((UnitGUID("target")):sub(-10, -7), 16))
or the more verbose version:

Code: Select all

/run local a=strsub(UnitGUID("target"),7,10); print("NPC ID(\""..UnitName("target").."\") = 0x"..a.." = "..tonumber(a,16))
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.

Re: How to find NPC IDs

Posted: Mon Jun 06, 2011 9:34 pm
by Aeladrine
Or you could just look it up on WoWhead. The four numbers at the end of the url are the NPC ID.(:

Re: How to find NPC IDs

Posted: Mon Jun 06, 2011 9:41 pm
by Fafnir
Except that I haven't seen any of the eight on Wowhead except for their abilities, in the PTR section of course. Not terribly useful for scanning for them.