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

    • My official facebook profile!: https://www.facebook.com/spectrumL2 Specifications: Revamped L2JACIS revision FROM the core Private project!!! Revision that has been receiving corrections for over 3 years!!! Events already installed in the revision: TVT CTF KTB PARTY FARM SPOIL EVENT CRAZY RATES TOURNAMENT TIME ZONE (INSTANCE) All working correctly!!! SIEGE ESSENTIAL FEATURES: Walls fix Gates fix Flags fix 100% functional: OLYMPIADS: Implemented settings Hero receives enchanted Weapons with equal status PvP Weapons Optional /true/false Hero can acquire all Hero Weapons Optional true/false OTHER IMPLEMENTATIONS: Teleport fixed (directly to Giran) Teleport effect classic Vip skins vip collor name Pack NPCs with effect already configured BOSES already configured Mobs already configured CLASS BALANCE SPECIAL SYSTEM We have a SPECIAL system developed for Class Balance with only 1 digit in XML %tage of configurable debuffs Player limitation system in BOSES or PvP zones BS blocking system in FLEG zones or events Among others dozens of improvements made in the review... price: 390 USD !  OBS: WE CAN CHANGE THE BANNER AND NAME OF THE SERVICE TO THE ONE OF YOUR PREFERENCE BUT THE SETTINGS MUST BE KEPT ANY CHANGES REQUIRE ADDITION        
    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
  • 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