Skip to main content

Skills

Skill Duration

To change the default skill abnormal time duration, two settings must be changed ModifySkillDuration and SkillDuration.

ModifySkillDuration is a boolean parameter that enables or disables this configuration.

SkillDuration is a list of skill ID and duration time in seconds.

/config/character.properties
# When this is enabled it will use the "SkillDuration" configuration.
# Overrides the abnormalTime in the skill definition.
# Default: False
ModifySkillDuration = True
# Skill duration list
# Format: skillid,newtime;skillid2,newtime2...
# Example:
# This enable 1h(3600) duration for songs.
# SkillDuration = 264,3600;265,3600;266,3600;267,3600;268,3600;269,3600;270,3600;304,3600;305,1200;306,3600;308,3600;349,3600;363,3600;364,3600
SkillDuration = 825,14400;826,14400;827,14400;828,14400;829,14400;830,14400;271,14400;277,14400;274,14400;307,14400;\
309,14400;310,14400;311,14400;272,14400;365,14400;276,14400;275,14400;264,14400;266,14400;\
306,14400;308,14400;268,14400;363,14400;364,14400;349,14400;267,14400;304,14400;270,14400;\
305,14400;269,14400;4342,14400;4343,14400;4351,14400;1087,14400;4345,14400;4344,14400;\
4348,14400;4347,14400;4353,14400;4346,14400;4352,14400;4356,14400;4355,14400;1303,14400;\
4358,14400;4359,14400;4357,14400;4354,14400;4360,14400;1392,14400;1393,14400;1354,14400;\
1353,14400;1352,14400;4349,14400;4350,14400;1284,14400;1461,14400;1397,14400;1416,14400;\
1085,14400;1304,14400;1087,14400;1062,14400;1243,14400;1045,14400;1048,14400;1397,14400;\
1078,14400;1242,14400;1059,14400;1077,14400;1240,14400;1086,14400;1043,14400;1032,14400;\
1036,14400;1460,14400;1035,14400;1068,14400;1044,14400;1182,14400;1191,14400;1033,14400;\
1259,14400;1189,14400;1040,14400;1268,14400;1284,14400;764,60;765,60;1139,14400;\
1140,14400;1141,14400;1144,14400;1145,14400;1146,14400;1497,14400;1388,14400;1389,14400;\
1413,14400;1363,14400;1356,14400;1355,14400;1357,14400;1414,14400;4702,14400;4703,14400;\
4699,14400;4700,14400;1349,14400;1346,14400;1347,14400;1348,14400;273,14400;530,14400;\
1002,14400;1007,14400;1009,14400;1229,14400;1251,14400;1252,14400;1253,14400;1284,14400;\
1308,14400;1309,14400;1310,14400;1362,14400;1363,14400;1390,14400;1391,14400;1413,14400;\
1006,14400;1204,14400;1003,14400;1004,14400;1005,14400;1008,14400;1010,1400;1249,1400;\
1250,14400;1256,14400;1260,14400;1261,14400;1282,14400;1364,14400;1365,14400;\
1415,14400;1416,14400;529,14400;265,14400;1311,14400;\

Adding New Custom Skills

L2J Server allows you to easily create custom skills to enhance your server's gameplay.

Configuration

To enable the loading of custom skills, you must first enable the option in your configuration file.

Open config/general.properties and set:

CustomSkillsLoad = True

Creating the XML File

Custom skills should be defined in XML files located in the data/stats/skills/custom/ directory.

XML Format & Example

Below is the standard format for custom skills. Note the use of the displayId parameter.

data/stats/skills/custom/my_custom_skills.xml
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/skills.xsd">
<skill id="10001" levels="1" name="Mana Potion">
<set name="affectScope" val="SINGLE" />
<set name="displayId" val="2288" />
<set name="isMagic" val="2" />
<set name="itemConsumeCount" val="1" />
<set name="itemConsumeId" val="728" />
<set name="magicLvl" val="1" />
<set name="operateType" val="A1" />
<set name="reuseDelay" val="500" />
<set name="targetType" val="SELF" />
<effects>
<effect name="Mp">
<param amount="100" />
</effect>
</effects>
</skill>
</list>

Understanding displayId

The <set name="displayId" val="2288" /> parameter is a convenient way to handle client-side visuals for custom skills.

  • How it works: It tells the game client to use the icon, name, and description of an existing skill (in this case, Skill ID 2288) for your custom skill.
  • Benefit: This allows you to create new server-side skills without needing to edit client files if you can find an existing skill that visually matches what you want.