Returns information about a bonus objective.
isInArea, isOnMap, numObjectives = GetTaskInfo(questID)
- Integer - Unique identifier for the quest.
All returns are nil if IsQuestTask() returns false for the quest.
- Boolean - True if player is in the location where the task activates.
- Boolean - True if task is active and visible on the player's map.
- Integer - Number of objectives for the task.
The bonus objectives system allows players to progress quests that are activated based on location, rather than a quest-giving NPC. While these player is in the appropriate area and these quests are active, they are invisible entries the quest log. After the player leaves the area, the quest is removed from the quest log and thus has no longer has a usable quest index. Bonus objectives (known in the API as "tasks") have a quest ID and information about them can be queried by all functions that accept a quest ID.
Until the player enters the task area for the first time per session, all tasks return false with
IsQuestTask() (and thus return nil values with
GetTaskInfo()). Quest IDs for tasks will become unusable again if the player logs out.
Patch 6.0.2 (2014-10-14): Added.