Lua functions

GetSpawnLocationID

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

Historical signature: GetSpawnLocationID(spawn)

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

Function: GetSpawnLocationID(spawn)

Description: Get a spawn location id.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: UInt32 spawn location id of the Spawn.

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.

local Ark = GetSpawnLocationID(NPC)

Evidence: server/SpawnScripts/antonica/anarkofpower.lua:14; binding EQ2Emu_lua_GetSpawnLocationID.

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