Lua functions

SetGridID

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

Historical signature: SetGridID(spawn, grid)

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

Function: SetGridID(spawn, grid)

Description: Set's the grid id of the spawn. See /grid for more information on the grid id.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • grid (uint32) - Integer value grid.

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.

SetGridID(NPC, 908295842)

Evidence: server/SpawnScripts/FallenGate/atormentedbattlemage_A.lua:78; binding EQ2Emu_lua_SetGridID.

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