Lua functions

AddQuestStepFailureAction

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

Historical signature: AddQuestStepFailureAction(…) via current binding

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

Function: AddQuestStepFailureAction(quest, step, action)

Description: Registers the Lua function called when the specified quest step fails.

Parameters:

  • quest (Quest) - Quest being configured.
  • step (int32) - Nonzero quest step ID.
  • action (string) - Nonempty Lua function name.

Returns: None. Invalid arguments cause no change.

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.

AddQuestStepFailureAction(Quest, id, activeStep.failed)

Evidence: server/Quests/Generic/questmodule.lua:471; binding EQ2Emu_lua_AddQuestStepFailureAction.

Current registration: WorldServer/Lua/LuaInterface.cpp.