Jump to content

Recommended Posts

Posted

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

Posted

+				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

Posted

+				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.

Posted

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.

Posted

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();

Posted

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 ..  ;)

Posted

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

Posted

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.

Posted

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.

Guest
This topic is now closed to further replies.


  • Posts

    • Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects. If you are interested in anything like Adena, Coins, Equip, write to us Discord - pchelacoin Telegram - https://t.me/ipchelacoin BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM TOP PRICE !!!!!!!
    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
  • 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