Overview
Skills are divided into two layers, both read by GameServer:
Data\Skill(XML andSkill.ini): declares skills (name, range, area of effect, learning conditions, skill trees).Data\Scripts\Skills(Lua): decides the damage formula and effect of each skill for each class.
Reload: a GM who has done
/auth types .reload skill to reload the XML files of Data\Skill (SkillList, SkillExtra, SkillLearn, SkillTree, SkillSpecial, SkillRequire, SkillAttackTime, the Majestic trees, ConfusionStone), the buffs (BuffTemplate.xml) and the Lua files in Scripts\Skills, without stopping GameServer. Skill.ini alone is not part of this command and is reloaded with .reload config.Data\Skill
| File / folder | Purpose | Read by | Reload | Commonly edited |
|---|---|---|---|---|
SkillList.xml | List of all skills: number (Index), name, required level, mana, attack range... | GameServer | .reload skill | Skill requirements and costs. |
SkillExtra.xml | Additional columns for SkillList.xml by skill ID (for example damage spread radius). A skill without a row keeps the default values. | GameServer | .reload skill | Radius / number of targets. |
Skill.ini | Per-skill, buff and debuff parameters (%, seconds, map cells...). A missing key uses the default in the code. A key marked **** is not used by GameServer. | GameServer | .reload config | Buff duration, rates. Do not set a divisor key (...Div) to 0. |
SkillLearn.xml | Which items (books, orbs, scrolls) teach which skills; item level = skill level. | GameServer | .reload skill | Assigning books to skills. |
SkillRequire.xml | Additional conditions to learn / use upgraded skills: the base skill and the Master tree skills that must be owned. | GameServer | .reload skill | Learning conditions. |
SkillAttackTime.xml | Attack speed cheat detection by class, skill and speed range; also the skill cast rhythm of the Helper. | GameServer | .reload skill | Rarely edited; a mistake can cause players to be wrongly flagged as cheating. |
SkillTree.xml | The Master skill tree (class 3): each row is one cell of the tree by class. | GameServer | .reload skill | Points, skill of each cell. |
SkillTreeMajestic.xml | The Majestic skill tree (class 4): one block per class, one skill per cell. | GameServer | .reload skill | Rarely edited. |
SkillTreeMajesticStat.xml | The Majestic stat tree (HP, defense, bonus points...) and the Majestic points needed to unlock each tier. | GameServer | .reload skill | Point thresholds. |
SkillSpecial.xml | Special skills of monsters / bosses (called from Data\Monster\Skill\MonsterSkillSpecial.xml): targets, effect components. | GameServer | .reload skill | Boss skills. |
SkillSpecialElement.xml | The effects that make up a monster's special skill (the Element1..5 columns in SkillSpecial.xml). | GameServer | .reload skill | Boss effects. |
ConfusionStone.xml | The Alchemist's "Alchemy: Confusion Stone" skill (2090) and its upgrades 905 / 906: the monster-summoning stone, lifetime, buffs. | GameServer | .reload skill | Duration, monster summoning speed. |
The buff list is in
Data\BuffTemplate.xml (outside the Skill folder; GameServer loads it with the same .reload skill command).Data\Scripts\Skills (Lua formulas)
Each class has its own Lua file containing the damage formulas and skill power. All of them are loaded into one shared Lua engine in this order: Common.lua, then the class files. This Lua engine is separate from Data\LuaAPI (events, commands): the two do not share functions or variables, and each is reloaded separately.
| File / folder | Purpose | Read by | Reload |
|---|---|---|---|
Common.lua | Skills shared by several classes and shared helper functions. Loaded first. | GameServer | .reload skill or the Reload button in Skill tools (see Lua Skill) |
DarkWizard.lua, DarkKnight.lua, FairyElf.lua, MagicGladiator.lua, DarkLord.lua, Summoner.lua, RageFighter.lua, GrowLancer.lua, RuneWizard.lua, Slayer.lua, GunCrusher.lua, LightWizard.lua, LemuriaMage.lua, IllusionKnight.lua, Alchemist.lua, Crusader.lua | The formulas of each class (one file per class). The XML only declares skills; Lua decides the skill power and the damage of each hit. | GameServer | Reloaded the same way as Common.lua |
SkillLuaAPI.txt | Documentation of the functions dedicated to skill scripts (Unit.*, Skill.*, Stats.Get, Formula.GetValue...), with examples. This is a file to read, not a script; no program loads it. | No program reads it | Not applicable |
Each function call of a skill script is limited to 100 ms (when loading a file: 5 seconds). An infinite loop is cut off, that function stops and GameServer writes a log entry; GameServer does not hang. For details on writing formulas, see the Lua Skill section.