API:CheckQuest

__NOTOC__
Checks if you have ever completed a quest.
state = CheckQuest(questID)
== Parameters==
=== Arguments===
;questID
:The quest ID of the quest you want to check. Quest IDs can be obtained from getbuffed.com 
=== Returns===
;state
:0 - if you have never completed the quest have not accepted it
:1 - if you have accepted the quest but have never completed it
:2 - if you have completed the quest at least once
== Note==
:* You have to actually complete the quest at the reward NPC for this command to return a value of 2
:* In the case of repeatable quests such as dailies, once completed once it will always return a value of 2.
== Example==
-- Check if quest 'Love Express' has been accepted
queststate = CheckQuest(420678)
if queststate == 1 then
 -- Quest has been accepted
elseif queststate == 2 then
 -- Quest has already been done
else
 -- Still need to accept quest
end
Category:Functions