NPC ID macro for Mists

User avatar
Wain
The Insane
The Insane
Posts: 13515
Joined: Tue Jul 27, 2010 1:54 am
Gender: Male

NPC ID macro for Mists

Unread post by Wain »

The macro you need to determine the NPC id of something has changed a little in Mists.

I noticed that the old macro was working for most NPCs, but for others it was giving absurdly low numbers. It appears that they've added an extra digit to the hex string as the ID numbers have rolled over. The macro that seems to work for me now, for old and new beasts is:

/run print("Target NPC ID:", tonumber((UnitGUID("target")):sub(-13, -9), 16))
Shaman avatar by Spiritbinder.
Locked