Lua functions

AddSkillBonus

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

Historical signature: AddSkillBonus(spawn, skill_id, value)

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

Function: AddSkillBonus(spawn, skill_id, value)

Description: Placeholder description.

Parameters:

  • luaspell (int32) - Integer value luaspell.
  • skill_id (uint32) - Integer value skill_id.
  • value (int32) - Integer value value.

Returns: None.

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.

AddSkillBonus(Target, GetSkillIDByName("Focus"), Focus)

Evidence: server/Spells/AA/UnwaveringResolve.lua:14; binding EQ2Emu_lua_AddSkillBonus.

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