Jump to content

Recommended Posts

Posted

What is the custom Enchant points?

Means:

All have different grade of equipment to strengthen points, points can customize ...

 

For example:

D grade equipment, scrolls to use an enhanced +1 (This is the official set), but we can change his values.

 

Becomes:

D grade equipment, scrolls to use an enhanced + X, (X is the value you set) ...

 

But the key is not here.

We can also set the X1, X2, X3, X4 ... to correspond to C grade, B grade, A grade, S grade ..

 

This work is very easy ..

So, here goes:

 

1) First open Config.java:

Found:

public static boolean ENCHANT_HERO_WEAPONS;

 

Added later:

	/** Custom Enchant Points? */
public static boolean CUSTOM_ENCHANT_POINTS;
public static int ENCHANT_D_GRADE_POINTS;
public static int ENCHANT_C_GRADE_POINTS;
public static int ENCHANT_B_GRADE_POINTS;
public static int ENCHANT_A_GRADE_POINTS;
public static int ENCHANT_S_GRADE_POINTS;

 

 

Find:

ENCHANT_HERO_WEAPONS = Boolean.parseBoolean(Enchant.getProperty("EnchantHeroWeapons", "False"));

 

Added later:

					/* custom enchant point  */
				CUSTOM_ENCHANT_POINTS = Boolean.parseBoolean(Enchant.getProperty("CustomEnchantPoints", "False"));
				ENCHANT_D_GRADE_POINTS = Integer.parseInt(Enchant.getProperty("EnchantDGradePoints", "1"));
				ENCHANT_C_GRADE_POINTS = Integer.parseInt(Enchant.getProperty("EnchantCGradePoints", "1"));
				ENCHANT_B_GRADE_POINTS = Integer.parseInt(Enchant.getProperty("EnchantBGradePoints", "1"));
				ENCHANT_A_GRADE_POINTS = Integer.parseInt(Enchant.getProperty("EnchantAGradePoints", "1"));
				ENCHANT_S_GRADE_POINTS = Integer.parseInt(Enchant.getProperty("EnchantSGradePoints", "1"));

 

 

 

2) Next open: enchant.properties

Found:

EnchantHeroWeapons = False

 

Added later:

# Allow custom Enchant points (default: False)
CustomEnchantPoints = False

# D grade equipment (weapons / armor / jewelry) effect:  Enhanced + 1 eq +X  (official: 1)
EnchantDGradePoints = 1

# C  grade equipment (weapons / armor / jewelry) effect:  Enhanced + 1 eq +X  (official: 1)
EnchantCGradePoints = 1

# B  grade equipment (weapons / armor / jewelry) effect:  Enhanced + 1 eq +X  (official: 1)
EnchantBGradePoints = 1

# A  grade equipment (weapons / armor / jewelry) effect:  Enhanced + 1 eq +X  (official: 1)
EnchantAGradePoints = 1

# S  grade equipment (weapons / armor / jewelry) effect:  Enhanced + 1 eq +X  (official: 1)
EnchantSGradePoints = 1

 

 

3) Finally, in the directory: java \ net \ sf \ l2j \ gameserver \ network \ clientpackets

Open:

RequestEnchantItem.java

 

Editing and adding:

Find:

boolean enchantItem = false;

boolean blessedScroll = false;

int crystalId = 0;

Added later:

		int enchpoint = 0;

 

 

Find:

case L2Item.CRYSTAL_A:

crystalId = 1461;

Added later:

			if (!Config.CUSTOM_ENCHANT_POINTS)
			enchpoint = 1;
		else 
			enchpoint = Config.ENCHANT_A_GRADE_POINTS;

 

Find:

case L2Item.CRYSTAL_B:

crystalId = 1460;

Added later:

			if (!Config.CUSTOM_ENCHANT_POINTS)
			enchpoint = 1;
		else 
			enchpoint = Config.ENCHANT_B_GRADE_POINTS;

 

Find:

case L2Item.CRYSTAL_C:

crystalId = 1459;

Added later:

			if (!Config.CUSTOM_ENCHANT_POINTS)
			enchpoint = 1;
		else 
			enchpoint = Config.ENCHANT_C_GRADE_POINTS;

 

Find:

case L2Item.CRYSTAL_D:

crystalId = 1458;

Added later:

			if (!Config.CUSTOM_ENCHANT_POINTS)
			enchpoint = 1;
		else 
			enchpoint = Config.ENCHANT_D_GRADE_POINTS;

 

Find:

case L2Item.CRYSTAL_S:

crystalId = 1462;

Added later:

			if (!Config.CUSTOM_ENCHANT_POINTS)
			enchpoint = 1;
		else 
			enchpoint = Config.ENCHANT_S_GRADE_POINTS;

 

Find:

item.setEnchantLevel(item.getEnchantLevel() + 1);

 

Modify:

				item.setEnchantLevel(item.getEnchantLevel() + enchpoint);

 

 

All work done!

Now, compile your source code, test, are you into the game .. 

 

The reason I do this, just to stand-alone.

You do not want to hold +100 D Top Weapon levelup to 80, Right?

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

I do not understand anything in your code

You 've gotta be so idiot lol, it's a different enchant value for scrolls. For example if your weapon is +0 and you add an enchant scroll it is going to become +2/+3 , regarding to the value that you set on the config.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



  • Posts

    • I wouldn't expect something less, since you work with Psadek (or I maybe mistake you with NightW0lf from itopz, in that case soz) Let's throw rocks at Java Golds and elevate "original L2OFF Golds", no?
    • We are delighted to announce our partnership with the leading resource, Active Anticheat, specializing in protection against bot programs, clickers, and additional modules for the game client that enhance the experience for both you and the players!   When you purchase Active Anticheat for our product, you will also receive a $50 discount.   Here's a brief overview of the features of Active Anticheat: Best protection against bots, including private and premium versions. Window limitation. HWID spoofing protection. Virtual machine protection. File hash protection for client files, preventing players from modifying them (e.g., interface files). Encryption of any game files. Integration with Discord to attract new players! Additional plugins: - Window with saved player logins/passwords. Players no longer need to enter them every time! - HWID sending to the game server. - Game window optimizer for quick switching. - Background FPS adjustment. - Window name customization in the format "%character_name% - %server_name%". - Ctrl+C/V permission. - Login and password saving (for Interlude -> High Five). - Launching the browser via server packets. - Launching interface events via server packets. - Interlude: fixing a known game bug (History: UpdateAnimation <- AActor::Tick <- TickAllActors <- ULevel::Tick <- (NetMode=0) <- TickLevel <- UGameEngine::Tick <- UpdateWorld <- MainLoop). - Interlude: debuff feature. 9) All of this is available without modifying the game server code (some plugins may require minor changes). Take note of newest plugin, which is highly useful: Guides section
    • The Lucera2 Multiprotocol is an advanced server branch for Lineage 2 that enables seamless support for multiple client versions on a single server instance. This allows players to connect and play using either the legacy (old) client or the newer Classic client simultaneously, without any compatibility issues or loss of functionality. Key Benefits Dual Client Support: Both the old Interlude client and Classic: Secret of Empire 2.6 client can run concurrently on the same server. All features from the Classic client (e.g., enhanced UI, new mechanics) remain fully available, while the old client retains its alternative features (e.g., simplified interfaces for lower-end hardware). Expanded Player Base: Ideal for regions with limited access to modern gaming setups, as it accommodates a wider range of devices and preferences, merging Legacy and Classic communities into one forum section for unified discussions. No Functionality Gaps: Extensive testing ensures zero disruptions—players on either client experience complete game integrity, including quests, PvP, raids, and custom Lucera2 subsystems. You can fully test and explore all aspects of Multiprotocol on the dedicated Test Server. Supported Protocols C6 (Old Client): Protocol versions 740–770. Classic Client (Secret of Empire 2.6): Protocol versions 166–192.
    • Connect to the server you need to >>>download<<< game client launch from /system_en/. Login server setup on auto registration, admin rights in game by default . Or you can use a patch specifying the l2.ini Connect to address classic.lucera2.com if you already have a game client Download updated patch All major/minor subsystems operate in a proper view. Absolutely ready to combat the server.
  • 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