Lore archive · Warcraft Wiki, 2023 dump
API GetQuestsCompleted
Last wiki revision 2022-08-01
Returns a list of quests the character has completed in its lifetime. questsCompleted = GetQuestsCompleted([table])
- table: - If supplied, fills this table with quests. Any other keys will be unchanged.
- questsCompleted: - The list of completed quests, keyed by quest IDs.
- 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.
- Pet Battle quests are account-wide and will be returned from this API across all characters. They can be discerned with tagID 102.
Prints completed questIds and their names (quest data gets cached from the server after the first query) for id in pairs(GetQuestsCompleted) do local name = C_QuestLog.GetQuestInfo(id) print(id, name) end
For a fresh Human Priest who only completed two starter quests: Beating Them Back! (28763) and Lions for Lambs (28771) /dump GetQuestsCompleted
{ [28757] = true, -- "Beating Them Back!" -- Mage [28762] = true, -- "Beating Them Back!" -- Paladin [28763] = true, -- "Beating Them Back!" -- Priest [28764] = true, -- "Beating Them Back!" -- Rogue [28765] = true, -- "Beating Them Back!" -- Warlock [28766] = true, -- "Beating Them Back!" -- Warrior [28767] = true, -- "Beating Them Back!" -- Hunter [29078] = true, -- "Beating Them Back!" -- unknown [31139] = true, -- "Beating Them Back!" -- Monk [28759] = true, -- "Lions for Lambs" [28769] = true, -- "Lions for Lambs" [28770] = true, -- "Lions for Lambs" [28771] = true, -- "Lions for Lambs" -- Priest [28772] = true, -- "Lions for Lambs" [28773] = true, -- "Lions for Lambs" [28774] = true, -- "Lions for Lambs" [29079] = true, -- "Lions for Lambs" [31140] = true, -- "Lions for Lambs" }
Source
https://warcraft.wiki.gg/wiki/API_GetQuestsCompleted · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.