Lua functions

Zone

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

Historical signature: Zone(zone, player, x, y, z, heading)

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

Function: Zone(zone, player, x, y, z, heading)

Description: Zone the player to the destination zone,x,y,z,heading.

Parameters:

  • zone (Zone) - Zone object representing zone.
  • player (Spawn) - Spawn object representing player.
  • x (int32) - Integer value x.
  • y (int32) - Integer value y.
  • z (int32) - Integer value z.
  • heading (int32) - Integer value heading.

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. The binding also handles arguments dynamically. This is a contextual call pattern, not a tested standalone script.

Zone(SQ,Spawn,582.89, -17.48, 255.57, 254)

Evidence: server/SpawnScripts/FermentedGrape/CaptainPegrinos.lua:129; binding EQ2Emu_lua_Zone.

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