Function: GetLevel(spawn)
Description: Gets the current level of the spawn (not effective level).
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: UInt32 value of the Spawn's level.
GetLevelRegistered in this checkout as EQ2Emu_lua_GetLevel; implementation found at WorldServer/Lua/LuaFunctions.cpp:3715.
Historical signature: GetLevel(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Gets the current level of the spawn (not effective level).
Parameters:
spawn (Spawn) - Spawn object representing spawn.Returns: UInt32 value of the Spawn's level.
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 Level = GetLevel(NPC)
Evidence: server/SpawnScripts/Baubbleshire/ashiningnibbler.lua:10; binding EQ2Emu_lua_GetLevel.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.