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



  • Posts

    • There is a ready-made option and the possibility to work according to "Wishlist"
    • Contact me, Discord: xbaus
    • WTB GRACIA FINAL INTERFACE
    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • 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