WoW:API GetQuestLogTitle: Difference between revisions
Jump to navigation
Jump to search
(editet isComplete return value (based on QuestLogFrame.lua - L.177)) |
m ({{wowapi}}) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
Returns the string and other information which is associated with the specific QuestLog Title in the game. | Returns the string and other information which is associated with the specific QuestLog Title in the game. | ||
Line 35: | Line 34: | ||
;''Description'' | ;''Description'' | ||
: Returns the string which is associated with the specific QuestLog Title in the game. Also returns other information about a given quest such as what it's level is, completion status, whether it's a header and if so if it is collapsed. | : Returns the string which is associated with the specific QuestLog Title in the game. Also returns other information about a given quest such as what it's level is, completion status, whether it's a header and if so if it is collapsed. | ||
Revision as of 09:25, 18 June 2006
Returns the string and other information which is associated with the specific QuestLog Title in the game.
GetQuestLogTitle(questID);
- Arguments
- (Number questID)
- questID
- The quest number to get the title of
- Returns
- questTitle(String)
- The title of the quest
- level(Number)
- The level of the quest
- questTag(String)
- Should be "Elite" if it's an elite quest and nil otherwise
- isHeader(boolean)
- True if this quest is a header.
- isCollapsed(boolean)
- True if this quest is a header and is collapsed.
- isComplete(number)
- -1 if quest is (FAILED), +1 if quest is (COMPLETED), nil otherwise.
- Example
local questTitle = GetQuestLogTitle(1);
- Result
"Leprechaun Assault"
- Example from QuestLogFrame.lua
local questLogTitleText, level, questTag, isHeader, isCollapsed, isComplete = GetQuestLogTitle(questIndex);
- Description
- Returns the string which is associated with the specific QuestLog Title in the game. Also returns other information about a given quest such as what it's level is, completion status, whether it's a header and if so if it is collapsed.