Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns information about a quest in your quest log.
title, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, questID, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isBounty, isStory, isHidden, isScaling = GetQuestLogTitle(questLogIndex)
Arguments[]
- questLogIndex
- number - The index of the quest you wish to get information about, between 1 and GetNumQuestLogEntries()'s first return value.
Returns[]
- title
- string - The title of the quest, or nil if the index is out of range.
- level
- number - The level of the quest.
- suggestedGroup
- number - If the quest is designed for more than one player, it is the number of players suggested to complete the quest. Otherwise, it is 0.
- isHeader
- boolean - true if the entry is a header, false otherwise.
- isCollapsed
- boolean - true if the entry is a collapsed header, false otherwise.
- isComplete
- number - 1 if the quest is completed, -1 if the quest is failed, nil otherwise.
- frequency
- number - 1 if the quest is a normal quest,
LE_QUEST_FREQUENCY_DAILY
(2) for daily quests,LE_QUEST_FREQUENCY_WEEKLY
(3) for weekly quests. - questID
- number - The quest identification number. This is the number found in GetQuestsCompleted() after it has been completed. It is also the number used to identify quests on sites such as Wowhead.com (Example: Rest and Relaxation)
- startEvent
- boolean - ?
- displayQuestID
- boolean - true if the
questID
is displayed before the title, false otherwise. - isOnMap
- boolean - ?
- hasLocalPOI
- boolean - ?
- isTask
- boolean - ?
- isBounty
- boolean - ? (true for Legion World Quests; is it true for other WQs?)
- isStory
- boolean - ?
- isHidden
- boolean - true if the quest is not visible inside the player's quest log.
- isScaling
- boolean - ?
Example[]
local i = 1 while GetQuestLogTitle(i) do local title, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, questID, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isBounty, isStory, isHidden, isScaling = GetQuestLogTitle(i) if ( not isHeader ) then DEFAULT_CHAT_FRAME:AddMessage(title .. " [" .. level .. "] " .. questID) end i = i + 1 end
Result[]
Prints the name, level, and Quest ID of all quests in your quest log.
Patch changes[]
Patch 7.0.3 (2016-07-19): Added the 'isBounty' return.
Patch 6.0.2 (2014-10-14): Removed returns 'questTag' and 'isDaily'. Added returns 'frequency', 'isOnMap', 'hasLocalPOI', 'isTask', and 'isStory'.
Patch 3.3.0 (2009-12-08): Added the 'questID' return.
Patch 2.1.0 (2007-05-22): Added the 'isDaily' return.
Patch 2.0.3 (2007-01-09): Added the 'suggestedGroup' return.