WoW:API GetTitleText: Difference between revisions
Jump to navigation
Jump to search
(Name of Quest being offered by currently selected NPC) |
mNo edit summary |
||
Line 16: | Line 16: | ||
;:DEFAULT_CHAT_FRAME:AddMessage(GetTitleText()) | ;:DEFAULT_CHAT_FRAME:AddMessage(GetTitleText()) | ||
;end | ;end | ||
[[Category:API Functions|GetTitleText]] | |||
[[Category:API Quest Functions|GetTitleText]] |
Revision as of 18:56, 27 August 2005
--Mesoonic 05:51, 24 Mar 2005 (EST)
- Description
- When uou 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