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

    • You talk too much go open L2Jhellas 😞 
    • 🌟 L2Avalon – Interlude Rework x20 – Grand Opening July 4! 🌟 📅 Server Launch: Open Beta: June 26, 18:00 GMT+3 Grand Opening: July 4, 2025 📦 Chronicle & Client: Reworked Interlude (based on latest High Five features) Custom launcher with up-to-date client support ⚔️ Rates & Progression: EXP/SP: Lv 1–39: x20 Lv 40–52: x15 Lv 52–60: x10 Lv 61–70: x8 Lv 71–75: x5 Lv 76–79: x4 → x3 Lv 80+: x2 Adena: x1 (subject to adjustment) Drop/Spoil/Raid Drop: x5 Quest Drop: custom Party Bonus: up to +290% EXP 🛠️ Core Features: Auto-loot (normal drops) Auto-learn skills up to level 75 High Five-style skill system with full rebalancing Passive MP regen: +1000 MP / 15s Inventory space: 150 slots Weight limit increased Auto CP/HP/MP potions Global chat from level 40 (!), offline shop (.offline), buff selling system (.sellbuff) 🔼 Class Progression: 1st & 2nd class: Free 3rd class: Kill 700 mobs → get 1 Giant Codex Subclass: Custom quest + 4 raid bosses + 1000 B-grade Crystals Noblesse: Either via Caradine's Letter (Lv 65+) or Noblesse box from raid bosses 🏪 NPC Shops & Support: GM Shop: Full D/C gear, Low B gear Luxury Shop: TOP B gear Donation Shop: Cosmetics, premium, etc. NPC Buffer: Save & load buff schemes (premium buffs for Premium Account) Mammon functions via NPC in Giran (unseal, augment, etc.) Offline Traders, Coin of Luck auction system Special blacksmiths and unique item services 💡 Why L2Avalon? Balanced seasonal x20 rates – smooth and long-term growth Quality-of-life systems for casual & hardcore players alike Custom skill system, refined raid rewards, and unique gear upgrades Active community, continuous development, and fair monetization Beta rewards & early start advantage 🔗 Useful Links: 🌐 Website: https://www.l2avalon.net 📘 Full Server Info: https://l2avalon-net.gitbook.io/info 💬 Discord: https://discord.gg/NbM2cXmAem 📝 Join the adventure this July! Prepare your characters during Beta and get rewarded at launch!  
    • You spent over a month calling a lot of people names. I get that you want to change, but it will take a lot more than this for me to believe its sincere. And honestly, for your apology to matter, I'd have to care enough to be offended in the first place.
    • we all love you very much Guytis💖 🤗
    • W/e u smoke there, i want aswell... life has been cruel all this time! Maybe it will help me
  • 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