Getting the UnitID of an unseen NPC.

Hey I was wondering if it was possible to get the UnitID of an NPC not currently visible to the player, what I am trying to do is create a frame and put the image of like any type of NPC inside that frame. I was wondering if that was possible.
Reply Quote
This is using;
Reply Quote
100 Dwarf Mage
If you want a 3D model, you may be able to use a PlayerModel frame and call :SetDisplayInfo with the displayID of the NPC you want to show.

You can figure out an NPC's displayID by going to the NPC's Wowhead page, viewing its source and searching that for "" (with that capitalisation). You should see something like this:onclick="this.blur();{ type: 1, typeId: 6466, displayId: 5205, humanoid: 1 })"

The number next to displayId is the displayID of the NPC (obviously).

I don't think you can do the same for a 2D portrait, since you need an actual unitID for that and these are the only valid unitIDs:
Reply Quote
Exactly what I was looking for, thank you so much!
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Explain (256 characters max)