Lua functions

HasCompletedQuest

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

Historical signature: HasCompletedQuest(player, quest_id)

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

Function: HasCompletedQuest(player, quest_id)

Description:

Return's true if the player has completed the quest with quest_id.

Parameters:

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

Returns: True if the quest_id matches a completed quest for the Player, otherwise false.

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.

if HasCompletedQuest(Spawn, Achoo) then

Evidence: server/SpawnScripts/antonica/MatsyRollingpin.lua:26; binding EQ2Emu_lua_HasCompletedQuest.

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