How to find NPC IDs

Read-only since Patch 4.2 is now live.
User avatar
Fafnir
Journeyman Hunter
Journeyman Hunter
Posts: 166
Joined: Fri Dec 03, 2010 4:59 am

How to find NPC IDs

Unread post 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.
Last edited by Fafnir on Tue Jun 07, 2011 3:55 am, edited 1 time in total.
Image
User avatar
Aeladrine
Grand Master Hunter
Grand Master Hunter
Posts: 2803
Joined: Thu Jul 01, 2010 10:06 pm
Realm: Frostwolf, Blackwater Raiders
Gender: Female
Location: Tumblr, probably.
Contact:

Re: How to find NPC IDs

Unread post by Aeladrine »

Or you could just look it up on WoWhead. The four numbers at the end of the url are the NPC ID.(:
• Aela's Pet Journal

Image
Totally fantastic avatars and signatures by Sookie, Nili, Serenith, and Kurenio.
Tumblr || Deviantart || WoW RP Blog

User avatar
Fafnir
Journeyman Hunter
Journeyman Hunter
Posts: 166
Joined: Fri Dec 03, 2010 4:59 am

Re: How to find NPC IDs

Unread post 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.
Image
Locked