Lua functions

DeleteQuest

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

Historical signature: DeleteQuest(…) via current binding

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

Function: DeleteQuest(player, quest_id, override_deny_delete)

Description: Requests deletion through the connected client's quest-deletion path.

Parameters: player: connected player spawn. quest_id: positive quest ID. Optional boolean override_deny_delete defaults to false; true bypasses the quest deny-delete setting.

Returns: None. Invalid input or missing connection is logged without requesting deletion.

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

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.

DeleteQuest(Player, WarStatues, true)

Evidence: server/SpawnScripts/IsleRefuge1/LeavetheIsleofRefuge.lua:319; binding EQ2Emu_lua_DeleteQuest.

Current registration: WorldServer/Lua/LuaInterface.cpp.