View Single Post
04-07-24, 07:42 AM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,943
Also, you could forego on the localization of the quest name as you could use the following :

C_QuestLog.GetTitleForQuestID(questID)

https://warcraft.wiki.gg/wiki/API_C_...itleForQuestID - Includes Example Code


Or a combination of :
C_QuestLog.RequestLoadQuestByID(questID) and monitoring QUEST_DATA_LOAD_RESULT event for quest data access if it wasn't available before.

https://warcraft.wiki.gg/wiki/API_C_...tLoadQuestByID
https://warcraft.wiki.gg/wiki/QUEST_DATA_LOAD_RESULT


Or like I did, use the QUEST_ACCEPTED part to access the quest info at the point it becomes available to you. It all depends on how your addon is supposed to work.

I would suspect that the name of the quest would be automatically localized - similar to spell names and professions etc.
__________________


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