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.
×
×
  • Create New...