Returns the level of a quest which can be turned in to the current Quest NPC. Only returns valid information after a QUEST_GREETING event.

Note: Most quest NPCs present active quests using the GetGossipActiveQuests() instead of this function.


See also Quest functions.

Signature:

level = GetActiveLevel(index)

Arguments:

  • index - Index of a quest which can be turned in to the current Quest NPC (between 1 and GetNumActiveQuests()) (number)

Returns:

  • level - Recommended character level for attempting the quest (number)