1
0
EQ2Emu/docs/lua_functions/GetQuestCompleteCount.md
2025-05-13 22:57:49 -04:00

19 lines
690 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Function: GetQuestCompleteCount(Spawn, QuestID)
Description: Retrieves how many times the specified player (Spawn) has completed a particular quest (identified by QuestID). For non-repeatable quests this is usually 0 or 1; for repeatable quests it could be higher.
Parameters:
Spawn: Spawn The player to check.
QuestID: Int32 The quest ID to count completions of.
Returns: Int32 The number of times the player has completed that quest.
Example:
-- Example usage (give a different dialogue if the player has done a quest multiple times)
local timesDone = GetQuestCompleteCount(Player, 9001)
if timesDone > 0 then
Say(NPC, "Back again? You know the drill.")
end