Lua functions

GetClientVersion

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

Historical signature: GetClientVersion(Spawn)

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

Function: GetClientVersion(Spawn)

Description: Retrieves the game client version of the specified player (useful if the server supports multiple client versions). This can determine differences in available features or UI.

Parameters:

  • player (Spawn) - Spawn object representing player.

Returns: UInt32 value of the client version, Isle of Refuge = 373, Desert of Flames (not CD, January 2006) = 546, Kingdom of Sky (Feb 2006 DVD) = 561

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 version = GetClientVersion(player)

Evidence: server/ZoneScripts/ScaleYard.lua:20; binding EQ2Emu_lua_GetClientVersion.

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