Lua functions

CanReceiveQuest

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

Historical signature: CanReceiveQuest(spawn, quest_id)

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

Function: CanReceiveQuest(spawn, quest_id)

Description:

Return's true if the Spawn can receive the quest by quest_id.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • quest_id (uint32) - Integer value quest_id.

Returns: True if the quest_id can be accepted, otherwise false.

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.

if CanReceiveQuest(Spawn, Keep) then

Evidence: server/SpawnScripts/antonica/CaptainEitoa.lua:39; binding EQ2Emu_lua_CanReceiveQuest.

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