Thread Tools Display Modes
09-28-18, 03:54 PM   #1
MuffinManKen
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 106
Trouble getting some localized quest names

I need to show localized Quest Names in MuffinFactionizer. To get the name I first try using C_QuestLog.GetQuestInfo and if that fails I use the "scanning tooltip" method. GetQuestInfo works very well and I assume it had better performance than the tooltip scanning. I still can't get the name of some quests.

For example: quest id 52348 (Work Order: Mon'Dazi). WoWHead says the quest exists. The Battle.net web api says it exists. I'm pretty sure I've done it since I have 3 stars on that recipe, but I don't get a name back from this process. Other, similar WQs, do return a name.

I expect that some times there will be a delay in retrieving the data but I don't get back the "retrieving data" string and checking again over the course of many minutes doesn't change the result.

Does anyone have any idea why I'm seeing this behaviour?

For reference, run this using WoWLua and most will have a name.
Lua Code:
  1. MFQIDS = {52344, 52345, 52346, 52348, 52349, 52350, 52351, 52393, 52394}
  2.  
  3. for k,v in ipairs(MFQIDS) do
  4.    local quest_name = C_QuestLog.GetQuestInfo(v)
  5.    print(v, quest_name)
  6. end
  Reply With Quote
09-28-18, 05:21 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Have you tried this one ?

C_TaskQuest.GetQuestInfoByQuestID(qid)

You get the questName and factionID in it's first 2 returns.

It's specifically for World Quests I think.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
09-28-18, 06:54 PM   #3
MuffinManKen
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 106
Originally Posted by Xrystal View Post
Have you tried this one ?

C_TaskQuest.GetQuestInfoByQuestID(qid)

You get the questName and factionID in it's first 2 returns.

It's specifically for World Quests I think.
It works! Thank you!

I don't know *why* the other methods work for 95% of the World Quests and not these few, but I guess I'll just chalk it up to unknowable Blizzard black magic and move on.

Thanks again.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Trouble getting some localized quest names


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off