mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
499 B
499 B
Function: SetSkillMaxValue(skill, value)
Description: Set's the maximum skill value for the skill object.
Parameters:
skill(int32) - Integer valueskill.value(uint16) - Integer valuevalue.
Returns: None.
Example:
-- 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