Lua functions

GetQuestCompleteCount

Registered in this checkout as EQ2Emu_lua_GetQuestCompleteCount; implementation found at WorldServer/Lua/LuaFunctions.cpp:11370.

Historical signature: GetQuestCompleteCount(Spawn, QuestID)

Parameter and behavior details in the historical explanation are under review against the current implementation.

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:

  • player (Spawn) - Spawn object representing player.
  • quest_id (uint32) - Integer value quest_id.

Returns: UInt32 value of how many times the quest was completed.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

local count = GetQuestCompleteCount(Spawn, 5619)

Evidence: server/SpawnScripts/BigBend/RatcatcherZarbt.lua:25; binding EQ2Emu_lua_GetQuestCompleteCount.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.