Lua functions

SetWisBase

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

Historical signature: SetWisBase(spawn, value)

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

Function: SetWisBase(spawn, value)

Description: Set's the Spawn's base wisdom to the value provided.

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.

SetWisBase(NPC, finalStat)

Evidence: server/SpawnScripts/Generic/CombatModule.lua:93; binding EQ2Emu_lua_SetWisBase.

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