Overview

Skills are divided into two layers, both read by GameServer:

  • Data\Skill (XML and Skill.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 / folderPurposeRead byReloadCommonly edited
SkillList.xmlList of all skills: number (Index), name, required level, mana, attack range...GameServer.reload skillSkill requirements and costs.
SkillExtra.xmlAdditional columns for SkillList.xml by skill ID (for example damage spread radius). A skill without a row keeps the default values.GameServer.reload skillRadius / number of targets.
Skill.iniPer-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 configBuff duration, rates. Do not set a divisor key (...Div) to 0.
SkillLearn.xmlWhich items (books, orbs, scrolls) teach which skills; item level = skill level.GameServer.reload skillAssigning books to skills.
SkillRequire.xmlAdditional conditions to learn / use upgraded skills: the base skill and the Master tree skills that must be owned.GameServer.reload skillLearning conditions.
SkillAttackTime.xmlAttack speed cheat detection by class, skill and speed range; also the skill cast rhythm of the Helper.GameServer.reload skillRarely edited; a mistake can cause players to be wrongly flagged as cheating.
SkillTree.xmlThe Master skill tree (class 3): each row is one cell of the tree by class.GameServer.reload skillPoints, skill of each cell.
SkillTreeMajestic.xmlThe Majestic skill tree (class 4): one block per class, one skill per cell.GameServer.reload skillRarely edited.
SkillTreeMajesticStat.xmlThe Majestic stat tree (HP, defense, bonus points...) and the Majestic points needed to unlock each tier.GameServer.reload skillPoint thresholds.
SkillSpecial.xmlSpecial skills of monsters / bosses (called from Data\Monster\Skill\MonsterSkillSpecial.xml): targets, effect components.GameServer.reload skillBoss skills.
SkillSpecialElement.xmlThe effects that make up a monster's special skill (the Element1..5 columns in SkillSpecial.xml).GameServer.reload skillBoss effects.
ConfusionStone.xmlThe Alchemist's "Alchemy: Confusion Stone" skill (2090) and its upgrades 905 / 906: the monster-summoning stone, lifetime, buffs.GameServer.reload skillDuration, 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 / folderPurposeRead byReload
Common.luaSkills 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.luaThe formulas of each class (one file per class). The XML only declares skills; Lua decides the skill power and the damage of each hit.GameServerReloaded the same way as Common.lua
SkillLuaAPI.txtDocumentation 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 itNot 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.