Lua functions

GetZoneID

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

Historical signature: GetZoneID(zone)

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

Function: GetZoneID(zone)

Description: Gets the zone id of the zone object.

Parameters:

  • zone (Zone) - Zone object representing zone.

Returns: UInt32 zone id of the 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 zid   = GetZoneID(zone)

Evidence: server/SpawnScripts/Generic/ExpelNonCitizen.lua:28; binding EQ2Emu_lua_GetZoneID.

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