Returns the internal ID of a quest featured in the currently active NPC dialogue (available after a QUEST_DETAIL event). Returns 0 if no quest dialogue happened in the current session yet.

Warning: returns the last offered quest ID - it will keep returning the last value even out of any QUEST_DETAIL dialogue context, until a new quest is mentioned.


See also Quest functions.

Signature:

questID = GetQuestID()

Returns:

  • questID - Internal ID of the offered quest (number)