Lua functions

QuestReturnNPC

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

Historical signature: QuestReturnNPC(quest, spawn_id)

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

Function: QuestReturnNPC(quest, spawn_id)

Description: Sets the return NPC point for a Quest when the quest has been completed.

Parameters:

  • quest (Quest) - Quest object representing quest.
  • spawn_id (uint32) - Integer value spawn_id.

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.

QuestReturnNPC(Quest, 3250020)

Evidence: server/Quests/Hallmark/archetype_selection.lua:16; binding EQ2Emu_lua_QuestReturnNPC.

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