Lua functions

SpawnSet

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

Historical signature: SpawnSet(spawn, variable, value, no_update, temporary_flag, index)

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

Function: SpawnSet(spawn, variable, value, no_update, temporary_flag, index)

Description: Set a spawn setting on the specified spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • variable (int32) - Integer value variable.
  • value (int32) - Integer value value.
  • no_update (int32) - Integer value no_update.
  • temporary_flag (int32) - Integer value temporary_flag.
  • index (int32) - Integer value index.

Returns: None.

Checked example

Active call in a local runtime Lua script. Update and temporary flags have defaults. The binding also handles arguments dynamically. This is a contextual call pattern, not a tested standalone script.

SpawnSet(NPC, "hp", hp1)

Evidence: server/SpawnScripts/ForestRuinsDeepLurker.lua:25; binding EQ2Emu_lua_SpawnSet.

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