Jump to content

[Share]Custom subclass starting level


iNos

Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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


  • Posts

    • What unique features ? 
    • Welcome to SmurfsZone   Buy League of Legends accounts across all servers and jump straight into Ranked Games with amazing quality and support.   Why Choose SmurfsZone? 24/7 Instant Delivery: Get your full access LoL smurf account immediately. 100% Hand-Leveled: High-quality accounts leveled by hand. Versatile MMR Options: High MMR, Standard MMR, Fresh MMR (ARAMs), and Ranked accounts available. Valorant Accounts: Expand your gaming experience. Our Commitment to You: Unopened Loot: Customize your champion pool. Lifetime Warranty: Valid if you change the email, username, and password upon purchase. Password Changeable: Ensure your account's security. Full Recovery Information: Complete access to account recovery details. Unverified and Changeable Email: Easy to personalize and secure your account. Completely Unranked: Fresh start with no ranked history in any season. Responsive Customer Support: Our dedicated team is available to assist you 24/7.   Experience the best place to buy League of Legends accounts with exceptional quality and dedicated support. We're here for YOU!
    • Thanks! I'll take a second look and let you know if my implementation of the clearCircle() helps with the stuttering once I find time for some extensive testing.
    • Thank you for your reply. I have removed it from the L2Server.exe file, but the L2Server still crashes. It doesn't crash if I don't start l2npc, otherwise it will crash within a few days at the latest.
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore1 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
  • Topics

×
×
  • Create New...