**Description:** Gets the skill object reference for a spawn by name. **Parameters:** - `spawn` (Spawn) - Spawn object representing `spawn`. - `name` (string) - String `name`. **Returns:** Skill object reference. **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 ```
Scanned 9/8/2026
Install to Claude Code
npx -y skills add emagi/eq2emu --skill lua_functions --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Lua Functions?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/emagi-lua-functions-eq2emu)More formats (shields.io, HTML) on the badges page.
### Function: GetSkill(spawn, name)
**Description:**
Gets the skill object reference for a spawn by name.
**Parameters:**
- `spawn` (Spawn) - Spawn object representing `spawn`.
- `name` (string) - String `name`.
**Returns:** Skill object reference.
**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
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Create Mermaid diagrams for flowcharts, sequences, ERDs, and