Index: config/main/custom.properties
===================================================================
--- config/main/other.properties (revision 1600)
+++ config/main/other.properties (working copy)
@@ -97,6 +97,11 @@
# default = 3
MaxSubClass = 3
+#Custom lvl when player add new subclass
+#min = 40 max = 80 dont put more
+#default = 40
+CustomSubclassLvl = 40
+
# ------------------------------------------
# Section: Grade & Weight Penalties Controls
# ------------------------------------------
Index: src/main/java/net/l2j/Config.java
===================================================================
--- src/main/java/net/l2j/Config.java (revision 1600)
+++ src/main/java/net/l2j/Config.java (working copy)
@@ -830,6 +830,9 @@
public static int TITLE_COLOR_FOR_AMMOUNT4;
public static int TITLE_COLOR_FOR_AMMOUNT5;
+ // ----------- custom subclass lvl --------------
+ public static int CUSTOM_SUBCLASS_LVL;
+
//*********************************************************
public static void loadCustomConfig()
{
@@ -894,6 +897,10 @@
ALLOW_TELE_IN_SIEGE_TOWN = Boolean.parseBoolean(otherSettings.getProperty("AllowTeleportInSiegeTown", "false"));
ALT_MANA_POTIONS = Boolean.parseBoolean(otherSettings.getProperty("AllowManaPotions", "false"));
FORCE_UPDATE_RAIDBOSS_ON_DB = Boolean.parseBoolean(otherSettings.getProperty("ForceUpdateRaidBossOnDB", "false"));
+
+ // ----------- custom subclass lvl ------------
+ CUSTOM_SUBCLASS_LVL = Integer.parseInt(otherSettings.getProperty("CustomSubclassLvl", "40"));
+
}
catch (Exception e)
{
Index: src/main/java/net/l2j/gameserver/model/base/SubClass.java
===================================================================
--- src/main/java/net/l2emuproject/gameserver/model/base/SubClass.java (revision 1600)
+++ src/main/java/net/l2emuproject/gameserver/model/base/SubClass.java (working copy)
@@ -14,6 +14,8 @@
*/
package net.l2j.gameserver.model.base;
+import net.l2j.Config;
+
/**
* Character Sub-Class Definition
* <BR>
@@ -24,9 +26,9 @@
public final class SubClass
{
private ClassId _class;
- private long _exp = Experience.LEVEL[40];
+ private long _exp = Experience.LEVEL[Config.CUSTOM_SUBCLASS_LVL];
private int _sp = 0;
- private byte _level = 40;
+ private byte _level = (byte)Config.CUSTOM_SUBCLASS_LVL;
private int _classIndex = 1;
public SubClass(int
credits: iNos