Jump to content

Enchant after break with crystal scroll.


Recommended Posts

Hey guys !!

This is my first code ever so i'm really happy for it.

It's just a simple code.

 

How it works:

So, it's the enchant that remains when a weapon/armor/etc. break, after enchanting it with crystal scrolls.

Enchant after break with crystal scroll. Tested in l2jfrozen, works fine.

 

Coded for Interlude: L2JFrozen

Credits: Me

=============================================================
head-src/com/l2jfrozen/config.java (rev 988)
=============================================================
+++ 2903

public static int BREAK_ENCHANT;
+	public static int BREAK_ENCHANT2; 
public static int GM_OVER_ENCHANT;
=============================================================
head-src/com/l2jfrozen/config.java (rev 988)
=============================================================
+++ 3208

		BREAK_ENCHANT = Integer.valueOf(ENCHANTSetting.getProperty("BreakEnchant", "0"));
+			BREAK_ENCHANT2 = Integer.valueOf(ENCHANTSetting.getProperty("BreakEnchant2", "0"));
+			
		MAX_ITEM_ENCHANT_KICK = Integer.parseInt(ENCHANTSetting.getProperty("EnchantKick", "0"));


======================================================================
com/l2jfrozen/gameserver/network/clientpackets/requestEnchantItem.java
======================================================================
+++ 699

		if(blessedScroll){
			item.setEnchantLevel(Config.BREAK_ENCHANT);
			item.updateDatabase();
+				else if(crystalScroll){
+					item.setEnchantLevel(Config.BREAK_ENCHANT2);
+					item.updateDatabase();
			}else if(crystalScroll){
			item.setEnchantLevel(Config.CRYSTAL_ENCHANT_MIN);
			item.updateDatabase();


======================================================================
l2jfrozen_gameserver/config/head/enchant.properties
======================================================================
+++ 127,128,129

# Enchant after break with blessed scroll.
BreakEnchant = 0
+
+# Enchant after break with crystal scroll.
+BreakEnchant2 = 0
+
# Limit enchant GM players (// setew and others) (0 disabled)
GMOverEnchant = 0

Link to comment
Share on other sites

+				if(crystalScroll){

 

to

 

+				else if(crystalScroll){

 

the ressults will be the same, but definetly there whould be an else there, anyway gj keep up and soon you will make smth great

Link to comment
Share on other sites

+				if(crystalScroll){

 

to

 

+				else if(crystalScroll){

 

the ressults will be the same, but definetly there whould be an else there, anyway gj keep up and soon you will make smth great

Fixed.

Thanks a lot for kind words. :)

I really respect you as developer so that means a lot to me.

Link to comment
Share on other sites

lol the config "crystal_enchant_min" is the same as your code...when break it will back to the value you did on config..

Code was tested and it worked without any problems.

Link to comment
Share on other sites

didnt said its bugged...i said u posted an existed code on frozen pack

 

			}else if(crystalScroll){
			item.setEnchantLevel(Config.CRYSTAL_ENCHANT_MIN);
			item.updateDatabase();

You are wrong here.. anyway this not exist on frozen.

This is for crystal scrolls not for blessed. Frozen has only for blessed scrolls not for crystal.

Anyway let's stop spamming ..  ;)

Link to comment
Share on other sites

Dude Crystal Min Enchant is for crystals...frozen have for both options lol

If u make Crystal Min Enchant 6 when it faisl its gonna back to +6

I don't know if that works but in any case if someone want to use my code then he/she can do it. :)

That's all.

Link to comment
Share on other sites

Dude Crystal Min Enchant is for crystals.....frozen have for both options lol

 

Indeed, it cointain option for MINIMAL enchant in order to use crystal, but not to keeping X + while break. At least I guess so.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • 📢 𝗦𝐭𝐚𝐫𝐭 𝐨𝐧 𝟐𝟲/𝟏𝟎/𝟐𝟎𝟐𝟒  𝟏6:𝟎𝟎 𝑳𝒐𝒏𝒅𝒐𝒏 𝑻𝒊𝒎𝒆 ⚔️ 𝗥𝗮𝘁𝗲𝘀: 𝗫𝗣 𝟐𝟱𝐗, 𝗔𝗱𝗲𝗻𝗮 𝟏𝟎𝐗, 𝗦𝗽𝗼𝗶𝗹 𝟏𝟎𝐗, 𝗗𝗿𝗼𝗽 7𝐗, 💬 𝗠𝗮𝘅 𝗲𝗻𝗰𝗵𝗮𝗻𝘁 +𝟭𝟲 𝘄𝗶𝘁𝗵 𝟱𝟎% 𝗻𝗼𝗿𝗺𝗮𝗹 𝗮𝗻𝗱 𝟲𝟎% 𝗯𝗹𝗲𝘀𝘀𝗲𝗱, 👉 𝗔𝘂𝘁𝗼 𝗲𝘃𝗲𝗻𝘁𝘀 🌍 𝗪𝗲𝗯𝗦𝗶𝘁𝗲: https://l2glorious.online/
    • Well, I'm looking for errors like the 1599 bug in attack speed bro Well, I'm looking for errors like the 1599 bug in attack speed bro
    • Hey! I’ve run into similar issues before. They usually track you through IPs, cookies, and sometimes even browser fingerprints, so just changing your MAC or IP probably won’t do the trick. I found that using a VPN really helps mask your IP, and clearing your cookies regularly makes a big difference. Also, browsing in incognito mode or using something like the Brave browser can help keep things private.
    • If you're trying to boost your attack speed in Interlude, I'd recommend focusing on optimizing your gear and skills instead of hunting for bugs. I’ve found that mixing up your equipment and looking for buffs that enhance attack speed can make a big difference. It’s also worth experimenting with different skill combos to maximize your damage output.
    • That code is shared of "Server Shares & Files [L2J]" section. Requires Java source of the server and interface modification.
  • Topics

×
×
  • Create New...