1
0
EQ2Emu/docs/lua_functions/SetSkillValue.md
2025-05-25 21:42:32 -04:00

23 lines
496 B
Markdown

### 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.
**Example:**
```lua
-- From SpawnScripts/DarkBargainers/SasitSoroth.lua
function MaxGathering(NPC, Spawn)
local skill = GetSkill(Spawn, "Gathering")
if skill ~= nil then
SetSkillMaxValue(skill, 300)
SetSkillValue(skill, 300)
end
```