Lua functions

SetIntBase

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

Historical signature: SetIntBase(spawn, value)

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

Function: SetIntBase(spawn, value)

Description: Sets the Spawn's base intelligence to the specified value.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • value (int32) - Integer value value.

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.

SetIntBase(NPC, finalStat)

Evidence: server/SpawnScripts/Generic/CombatModule.lua:91; binding EQ2Emu_lua_SetIntBase.

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