Lua functions

SpawnGroupByID

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

Historical signature: SpawnGroupByID(zone, group_id, custom_level)

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

Function: SpawnGroupByID(zone, group_id, custom_level)

Description: Spawn by group_id in the current zone, custom_level can be provided to hard set all spawns to the same level.

Parameters:

  • zone (Zone) - Zone object representing zone.
  • group_id (uint32) - Integer value group_id.
  • custom_level (uint32) - Integer value custom_level.

Returns: None.

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.

SpawnGroupByID(zone, PropGroup, 0)

Evidence: server/SpawnScripts/antonica/BeetleController1.lua:33; binding EQ2Emu_lua_SpawnGroupByID.

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