mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
512 B
512 B
Function: GetSkill(spawn, name)
Description: Gets the skill object reference for a spawn by name.
Parameters:
spawn(Spawn) - Spawn object representingspawn.name(string) - Stringname.
Returns: Skill object reference.
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