Lua functions

AddQuestPrereqQuest

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

Historical signature: AddQuestPrereqQuest(quest, quest_id)

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

Function: AddQuestPrereqQuest(quest, quest_id)

Description: CanReceiveQuest checks if the Player has previously completed the quest_id defined.

Parameters:

  • quest (Quest) - Quest object representing quest.
  • quest_id (uint32) - Integer value quest_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.

AddQuestPrereqQuest(Quest, LostFroglok)

Evidence: server/Quests/FrostfangSea/the_absent_effigy.lua:30; binding EQ2Emu_lua_AddQuestPrereqQuest.

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