Skip to content
Back to skills

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
toolsgit

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned June 5, 2026

npx -y skills add emagi/eq2emu --skill lua_functions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lua Functions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lua Functions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/emagi-lua-functions/badge)](https://www.skillsdirectory.com/skills/emagi-lua-functions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
### 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.md451 B
  • AddCoin.md511 B
  • AddControlEffect.md689 B
  • AddConversationOption.md1.2 KB
  • AddHate.md636 B
  • AddIconValue.md364 B
  • AddImmunitySpell.md560 B
  • AddItem.md550 B
  • AddLanguage.md445 B
  • AddLootCoin.md388 B
  • AddLootItem.md517 B
  • AddMasterTitle.md601 B
  • AddMultiFloorLift.md339 B
  • AddOptionWindowOption.md2 KB
  • AddPlayerMail.md1.3 KB
  • AddPlayerMailByCharID.md1.3 KB
  • AddPrimaryEntityCommand.md1.2 KB
  • AddPrimaryEntityCommandAllSpawns.md1.3 KB
  • AddProc.md845 B
  • AddProcExt.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.