Lua functions

GetSpawnFromList

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

Historical signature: GetSpawnFromList(spawns, position)

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

Function: GetSpawnFromList(spawns, position)

Description: Placeholder description.

Parameters:

  • spawns (Table) - List of spawn object references spawns.
  • position (uint32) - Integer value position.

Returns: Spawn at position.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. The binding also handles arguments dynamically. This is a contextual call pattern, not a tested standalone script.

rat = GetSpawnFromList(spawns, i-1)

Evidence: server/Quests/FarJourneyFreeport/TasksaboardtheFarJourney.lua:148; binding EQ2Emu_lua_GetSpawnFromList.

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