Another beta vs PTR difference: getting npcID names
For years I've been getting the name of an npcID by doing this:
Code:
-- takes an npcID and returns the name of the npc On the beta this seems to drop the first line (the name) from the tooltip and leaves the rest; generally giving names like 'Master Pet Trainer' and such. It's does not appear to be a caching issue. Is this a bug or will it become the new normal? Have any methods been added to get the localized name of an npcID, or any that I've missed? This is (I hope!) a bug on the beta but I can't post to the official beta forums, and the 255-character limit is too small to explain this. It's incredibly frustrating. |
Quote:
It appears to be a bug and not intentional https://github.com/Stanzilla/WoWUIBugs/issues/297 |
Thanks. Fingers crossed that they fix it.
|
Btw you don't have to use tooltip. to get stuff like this you can just do something like
Not sure if this will work, but it should I think. I use the same thing to read tooltip text for SpellIDs Code:
local Hyperlink = C_TooltipInfo.GetHyperlink(format("unit:Creature-0-0-0-0-%d-0000000000", npcID)) Code:
for LineIndex = 1, #Lines do |
This appears fixed in today's beta build.
I'll look into C_Tooltip thanks. |
Looks like C_TooltipInfo isn't going live in prepatch
|
All times are GMT -6. The time now is 01:28 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI