Lua functions

SetSkillValue

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

Historical signature: SetSkillValue(skill, value)

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

Function: SetSkillValue(skill, value)

Description: Set's the current skill value for the skill object.

Parameters:

  • skill (int32) - Integer value skill.
  • value (uint16) - 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.

SetSkillValue(skill, 300)

Evidence: server/SpawnScripts/DarkBargainers/SasitSoroth.lua:251; binding EQ2Emu_lua_SetSkillValue.

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