Jump to content

Recommended Posts

Posted

This is a very easy modification for configure the starting lvl of characters.

 

Index: /Trunk/L2_GameServer/java/config/Maxcheaters.properties
===================================================================
--- /Trunk/L2_GameServer/java/config/Maxcheaters.properties (revision 37)
+++ /Trunk/L2_GameServer/java/config/Maxcheaters.properties (revision 38)
@@ -121,2 +121,9 @@
# UseDefaultSystem need to be False!
UseCostumSystem = False
+
+#---------------------------------------------------------------
+# Character settings                                           -
+#---------------------------------------------------------------
+# Allow costum starting lvl False by default
+# lvl 85 and 100% instantly
+CostumStartLvl = False
Index: /Trunk/L2_GameServer/java/net/sf/l2j/Config.java
===================================================================
--- /Trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 37)
+++ /Trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 38)
@@ -704,4 +704,5 @@
	public static boolean DEFAULT_PK_SYSTEM;
	public static boolean COSTUM_PK_SYSTEM;
+	public static boolean ALLOW_CREATE_LVL;

	//--------------------------------------------------
@@ -1383,4 +1384,5 @@
					DEFAULT_PK_SYSTEM = Boolean.parseBoolean(maxcheatersSettings.getProperty("UseDefaultSystem", "True"));
					COSTUM_PK_SYSTEM = Boolean.parseBoolean(maxcheatersSettings.getProperty("UseCostumSystem", "False"));
+					ALLOW_CREATE_LVL = Boolean.parseBoolean(maxcheatersSettings.getProperty("CostumStartLvl", "False"));
				}
				catch (Exception e)
Index: /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
===================================================================
--- /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 7)
+++ /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 38)
@@ -67,4 +67,5 @@
	private byte _hairColor;
	private byte _face;
+	private long _exp;

	@Override
@@ -84,4 +85,5 @@
		_hairColor = (byte)readD();
		_face      = (byte)readD();
+		_exp	   = 25314000000L;
	}

@@ -174,4 +176,9 @@

		newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);
+		if(Config.ALLOW_CREATE_LVL)
+		{
+			newChar.removeExpAndSp(newChar.getExp(), 0); 
+			newChar.addExpAndSp(_exp, 0);
+		}
		newChar.setTitle("");

 

 

 

Credits to VaNeSs11 from l2jfree forum because of the basics of the code and for me for the config option.

I'm tired so when i get up i share it with a .diff file.

 

  • 2 weeks later...
  • 2 weeks later...
Posted

This only works with eclipse and latest gracia version?

Cuz I have server interlude and don't have more versions to compile >.< .

Thx.

Posted

This only works with eclipse and latest gracia version?

Cuz I have server interlude and don't have more versions to compile >.< .

Thx.

it works on all cronicle i think i work only with the newest chronicle

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



×
×
  • 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