Lua functions

GetStr

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

Historical signature: GetStr(spawn)

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

Function: GetStr(spawn)

Description: Gets the strength of the spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: UInt32 value of the spawn's current strength.

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.

dmgMod = GetStr(NPC)/10

Evidence: server/SpawnScripts/ADecrepitCrypt/KyrinSteelbone.lua:12; binding EQ2Emu_lua_GetStr.

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