Lua functions

SetMaxPower

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

Historical signature: SetMaxPower(spawn, value)

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

Function: SetMaxPower(spawn, value)

Description: Set's the Max Power of the Spawn (As a Spell Bonus) to the new value.

Parameters:

  • spawn (Spawn) - Spawn object reference 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.

SetMaxPower(Pet, pw)

Evidence: server/SpawnScripts/Generic/PetModule.lua:244; binding EQ2Emu_lua_SetMaxPower.

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