WoW:API GetNumQuestLogEntries: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API GetNumQuestLogEntries to API GetNumQuestLogEntries without leaving a redirect) |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Returns the number of entries in the quest log. | 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. | |||
:;numEntries: Number of entries in the Quest Log (includes collapsable area grouping headlines). | |||
==Example == | |||
local numEntries, numQuests = GetNumQuestLogEntries() | local numEntries, numQuests = GetNumQuestLogEntries() | ||
DEFAULT_CHAT_FRAME:AddMessage(numEntries .. " entries containing " .. numQuests .. " quests in your quest log."); | |||
===Result=== | |||
Displays the number of visible entries (headers and non-collapsed quests) in the quest log and quest count total to the default chat frame.<br> | |||
<b>Warning</b> - numEntries does not count collapsed quests, ie. if all headers are collapsed, numEntries will be zero! numQuests returns the number of quests in the quest log whether they are collapsed or not. | |||
- | |||
Latest revision as of 04:46, 15 August 2023
← WoW API < GetNumQuestLogEntries
Returns the number of entries in the quest log.
numEntries, numQuests = GetNumQuestLogEntries();
Parameters[edit]
Returns[edit]
- numEntries
- Integer - Number of entries in the Quest Log (includes collapsable area grouping headlines).
- numQuests
- Integer - Number of actual quests.
Example[edit]
local numEntries, numQuests = GetNumQuestLogEntries() DEFAULT_CHAT_FRAME:AddMessage(numEntries .. " entries containing " .. numQuests .. " quests in your quest log.");
Result[edit]
Displays the number of visible entries (headers and non-collapsed quests) in the quest log and quest count total to the default chat frame.
Warning - numEntries does not count collapsed quests, ie. if all headers are collapsed, numEntries will be zero! numQuests returns the number of quests in the quest log whether they are collapsed or not.