Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

[SHARE] Custom starting lvl


Recommended Posts

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.

 

Share this post


Link to post
Share on other sites
  • Replies 60
  • Created
  • Last Reply

Top Posters In This Topic

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

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.