Lua functions

AddQuestRewardItem

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

Historical signature: AddQuestRewardItem(quest, item_id, quantity)

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

Function: AddQuestRewardItem(quest, item_id, quantity)

Description: Adds a rewarded item for completion of the current Quest. Triggered by calling the LUA Function GiveQuestReward on completion of the Quest.

Parameters:

  • quest (Quest) - Quest object representing quest.
  • item_id (uint32) - Integer value item_id.
  • quantity (int32) - Integer value quantity.

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.

AddQuestRewardItem(Quest, rewardItemId, 1)

Evidence: server/Quests/ThunderingSteppes/an_undead_education.lua:82; binding EQ2Emu_lua_AddQuestRewardItem.

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