Function: GetSpawnID(spawn)
Description: Gets the spawn id (NPC/Object/Widget/Sign database id).
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: UInt32 database spawn id.
GetSpawnIDRegistered in this checkout as EQ2Emu_lua_GetSpawnID; implementation found at WorldServer/Lua/LuaFunctions.cpp:742.
Historical signature: GetSpawnID(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Gets the spawn id (NPC/Object/Widget/Sign database id).
Parameters:
spawn (Spawn) - Spawn object representing spawn.Returns: UInt32 database spawn id.
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 ID = GetSpawnID(NPC)
Evidence: server/SpawnScripts/IsleRefuge1/aGruttoothlaborer.lua:13; binding EQ2Emu_lua_GetSpawnID.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.