Lua functions

GiveQuestReward

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

Historical signature: GiveQuestReward(quest, spawn)

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

Function: GiveQuestReward(quest, spawn)

Description: Provides the previously assigned rewards for a quest via AddQuestReward.. functions and other related functions.

Parameters:

  • quest (Quest) - Quest object representing quest.
  • spawn (Spawn) - Spawn object representing spawn.

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.

GiveQuestReward(Quest, Player)

Evidence: server/Quests/Antonica/ACaptainsCommunique.lua:34; binding EQ2Emu_lua_GiveQuestReward.

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