WoW:API GetNumQuestLogEntries: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
({{wowapi}}, format.)
Line 1: Line 1:
<center>'''GetNumQuestLogEntries'''</center>
{{wowapi}} __NOTOC__
 
Returns the number of entries in the quest log.
Returns the number of entries in the quest log.
numEntries, numQuests = GetNumQuestLogEntries();


GetNumQuestLogEntries();
==Parameters==
 
===Returns===
----
:;numEntries: Integer - Number of entries in the Quest Log (includes collapsable area grouping headlines).
;''Arguments''
:;numQuests: Integer - Number of actual quests.
 
:''none''
 
----
;''Returns''
 
:Number numEntries
 
:;numEntries: Number of entries in the Quest Log (includes collapsable area grouping headlines).


:Number numQuests
==Example ==
 
:;numQuests: Number of actual quests.
 
----
;''Example''
  local numEntries, numQuests = GetNumQuestLogEntries()
  local numEntries, numQuests = GetNumQuestLogEntries()
DEFAULT_CHAT_FRAME:AddMessage(numEntries .. " entries containing " .. numQuests .. " quests in your quest log.");


----
===Result===
;''Description''
Displays the number of entries and quests in the quest log in the default chat frame.
 
: Returns the number of entries in the quest log.
 
----
{{WoW API}}

Revision as of 17:21, 23 December 2006

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 in the quest log in the default chat frame.