Lua functions

GetSpawnListBySpawnID

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

Historical signature: GetSpawnListBySpawnID(spawn, spawn_id)

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

Function: GetSpawnListBySpawnID(spawn, spawn_id)

Description: Gets a spawn list by the spawn_id.

Parameters:

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

Returns: Table - spawn list based on the database spawn_id.

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.

spawns = GetSpawnListBySpawnID(Player, 270010)

Evidence: server/Quests/FarJourneyFreeport/TasksaboardtheFarJourney.lua:109; binding EQ2Emu_lua_GetSpawnListBySpawnID.

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