Function: GetSta(spawn)
Description: Gets the current stamina of the spawn.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: UInt32 value of the stamina for the spawn.
GetStaRegistered in this checkout as EQ2Emu_lua_GetSta; implementation found at WorldServer/Lua/LuaFunctions.cpp:3889.
Historical signature: GetSta(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Gets the current stamina of the spawn.
Parameters:
spawn (Spawn) - Spawn object representing spawn.Returns: UInt32 value of the stamina for the spawn.
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.
HPRegenMod = math.floor(GetSta(NPC)/10)
Evidence: server/SpawnScripts/Commonlands/Ladon.lua:11; binding EQ2Emu_lua_GetSta.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.