Get NPC Name
I'm looking through the API and I'm trying to figure out if there's a way to get the in-game name of a character in game, specifically, a hunter pet. I have found options to get the unit name, but those return the name of the pet (the name the hunter gave the pet). I am interested in getting the in-game name. The name before the pet was tamed.
I would like to have it return "King Krush" instead of "Bigreendino". I've checked through the Pet and Unit APIs and nothing is standing out for me.
There's nothing that can do that for you.
The best you could do is have a pre-defined list of models associated with NPC names, then match the models with the pets'. Not as accurate, and you'll end up with multiples, but it'd work.
The npc id is the 5th value in the pet guid
I think in bfa they added some new systems to query npc info, if not you can resolve the name through scraping a tooltip.
|All times are GMT -6. The time now is 02:29 PM.|
vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI