Lua functions

HasQuest

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

Historical signature: HasQuest(player, quest_id)

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

Function: HasQuest(player, quest_id)

Description: Return's true if the player has the quest_id active in their journal.

Parameters:

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

Returns: Return's true if the player has an active quest (not completed/pending).

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.

HasQuest(Spawn,Druid) or

Evidence: server/SpawnScripts/antonica/ShadySwashbucklerXVII.lua:35; binding EQ2Emu_lua_HasQuest.

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