Lua functions

GetQuestStep

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

Historical signature: GetQuestStep(player, quest_id)

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

Function: GetQuestStep(player, quest_id)

Description: Gets the current quest step of the quest based on the quest_id.

Parameters:

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

Returns: UInt32 current step the player is on with the quest.

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 GetQuestStep(Spawn, Gnoll) == 1 then

Evidence: server/SpawnScripts/antonica/CaptainBeltho.lua:36; binding EQ2Emu_lua_GetQuestStep.

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