Lua functions

AddQuestStepKillSelfUpdate

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

Historical signature: AddQuestStepKillSelfUpdate(…) via current binding

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

Function: AddQuestStepKillSelfUpdate(quest, step, description, quantity, percentage, taskgroup, icon, ...)

Description: Adds a kill quest step matching the supplied spawn definition IDs. Sets the step's self-only update flag; engine kill-credit rules still apply. A positive icon is set only when the requested quantity is also positive. If the quest already has a connected player, sends quest updates.

Parameters: quest: Quest userdata. step: unsigned step number. description: step text. quantity: unsigned required count. percentage: float update percentage passed to the quest-step engine. taskgroup: task-group text; empty means no group. icon: unsigned 16-bit icon ID; zero leaves it unset. ...: unsigned spawn definition IDs; omitted or zero terminates the list.

Returns: None. Invalid quest has no effect.

Connection lifetime: Each player or group-member connection resolved by this function is retained through the native call. A disconnect or reconnect during a callback cannot destroy that retained connection or switch the ongoing call to a replacement. A later Lua call resolves the current connection. This does not extend the lifetime of unrelated spawn or item userdata.

Checked example

No checked example is published for this function yet. No suitable maintained runtime-script example passed the argument and source review.

Current registration: WorldServer/Lua/LuaInterface.cpp.