WoW API: GetTitleText

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetTitleText to API GetTitleText without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetTitleText

Description
When you select an NPC who offers a quest, you use this function
to obtain the quest name even before it is accepted
Example
function MesoonicUI_OnLoad()
this
RegisterEvent("QUEST_DETAIL")
end
function MesoonicUI_OnEvent()
if (event == "QUEST_DETAIL") then
MesoonicUI_DisplayQuestName()
end
end
function MesoonicUI_DisplayQuestName()
DEFAULT_CHAT_FRAME
AddMessage(GetTitleText())
end