Lua functions

GetStaBase

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

Historical signature: GetStaBase(spawn)

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

Function: GetStaBase(spawn)

Description: Gets the base stamina of the spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: UInt32 value base stamina 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.

HealthMod = GetStaBase(Target) * StaAmt

Evidence: server/Spells/Priest/Cleric/Inquisitor/SacredArmorWithStaBonus.lua:13; binding EQ2Emu_lua_GetStaBase.

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