Jump to content

[Share] Custom Enchant Points [INTERLUDE]


mxc

Recommended Posts

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?

Link to comment
Share on other sites

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

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.
Link to comment
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.
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

    • 🔥Grand opening 11.10.2024 , 20:00 Berlin Time, 21:00 Greece Time, 19:00 UK Time.🔥 Siege reward real $$ , check our website for more info about Siege reward! Facebook / Discord Giveaways are running ,check discord and faceboook.   🔥Interlude Server with Classic Systems & Interface.🔥   Rates: » Xp 100x. » Sp 100. » Adena Custom. » Drop Custom. » Starting character level - 76.   Enchant rates: »Safe Enchant: +3. »Safe Enchant Full-Armor: +4. »Max Enchant: +25 (Weapons) +14 (Armors). »Enchanting Chance: Normal Scroll [3-14=66%] [15-25=33%] | Blessed Scroll [3-14=60%] [15-25=30%]. Farm System Dynamic Auto Farm Zones : »Giants Cave [AOE too] »Elven Fortress »Cemetery 1-2 Extra Non Dynamic Farm Zones »Ketra Orcs »Forge of the Gods »Blazing Swamp (Up the Hill) »Tower of Insolence(AOE) Info : use item Drop Search from Community Board for Further Info Unique features: » Light [good FPS] Server Interface . » Main Town: Aden Castle Town. » Spawn Protection. » Custom NPC's. » Auto Learn Skills. » Caslte Siege every week . » Class Balance. » Skill Balance. » Flood Protection. » Walker Protection. » Chaotic Zones. » Custom Dynamic Farm Zones. » Custom PvP Zones. » Chaotic PvP Zone. » Stuckable Scolls. » Stuckalble BOGS. » Anti-Buff Shield skill & Instance. » Auto loot mobs. » No Auto Loot on Raids. » Auto Enchant Included. » Auto Free Farm included. » Dungeons included , Solo/Party. » All sieges work. » 4(Four) Clan Hall Sieges fully working. » Daily Custom Mission Manager. » Achievements Manager . » Anti-Buff Shield skill & Instance. » Shift Click on NPCS. » Click Remove Buffs included. » Double Click & Remove unwanted buffs. » 99,99% Uptime. » Dos Protection. » Anticheat Protection. and much more..   Voiced commands: .menu .onlinetime .events .register .unregister .pveevent .join .leave .mail .farm .remove .away .back .enchant .stop .vote .mystats .playersearch Event system: » Team Blue VS Team Red » DeathMatch » Raid In The Middle » Ultra Rapid Fire » Korean Style » Hot Wars » Capture the Flag » High Rate » Squash Event » Dwarf Event » Boss Event » Hitman » Daily Killer » Monthly Top 3 Clans,1500-750-250 Donate Coins as reward » Chest Event, chance for 100DonateCoins per kill » Happy Days: Daily Bonus Stats: Example every sunday 2% more enchant rate + Exp Sp e.t.c Olympiad game: »Max A-Grade gear. No enchant limitations. »Class or Non-Class based or both matches (Not decided yet). »Duration: 1 hour per day. »Cycle: 1 week Monday [ Pause] »Heroes every Sunday at 00:00 . »Boosted Hero Skills, Weapons. »(with Noblesse Gate Pass Rewards like books, enchants.).   More and all features --> https://www.l2eurogold.com/features.html L2Eurogold Wiki --> https://www.l2eurogold.com/wiki.html Server Roadmap --> Will be opened publicly 03.10.2024 500E Siege Reward for Januar Castle Siege --> https://discord.gg/4PMKPdF8Nx 🌍Website --> www.l2eurogold.com 🌐Discord Join Now--> https://discord.gg/PrpYPZYthm Facebook Oficial Page --> https://www.facebook.com/profile.php?id=100067739556286 Facebook fan Page --> https://www.facebook.com/groups/655629177972237/    
    • New reviews URL: https://smartaim.cc/index.php?/forum/33-cs2-cheats-reviews/ Update on 20 September, 2024. Our CS2 software still safe to use.  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/bDVQYKMUb3 https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/bDVQYKMUb3 https://campsite.bio/utchihaamkt  
    • Alguém tem esse mod para l2jfrozen? Já procurei em todo lugar e não achei. Alguém poderia disponibilizar? 🙂
  • Topics

×
×
  • Create New...