Lua functions

GetQuest

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

Historical signature: GetQuest(player, quest_id)

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

Function: GetQuest(player, quest_id)

Description: Gets the quest object reference for the player and quest_id specified if they have the quest.

Parameters:

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

Returns: Quest object reference in relation to the Player.

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.

Quest = GetQuest(Spawn,5749)

Evidence: server/SpawnScripts/Baubbleshire/RalaEurocarry.lua:46; binding EQ2Emu_lua_GetQuest.

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