Returns whether a unit is on one of the quests in the player's quest log

See also Unit functions, Quest functions.


state = IsUnitOnQuest(index, "unit") or IsUnitOnQuest(index, "name")


  • index - Index of a quest in the player's quest log (between 1 and GetNumQuestLogEntries()) (number)
  • unit - A unit to query (string, unitID)
  • name - The name of a unit to query; only valid for player, pet, and party/raid members (string)


  • state - 1 if the unit is on the quest; otherwise nil (1nil)