Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns a list of available quests from a gossip NPC. For getting the number of available quests from a non-gossip NPC see GetNumAvailableQuests.
title1, level1, isTrivial1, frequency1, isRepeatable1, isLegendary1, isIgnored1, title2, ... = GetGossipAvailableQuests()
Returns[]
The following seven return values are provided for each quest offered by the NPC:
- title
- string - The name of the quest.
- level
- number - The level of the quest.
- isTrivial
- boolean - true if the quest is trivial (too low-level compared to the character), false otherwise.
- frequency
- number - 1 if the quest is a normal quest,
LE_QUEST_FREQUENCY_DAILY
(2) for daily quests,LE_QUEST_FREQUENCY_WEEKLY
(3) for weekly quests. - isRepeatable
- boolean - true if the quest is repeatable, false otherwise.
- isLegendary
- boolean - true if the quest is a legendary quest, false otherwise.
- isIgnored
- boolean - true if the quest has been ignored, false otherwise.
Details[]
- Available quests are quests that the player does not yet have in their quest log.
- This list is available after GOSSIP_SHOW has fired.
Patch changes[]
Patch 8.2.5 (2019-09-24): Added questID
return value.[1]
Patch 7.0.3 (2016-07-19): Added isIgnored
return value.[2]
Patch 6.0.2 (2014-10-14): Changed boolean returns from 1/nil to true/false.[citation needed] Changed isDaily
return value to frequency
.[3]
Patch 5.0.4 (2012-08-28): Added isLegendary
return value.[4]
See also[]
References[]
- ^ 2019-09-24, GossipFrame.lua, 138, and 144 version 8.2.5.31960, near line 20, 138, and 144, archived at Townlong-Yak
- ^ 2016-07-19, GossipFrame.lua, version 7.0.3.22267, near line 83, archived at Townlong-Yak
- ^ 2014-10-14, GossipFrame.lua, version 6.0.2.19033, near line 86, archived at Townlong-Yak
- ^ 2012-08-21, GossipFrame.lua, version 5.0.4.16016, near line 78, archived at Townlong-Yak