Lua functions

QuestIsComplete

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

Historical signature: QuestIsComplete(player, quest_id)

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

Function: QuestIsComplete(player, quest_id)

Description: Identifies if the quest has been completed or not based on the quest_id.

Parameters:

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

Returns: None.

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 QuestIsComplete(Player, 95) then

Evidence: server/Quests/Darklight/more_luxuries.lua:39; binding EQ2Emu_lua_QuestIsComplete.

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