Lua Functions
ASecurity**Description:** Grants a new skill to the specified player. If the player does not already have the skill in their skill list, this will add it (usually at base level). **Parameters:** `Spawn`: Spawn – The player to grant the skill to. `SkillID`: Int32 – The ID of the skill to add. `CurrentVal`: Int16 – The current value the player will have in the skill. `MaxVal`: Int16 – The max skill the player can receive with the current skill. `MoreToAdd`: Boolean – When set to true, we skip sending th...
- 14 stars
- 0 votes
- 0 copies
- 1 view
- Added June 5, 2026
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add emagi/eq2emu --skill lua_functions --agent claude-codeAre you the author of Lua Functions?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/emagi-lua-functions)### Function: AddSkill(Spawn, SkillID, CurrentVal, MaxVal, MoreToAdd)
**Description:** Grants a new skill to the specified player. If the player does not already have the skill in their skill list, this will add it (usually at base level).
**Parameters:**
`Spawn`: Spawn – The player to grant the skill to.
`SkillID`: Int32 – The ID of the skill to add.
`CurrentVal`: Int16 – The current value the player will have in the skill.
`MaxVal`: Int16 – The max skill the player can receive with the current skill.
`MoreToAdd`: Boolean – When set to true, we skip sending the skill packet, expecting to send yet another skill with AddSkill.
**Returns:** If successfully adding the skill we will return true, otherwise we return false noting the player already has the skill.
**Example:**
```lua
-- For SkillID refer to the skills table https://github.com/emagi/eq2emu/blob/main/docs/data_types/skills.md
-- Example usage (teach the player the “Gnollish” language skill)
AddSkill(Player, GNOLLISH_LANGUAGE_SKILL_ID)
```Files in this skill
- AddCharacterTitle.md
- AddCoin.md
- AddControlEffect.md
- AddConversationOption.md
- AddHate.md
- AddIconValue.md
- AddImmunitySpell.md
- AddItem.md
- AddLanguage.md
- AddLootCoin.md
- AddLootItem.md
- AddMasterTitle.md
- AddMultiFloorLift.md
- AddOptionWindowOption.md
- AddPlayerMail.md
- AddPlayerMailByCharID.md
- AddPrimaryEntityCommand.md
- AddPrimaryEntityCommandAllSpawns.md
- AddProc.md
- AddProcExt.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.