v0.13.8

C_QuestLog

namespaceavailable in: camelot

Status in wowlua

93 functions: 25 implemented, 5 recorded, 63 guessed. 17 events, 11 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AbandonQuestAbandons the quest specified by C_QuestLog.SetAbandonQuest.
()
guessed
AddQuestWatchTracks a quest.
(questID: number): boolean
guessed
AddWorldQuestWatchTracks a world quest.
(questID: number, watchType: QuestWatchType?): boolean
guessed
CanAbandonQuestReturns whether the player can abandon a specific quest.
(questID: number): boolean
implemented
DoesQuestAwardReputationWithFactionWhether the quest rewards reputation with the given faction. · by wowlua
(questID: number, targetFactionID: number): boolean
guessed
GetAbandonQuestReturns the quest specified by C_QuestLog.SetAbandonQuest.
(): number
guessed
GetAbandonQuestItemsReturns the IDs of the items removed when the quest set to be abandoned is abandoned, or nil when there are none. · by wowlua
(): number[]?
guessed
GetActivePreyQuestReturns the ID of the player's active prey quest, or nil when there is none. · by wowlua
(): number?
guessed
GetActiveThreatMapsReturns the IDs of the maps with active threats, or nil when there are none. · by wowlua
(): number[]?
implemented
GetAllCompletedQuestIDsReturns all completed quests for the character.
(): number[]
guessed
GetBountiesForMapIDReturns the bounties (emissary quests) available on the given map, or nil when there are none. · by wowlua
(uiMapID: number): BountyInfo[]?
implemented
GetBountySetInfoForMapIDReturns the bounty set for a specified map ID.
(uiMapID: number): (MapOverlayDisplayLocation?, number?, number?, boolean?)
implemented
GetDistanceSqToQuestReturns the distance to a quest.
(questID: number): (number?, boolean?)
guessed
GetHeaderIndexForQuestReturns the quest log index of the header a quest is listed under, or nil when there is none. · by wowlua
(questID: number): number?
guessed
GetInfoReturns information about a quest in the player's quest log.
(questLogIndex: number): QuestInfo?
implemented
GetLogIndexForQuestIDReturns the quest log index for a quest ID.
(questID: number): number?
implemented
GetMapForQuestPOIsReturns the ID of the map whose quest points of interest are loaded, as set by C_QuestLog.SetMapForQuestPOIs; 0 before one is set. · by wowlua
(): number
guessed
GetMaxNumQuestsThis is the maximum number of quests a player can be on, including hidden quests, world quests, emissaries etc
(): number
recorded
GetMaxNumQuestsCanAcceptThis is the maximum number of standard quests a player can accept. These are quests that are normally visible in the quest log.
(): number
guessed
GetNextWaypointReturns the map ID and position of a quest's next waypoint, or nil when it has none. · by wowlua
(questID: number): (number?, number?, number?)
guessed
GetNextWaypointForMapReturns the position of a quest's next waypoint on the given map, or nil when it has none there. · by wowlua
(questID: number, uiMapID: number): (number?, number?)
guessed
GetNextWaypointTextReturns the text describing a quest's next waypoint, or nil when it has none. · by wowlua
(questID: number): string?
implemented
GetNumQuestLogEntriesReturns the number of entries in the quest log.
(): (number, number)
implemented
GetNumQuestObjectivesReturns how many objectives a quest in the player's log has. · by wowlua
(questID: number): number
guessed
GetNumQuestWatchesReturns the number of tracked quests.
(): number
implemented
GetNumWorldQuestWatchesReplaces GetNumWorldQuestWatches.
(): number
recorded
GetQuestAdditionalHighlightsReturns the map and the kinds of map icons (world quests, elite world quests, dungeons, treasures) to highlight for a quest. · by wowlua
(questID: number): (number, boolean, boolean, boolean, boolean)
guessed
GetQuestDetailsThemeReturns the visual QuestTheme associated with a given quest.
(questID: number): QuestTheme?
implemented
GetQuestDifficultyLevelReturns the level the quest's difficulty is measured against. · by wowlua
(questID: number): number
implemented
GetQuestIDForLogIndexOnly returns a questID for actual quests, not headers
(questLogIndex: number): number?
implemented
GetQuestIDForQuestWatchIndexReturns the quest ID represented by the given quest watch index.
(questWatchIndex: number): number?
implemented
GetQuestIDForWorldQuestWatchIndexReturns the quest ID represented by the given quest watch index.
(questWatchIndex: number): number?
guessed
GetQuestLogMajorFactionReputationRewardsReturns the renown reputation a quest in the log rewards, or nil when there is none. · by wowlua
(questID: number): QuestRewardReputationInfo[]?
guessed
GetQuestLogPortraitGiverReturns the portrait shown beside a quest in the log: the giver's display ID, text, name, mount and model scene. · by wowlua
(questLogIndex: number?): (number?, string?, string?, number?, number?)
guessed
GetQuestObjectivesReturns info for the objectives of a quest.
(questID: number): QuestObjectiveInfo[]?
implemented
GetQuestRewardCurrenciesReturns the currencies a quest rewards. · by wowlua
(questID: number): QuestRewardCurrencyInfo[]
guessed
GetQuestRewardCurrencyInfoReturns a currency a quest rewards, or nil when there is none at that index. · by wowlua
(questID: number, currencyIndex: number, isChoice: boolean): QuestRewardCurrencyInfo?
guessed
GetQuestTagInfoReturns metadata for a quest.
(questID: number): QuestTagInfo?
implemented
GetQuestTimersReturns the timers of the timed quests in the player's log. · by wowlua
(): QuestTimerInfo[]
recorded
GetQuestTypeReturns the quest's type, 0 for a quest of no type, or nil for an unknown quest. · by wowlua
(questID: number): number?
guessed
GetQuestWatchTypeReturns the watchType associated with a given quest.
(questID: number): QuestWatchType?
implemented
GetQuestsOnMapReturns the quests in the player's log that are shown on the given map, with their positions. · by wowlua
(uiMapID: number): QuestPOIMapInfo[]?
guessed
GetRequiredMoneyReturns the amount of money required for quest completion.
(questID: number?): number
guessed
GetSelectedQuestReturns the quest specified by C_QuestLog.SetSelectedQuest.
(): number
implemented
GetSuggestedGroupSizeReturns the suggested number of players for a quest.
(questID: number): number
guessed
GetTimeAllowedReturns the time available to complete a quest.
(questID: number): (number?, number?)
implemented
GetTitleForLogIndexReturns a valid title for anything that is in the quest log.
(questLogIndex: number): string?
guessed
GetTitleForQuestIDReturns the name for a Quest ID.
(questID: number): string?
implemented
GetTrivialRangeReturns how many levels below the player a quest or creature turns grey (trivial). · by wowlua
(): number
guessed
GetZoneStoryInfoReturns the achievement ID and map ID of a zone's story, or nil when it has none. · by wowlua
(uiMapID: number): (number?, number?)
implemented
HasActiveThreatsWhether there are active threats in the world. · by wowlua
(): boolean
recorded
IsAccountQuestReturns true if the specified quest is an account-wide quest.
(questID: number): boolean
guessed
IsCompleteReturns whether the supplied quest in the quest log is complete.
(questID: number): boolean
implemented
IsEliteQuestWhether the quest is an elite quest. · by wowlua
(questID: number): boolean
implemented
IsFailedReturns true if the specified quest has been failed.
(questID: number): boolean
implemented
IsImportantQuestWhether the quest is marked as important. · by wowlua
(questID: number): boolean
guessed
IsMetaQuestWhether the quest is a meta quest, completed by finishing other quests. · by wowlua
(questID: number): boolean
guessed
IsOnMapReturns true if the specified quest is on the map, and whether or not it has any local PoIs.
(questID: number): (boolean, boolean)
guessed
IsOnQuestWhether the quest is in the player's quest log. · by wowlua
(questID: number): boolean
guessed
IsPushableQuestReturns true if the quest can be shared with other players.
(questID: number): boolean
recorded
IsQuestBountyReplaces IsQuestBounty.
(questID: number): boolean
guessed
IsQuestCallingReturns true if the specified quest is a calling quest.
(questID: number): boolean
guessed
IsQuestCriteriaForBountyReplaces IsQuestCriteriaForBounty.
(questID: number, bountyQuestID: number): boolean
guessed
IsQuestDisabledForSessionWhether the quest is disabled during the current Party Sync session. · by wowlua
(questID: number): boolean
implemented
IsQuestFlaggedCompletedReturns if a quest has been completed.
(questID: number): boolean
implemented
IsQuestFlaggedCompletedOnAccountReturns if a quest has been completed by any character on an account.
(questID: number): boolean
guessed
IsQuestFromContentPushWhether the quest was offered by a content push. · by wowlua
(questID: number): boolean
guessed
IsQuestInvasionReplaces IsQuestInvasion.
(questID: number): boolean
guessed
IsQuestReplayableIdentifies if a quest is eligible for replay with party members who have not yet completed it.
(questID: number): boolean
guessed
IsQuestReplayedRecentlyWhether the player has recently replayed the quest. · by wowlua
(questID: number): boolean
guessed
IsQuestTaskReturns whether a given quest is a task (also known as bonus objectives or world quest).
(questID: number): boolean
guessed
IsQuestTrivialWhether the quest is trivial (grey) for the player. · by wowlua
(questID: number): boolean
guessed
IsRepeatableQuestReturns true if the specified quest is a repeatable quest.
(questID: number): boolean
guessed
IsThreatQuestWhether the quest is a threat quest. · by wowlua
(questID: number): boolean
guessed
IsUnitOnQuestReturns true if the unit is on the specified quest.
(unit: string, questID: number): boolean
guessed
IsWorldQuestReturns true if the specified quest is a world quest.
(questID: number): boolean
guessed
QuestCanHaveWarModeBonusTests whether a quest is eligible for warmode bonuses (e.g. many world quests).
(questID: number): boolean
guessed
QuestContainsFirstTimeRepBonusForPlayerWhether the quest grants the player a first-time reputation bonus. · by wowlua
(questID: number): boolean
guessed
QuestHasQuestSessionBonusWhether the quest grants a Party Sync bonus. · by wowlua
(questID: number): boolean
guessed
QuestHasWarModeBonusTests whether a quest in the player's quest log that is eligible for warmode bonuses (see 'QuestCanHaveWarModeBOnus') has been completed in warmode (including accepting it)
(questID: number): boolean
guessed
QuestIgnoresAccountCompletedFilteringWhether the quest is shown even when the account's completed quests are filtered out. · by wowlua
(questID: number): boolean
guessed
ReadyForTurnInReturns true if all criteria for a given quest are complete.
(questID: number): boolean?
guessed
RemoveQuestWatchUntracks a quest.
(questID: number): boolean
guessed
RemoveWorldQuestWatchUntracks a world quest.
(questID: number): boolean
guessed
RequestLoadQuestByIDRequests quest data from the server.
(questID: number)
guessed
SetAbandonQuestSets the selected quest to be abandoned.
()
guessed
SetMapForQuestPOIsSets the map whose quest points of interest are loaded. · by wowlua
(uiMapID: number)
guessed
SetSelectedQuestSelects a quest in the quest log.
(questID: number)
guessed
ShouldDisplayTimeRemainingWhether the quest's remaining time should be shown. · by wowlua
(questID: number): boolean
guessed
ShouldShowQuestRewardsWhether the quest's rewards should be shown. · by wowlua
(questID: number): boolean
guessed
SortQuestWatchesSorts watched quests by proximity to the player character.
()
guessed
UnitIsRelatedToActiveQuestWhether the unit is related to one of the player's active quests. · by wowlua
(unit: string): boolean
guessed
UpdateCampaignHeadersUpdates the campaign headers in the quest log. · by wowlua
()
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
QUESTLINE_UPDATErequestRequired: booleannot implemented
QUEST_ACCEPTEDquestId: numberimplemented
QUEST_AUTOCOMPLETEquestId: numbernot implemented
QUEST_COMPLETEno payloadimplemented
QUEST_DATA_LOAD_RESULTquestID: number, success: booleanimplemented
QUEST_DETAILquestStartItemID: number?implemented
QUEST_LOG_CRITERIA_UPDATEquestID: number, specificTreeID: number, description: string, numFulfilled: number, numRequired: numbernot implemented
QUEST_LOG_UPDATEno payloadimplemented
QUEST_POI_UPDATEno payloadimplemented
QUEST_REMOVEDquestID: number, wasReplayQuest: booleanimplemented
QUEST_TURNED_INquestID: number, xpReward: number, moneyReward: numberimplemented
QUEST_WATCH_LIST_CHANGEDquestID: number?, added: boolean?implemented
QUEST_WATCH_UPDATEquestID: numberimplemented
TASK_PROGRESS_UPDATEno payloadnot implemented
TREASURE_PICKER_CACHE_FLUSHno payloadimplemented
WAYPOINT_UPDATEno payloadnot implemented
WORLD_QUEST_COMPLETED_BY_SPELLquestID: numbernot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("QUESTLINE_UPDATE").

Structures

  • QuestInfo · title, questLogIndex, questID, campaignID?, level, difficultyLevel, suggestedGroup, frequency?, isHeader, useMinimalHeader, sortAsNormalQuest, isCollapsed, startEvent, isTask, isBounty, isStory, isScaling, isOnMap, hasLocalPOI, isHidden, isAutoComplete, overridesSortOrder, readyForTranslation, isInternalOnly, isAbandonOnDisable, headerSortKey?, questClassification
  • QuestObjectiveInfo · text, type, finished, numFulfilled, numRequired, objectiveType?
  • QuestTagInfo · tagName, tagID, worldQuestType?, quality?, tradeskillLineID?, isElite?, displayExpiration?
  • QuestTheme · background, seal, signature, poiIcon, mapPinInfo?
  • QuestTimerInfo · questID, questTimer

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (QuestLog system, camelot 1.60.1). Descriptions: Blizzard's API documentation (Blizzard_APIDocumentationGenerated); warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.