API GetQuestsCompleted

From Wowpedia
Jump to: navigation, search

Returns a list of quests the character has completed in its lifetime.

questsCompleted = GetQuestsCompleted([table])

Arguments

table 
Table - If supplied, GetQuestsCompleted will add or replace keys in this table instead of creating a new table.

Returns

questsCompleted 
Table - The list of completed quests. For each completed quest, there will be a key equal to its id (as in a questString) with the value true. Other keys will be unchanged (if the table argument was supplied) or nil.

Example

local qc = GetQuestsCompleted()

Result

This is a fresh Draenei who has only completed two starter quests.

qc = {
    [9279] = true,  -- A IconSmall Draenei Male.gifIconSmall Draenei Female.gif [1] You Survived!
    [9280] = true,  -- A [1] Replenishing the Healing Crystals
    [9369] = true,  -- Non-draenei version of A [1] Replenishing the Healing Crystals
                    --   (not actually done by this character)
}

Details

  • A quest appears in the list only after it has been completed and turned in, not while it is in your log.
  • Completing certain quests can cause other quests (alternate versions, etc.) to appear completed also.
  • Some quests are invisible. These quests are not offered to players but suddenly become "completed" due to some other in-game occurrence.
  • Daily quests appear completed only if they have been completed that day.

Patch history

Mists of Pandaria Patch 5.0.4 (2012-08-28): No longer requires QueryQuestsCompleted to be called before.
Wrath of the Lich King Patch 3.3.0 (2009-12-08): Added.

See also