Jump to content
  • 0

[question]how to change the subclass lvl?


Question

Posted

title say it all !

how to change the subclass lvl?!?

i mean the level WHEN you make sub class

 

default is 40..how i change this ?

 

tnx :D

12 answers to this question

Recommended Posts

  • 0
Posted
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

  • 0
Posted

gameserver/model/base/SubClass.java

 

    private PlayerClass _class;
    private long _exp = Experience.LEVEL[40];
    private int _sp = 0;
    private byte _level = 40;
    private int _classIndex = 1;

 

Allakse ekei p leei 40, me oti 8es..  Dn xreiazete n kaneis config gia ka8e ti..

  • 0
Posted

i have 1 litle problem(big)

first when i get 1 level i get also 1 hp/1cp 1 mp

2nd when i make restart i am again 40 level(i was 1 before restart)

i paste the code...if u can tell me what to change

 

public final class SubClass

{

private static final byte _maxLevel = Config.MAX_SUBCLASS_LEVEL < Experience.MAX_LEVEL ? Config.MAX_SUBCLASS_LEVEL : Experience.MAX_LEVEL - 1;

 

private PlayerClass _class;

private long _exp = Experience.LEVEL[40];

private int _sp = 0;

private byte _level = 40;

private int _classIndex = 1;

 

public SubClass(int classId, long exp, int sp, byte level, int classIndex)

{

_class = PlayerClass.values()[classId];

_exp = exp;

_sp = sp;

_level = level;

_classIndex = classIndex;

}

 

public SubClass(int classId, int classIndex)

{

// Used for defining a sub class using default values for XP, SP and player level.

_class = PlayerClass.values()[classId];

_classIndex = classIndex;

}

 

public SubClass()

{

// Used for specifying ALL attributes of a sub class directly,

// using the preset default values.

}

 

public PlayerClass getClassDefinition()

{

return _class;

}

 

public int getClassId()

{

return _class.ordinal();

}

 

public long getExp()

{

return _exp;

}

 

public int getSp()

{

return _sp;

}

 

public byte getLevel()

{

return _level;

}

 

public int getClassIndex()

{

return _classIndex;

}

 

public void setClassId(int classId)

{

_class = PlayerClass.values()[classId];

}

 

public void setExp(long expValue)

{

if (expValue > (Experience.LEVEL[_maxLevel + 1] - 1))

expValue = (Experience.LEVEL[_maxLevel + 1] - 1);

 

_exp = expValue;

}

 

public void setSp(int spValue)

{

_sp = spValue;

}

 

public void setClassIndex(int classIndex)

{

_classIndex = classIndex;

}

 

public void setLevel(byte levelValue)

{

if (levelValue > _maxLevel)

levelValue = _maxLevel;

else if (levelValue < 40)

levelValue = 40;

 

_level = levelValue;

}

 

public void incLevel()

{

if (getLevel() == _maxLevel)

return;

 

_level++;

setExp(Experience.LEVEL[getLevel()]);

}

 

public void decLevel()

{

if (getLevel() == 40)

return;

 

_level--;

setExp(Experience.LEVEL[getLevel()]);

}

}

  • 0
Posted

see the bug...

http://img695.imageshack.us/img695/5457/levelzm.jpg

 

also can i configure the class that char takes ?i dont want to take 2nd class..i want the first one ?

 

can i ?

 

You can configure class master in config to allow only 1st class change, in configs.

  • 0
Posted

look man i want to create somethink like rebirth ..

when u make subclass you will get the first class of your subclass and u will be 1 level..

 

if u can help me or post anything that will help me i will apriciate it much :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Posts

    • Hi. Can you describe the task in more detail? I think many people here work with IntelliJ IDEA.
    • https://jmp.sh/MaCC5Gqa Combat animation synchronization: Bow/Sword. Added arrow flight and sword-to-monster effects.
    • The holidays are over and we’re back to work (well… we never really stopped 🙂 ). The server has been online without a single restart since December 26, running smoothly and without issues. That’s because we care, and we’ll keep caring. Many of us remember the old days: helping new players, building clans from zero, catching up together, and having fun without rushing. With that spirit in mind, Newbie Bonuses are now live and we strongly encourage everyone to help newcomers catch up and enjoy the journey. L2Elixir was never about short-term hype. It’s about community, stability, and bringing back what made Lineage II special.   🎁 Newbie Bonuses Characters created since December 25 & all new players receive a Newbie Box (Return Hero) (Rune EXP/SP +50% for 5 days, Random 48-hour Costume) 2nd Class Transfer cost reduced from 3kk to 1kk — join Academies! 3rd Class Transfer enabled, available only for classes already in the Hall of Fame. 🛡️ Anti-Bot Implemented BOT-CHECKER v2, more checks, and general improvements. Added extra checks during PvP. New Auto-Check system for suspicious behavior (penalties apply if third-party software is detected). Fixed Bot Report Button not refreshing. ⚙️ General After critical errors or force disconnects, characters will remain No Carrier for a few minutes. Added Cursed Bone to Helvetia (QoL). Enabled on-screen Clan War kill notifications. Fixed buff store issues when entering characters. Fixed party drop owner calculation (please report any issues). 🧙 NPCs Harit Lizardman, Grunt, and Archer now level up SC up to stage 5. 🎉 Events Fixed trigger skills not working during Events. Fixed Health / Shield packs not disappearing in some cases. Fixed summon remaining time not refreshing after Events. Added a second Team vs Team map to reduce routine. Added another Save the King map. Christmas Event cleanup completed. Players in Observe Mode can no longer register for Events. 📜 Quests Fate’s Whisper Fixed and corrected messages. Enchanted B-grade weapons can now be exchanged as per retail. Added missing Social Victory animation on quest completion. 🗺️ Geodata Fixed falling issues in Castle zones.   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
    • NEW SEASON START 23.01.2026 Get ready for the ultimate High Five adventure on L2Exoplanet.net!   • The last two previous Seasons are now merged into the Core Server. • The Core Server remains our main long-term world. • All future Seasonal Servers will be merged into Core after they end. • No characters or items will be lost – everything stays safe!     GRAND OPENING:  23.01.2026 at 20:00 GMT+1 BETA TEST:    16.01.2026    Client: High Five Rates: x10   Website: https://l2exoplanet.net Facebook: https://www.facebook.com/L2-Exoplanet-106811564103836 Discord: https://discord.gg/4fzhW7ZSPc         Game Rates    Experience: x10  Skill Points: x10  Adena: x5  Drop: x8  Spoil: x8  Quest: x5  Raid Boss Drop: x5  Fame: x2  Epaulette: x8  Manor: x8      Safe Enchant: +3  Maximum Enchant: +16  Normal Scroll Chance: 60%  Blessed Scroll Chance: 63%  Attribute Stone Chance: 50%  Attribute Crystal Chance: 30%      Game Settings    Multibox - 3 game clients per HWID  Autoloot  Autolearn Skills Auto Farm  NPC Buffer   Buff Slots (24+4/12)  Buff Duration (2h)  Olympiad Period 7days (new heroes appear every monday)  Seven Signs Period  Class Transfer for Adena  Max Sub-Class 3  Sub-Class Max Level 85  Essence Interface  Champions System  Vote Reward System  Dayli Reward System  PC Points Reward (500PC = 1 Donate Coin)      Epic Bosses Respawn Times     Queen Ant:  24 Hours +/- 4 Hours   Beleth: 3 Days +/- 8 Hours   Baium: 3 Days +/- 8 Hours   Antharas: 4 Days +/- 8 Hours   Valakas:  5 Days +/- 8 Hours     Instance Info     Normal Freya = 6 Players   Hard Freya = 12 Players   Frintezza = 6 Players   Zaken 83 Day = 6 Players   Zaken 60 Day = 6 Players   Zaken Nightly = 9 Players   Tiat = 6 Players   Beleth = 12 Players
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock