Lua functions

GetInt

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

Historical signature: GetInt(spawn)

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

Function: GetInt(spawn)

Description: Gets the intelligence of the current Spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: Gets the UInt32 value of the Spawn's current intelligence.

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.

DmgBonus = GetInt(caster)/10

Evidence: server/Spells/Headbutt.lua:26; binding EQ2Emu_lua_GetInt.

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