Lua functions

AddQuestStepCompleteAction

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

Historical signature: AddQuestStepCompleteAction(quest, step, action)

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

Function: AddQuestStepCompleteAction(quest, step, action)

Description: Sets the function to call when the quest step is completed.

Parameters:

  • quest (Quest) - Quest object representing quest.
  • step (int32) - Integer value step.
  • action (int32) - Integer value action.

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.

AddQuestStepCompleteAction(Quest, 1, "Step1Complete")

Evidence: server/Quests/Antonica/ACaptainsCommunique.lua:17; binding EQ2Emu_lua_AddQuestStepCompleteAction.

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