WoW:API GetNumQuestLogEntries: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{wowapi}}, format.)
Line 13: Line 13:


===Result===
===Result===
Displays the number of entries and quests in the quest log in the default chat frame.
Displays the number of entries and quests displayed in the quest log in the default chat frame.<br>
<b>Warning</b> - Collapsed quests are not counted (ie: if all headers are collapsed, numQuests will be zero)!

Revision as of 17:00, 6 June 2007

WoW API < GetNumQuestLogEntries

Returns the number of entries in the quest log.

numEntries, numQuests = GetNumQuestLogEntries();

Parameters

Returns

numEntries
Integer - Number of entries in the Quest Log (includes collapsable area grouping headlines).
numQuests
Integer - Number of actual quests.

Example

local numEntries, numQuests = GetNumQuestLogEntries()
DEFAULT_CHAT_FRAME:AddMessage(numEntries .. " entries containing " .. numQuests .. " quests in your quest log.");

Result

Displays the number of entries and quests displayed in the quest log in the default chat frame.
Warning - Collapsed quests are not counted (ie: if all headers are collapsed, numQuests will be zero)!