Lua functions

GetMaxPower

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

Historical signature: GetMaxPower(spawn)

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

Function: GetMaxPower(spawn)

Description: Gets the Spawn's maximum (total) power.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: SInt32 maximum (total) power of the spawn.

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.

MaxPow = GetMaxPower(Caster)

Evidence: server/Spells/Commoner/ArcaneEnlightenment.lua:17; binding EQ2Emu_lua_GetMaxPower.

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