Jump to content

Recommended Posts

Posted

as title says with this when someone add new subclass will start with custom lvl

 

1st:

 

open net.l2emuproject.gameserver.model.base.SubClass.java

add this import

import net.l2emuproject.Config;

find this line:

	private long	_exp		= Experience.LEVEL[40];

and change it to:

	private long	_exp		= Experience.LEVEL[Config.CUSTOM_SUBCLASS_LVL];

after find this line:

	private byte	_level		= 40;

and change it to:

	private byte	_level		= (byte)Config.CUSTOM_SUBCLASS_LVL;

 

2nd:

 

open net.l2emuproject.Config.java

 

search for this:

	public static int			TITLE_COLOR_FOR_AMMOUNT5;

and after this line insert this:

	public static int			CUSTOM_SUBCLASS_LVL;

now search for this:

			PVP_AMMOUNT5 = Integer.parseInt(customSettings.getProperty("PvpAmmount5", "500"));

after this line insert this:

			CUSTOM_SUBCLASS_LVL = Integer.parseInt(customSettings.getProperty("CustomSubclassLvl", "40"));

 

3rd

 

open /config/main/custom.properties

go to end of the file and insert this:

#Custom lvl when player add new subclass
#min = 40 max = 80
#default = 40
CustomSubclassLvl = 40

 

Warning:  if you put lower number than 40 lvl when the char take 1 lvl goes to 40 lvl

and if you put more than 80 when the char kills one mob goes to 80 lvl

 

here is the .patch

Index: config/main/custom.properties
===================================================================
--- config/main/custom.properties	(revision 1600)
+++ config/main/custom.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/l2emuproject/Config.java
===================================================================
--- src/main/java/net/l2emuproject/Config.java	(revision 1600)
+++ src/main/java/net/l2emuproject/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(customSettings.getProperty("AllowTeleportInSiegeTown", "false"));
			ALT_MANA_POTIONS = Boolean.parseBoolean(customSettings.getProperty("AllowManaPotions", "false"));
			FORCE_UPDATE_RAIDBOSS_ON_DB = Boolean.parseBoolean(customSettings.getProperty("ForceUpdateRaidBossOnDB", "false"));
+
+			// ----------- custom subclass lvl ------------
+			CUSTOM_SUBCLASS_LVL = Integer.parseInt(customSettings.getProperty("CustomSubclassLvl", "40"));
+
		}
		catch (Exception e)
		{
Index: src/main/java/net/l2emuproject/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.l2emuproject.gameserver.model.base;

+import net.l2emuproject.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 classId, long exp, int sp, byte level, int classIndex)

 

works fine for me i use l2emu gracia pt2

Posted

aha prostule esti cu mine in retea :)) adica stai prin drumu taberei daca aflu care esti iti indrep oasele addy sti tu dc esti la injoy fosta hertza sa vezi ce  te bat cand te prind :_)

  • 2 weeks later...
Posted

here is the .patch file

Index: config/main/custom.properties
===================================================================
--- config/main/custom.properties	(revision 1600)
+++ config/main/custom.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/l2emuproject/Config.java
===================================================================
--- src/main/java/net/l2emuproject/Config.java	(revision 1600)
+++ src/main/java/net/l2emuproject/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(customSettings.getProperty("AllowTeleportInSiegeTown", "false"));
			ALT_MANA_POTIONS = Boolean.parseBoolean(customSettings.getProperty("AllowManaPotions", "false"));
			FORCE_UPDATE_RAIDBOSS_ON_DB = Boolean.parseBoolean(customSettings.getProperty("ForceUpdateRaidBossOnDB", "false"));
+
+			// ----------- custom subclass lvl ------------
+			CUSTOM_SUBCLASS_LVL = Integer.parseInt(customSettings.getProperty("CustomSubclassLvl", "40"));
+
		}
		catch (Exception e)
		{
Index: src/main/java/net/l2emuproject/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.l2emuproject.gameserver.model.base;

+import net.l2emuproject.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 classId, long exp, int sp, byte level, int classIndex)

added on first post

also i add one import that i forgot sorry

  • 2 months later...
Guest
This topic is now closed to further replies.


  • Posts

    • Added FloodProtector utility to prevent packet flooding for actions like item use and dice rolling. Integrated flood protection checks in relevant client packet handlers and registered/removal hooks in player lifecycle. Updated movement logic in L2PcInstance for improved position synchronization and geodata handling. Minor fixes and refactoring in attack logic, private store handling, and admin NPC editing. Refactored AI classes to enhance movement, attack, and skill usage logic for characters and mobs. Improved distance checks, attack range calculations, and skill casting conditions. Removed unused intention command logic from L2CharacterAI. Updated configuration to enable CellPathFinding. Minor code cleanups and bug fixes for more reliable AI behavior. Enhanced GeoPathFinding with detailed debug and error messages for region loading, including success/failure counts and file checks. Refactored L2AttackableAI and L2CharacterAI to improve attack range tolerance, immediate attack behavior, and added safety checks for missing targets. Updated configuration to disable CellPathFinding by default and added a new ShowRedName option for aggressive mobs. Minor config and log updates included. Applied TCP socket optimizations (e.g., TCP_NODELAY, buffer sizes, keepalive) in ClientThread, Connection, and SelectorThread to reduce latency and improve throughput. Enhanced L2AttackableAI with better random walk, aggro, and attack logic, including silent move checks, quest monster handling, and improved faction/raid/minion behavior. Added silent move support to L2PlayableInstance and quest monster flag to L2NpcTemplate/L2NpcInstance. These changes aim to improve server responsiveness, AI realism, and overall stability.
    • I’ve been using this Escape from Tarkov Hack for about a week now with no issues at all. ESP works great without any lag, and the aimbot is smooth and doesn't feel obvious. Had a quick setup with the loader, and support answered my questions right away. The HWID spoofer also did its job without messing with my system. So far, the cheat's staying undetected on my side.
    • Hello everyone, this is ADENA L2REBORN / LU4 / MASTERWORK We also have items, epics, etc. discord - adver745645 Our prices are reasonable, so have a nice shopping and a nice day.
  • Topics

×
×
  • Create New...

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