Historical signature: GetZone(zone_id|zone_name|spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: GetZone(zone_id|zone_name|spawn)
Description:
Gets the zone object by the zone_id
Parameters:
zone_id, zone_name, spawn (uint32/string/spawn) - Integer/String/Spawn value zone_id or zone_name or spawn.
Returns: Gets or creates Zone object reference to zone_id or zone_name. Otherwise if spawn is provided gets the current spawn's zone object.
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 zone = GetZone(NPC)
Evidence: server/SpawnScripts/antonica/afociofdecayA.lua:22; binding EQ2Emu_lua_GetZone.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.