Skip to content

Crystall scrolls [l2jarchid]

Featured Replies

Pws mporo na kanw  ta crystall scroll na min spaei to weapon?

1on eise se lathos section

2on psakse mesa sto fakelo tou gameserver sta settings prepei na exei ena enchant arxeio an thimame kala ...nomizw etsi einai sto archid pack

  • Author

1on eise se lathos section

2on psakse mesa sto fakelo tou gameserver sta settings prepei na exei ena enchant arxeio an thimame kala ...nomizw etsi einai sto archid pack

dekto

1on dn s milisa etsi egw prosexe pos milas ...mathame oloi na brizoume amesos

2on signomi diko m lathos s sosto section eise...

Loipon Ston fakelo configs sto L2JArchid exei ena arxeio rates.properties

 

Allazeis aftin edw tin grammi:

EnchantChanceCrystal = 75

 

Se auth:

EnchantChanceCrystal = 100

  • Author

Loipon Ston fakelo configs sto L2JArchid exei ena arxeio rates.properties

 

Allazeis aftin edw tin grammi:

EnchantChanceCrystal = 75

 

Se auth:

EnchantChanceCrystal = 100

ama to kanw ayto eine gia chance den tha spaei to weapon teleios enoousa n pigenei +0 ;)

ti pack xrhsimopoieis? l2jfree int?

oh , now i saw it(u had it in your tittle).. ok i will check it and ill tell you

  • Author

oh , now i saw it(u had it in your tittle).. ok i will check it and ill tell you

ok,ty ;p

Einai megalos kodikos .... tsekare RequestEnchantItem.java mporeis na to vreis sto gameserver/clientpacket...!

testare auton ton kodika ...

 

Config.java - Diff Patch

Index: Config.java
===================================================================
--- Config.java	(revision 396)
+++ Config.java	(working copy)
@@ -755,7 +755,10 @@
     public static int ENCHANT_MAX_ARMOR;
     public static int ENCHANT_MAX_JEWELRY;
     public static int ENCHANT_SAFE_MAX;
-    public static int ENCHANT_SAFE_MAX_FULL;
+    public static int ENCHANT_SAFE_MAX_FULL;
+	public static boolean		ENCHANT_BREAK_WEAPON_CRYSTAL;
+	public static boolean		ENCHANT_BREAK_ARMOR_CRYSTAL;
+	public static boolean		ENCHANT_BREAK_JEWELRY_CRYSTAL;
     
	// *******************************************************************************************
	public static void loadRatesConfig()
@@ -801,7 +804,11 @@
             /*limit of safe enchant normal */
             ENCHANT_SAFE_MAX = Integer.parseInt(ratesSettings.getProperty("EnchantSafeMax", "3"));
             /*limit of safe enchant full */
-            ENCHANT_SAFE_MAX_FULL = Integer.parseInt(ratesSettings.getProperty("EnchantSafeMaxFull", "4"));
+            ENCHANT_SAFE_MAX_FULL = Integer.parseInt(ratesSettings.getProperty("EnchantSafeMaxFull", "4"));
+			
+			ENCHANT_BREAK_WEAPON_CRYSTAL = Boolean.parseBoolean(ratesSettings.getProperty("EnchantBreakWeaponCrystal", "True"));
+			ENCHANT_BREAK_ARMOR_CRYSTAL = Boolean.parseBoolean(ratesSettings.getProperty("EnchantBreakArmorCrystal", "True"));
+			ENCHANT_BREAK_JEWELRY_CRYSTAL = Boolean.parseBoolean(ratesSettings.getProperty("EnchantBreakJewelryCrystal", "True"));

             
             PLAYER_DROP_LIMIT               = Integer.parseInt(ratesSettings.getProperty("PlayerDropLimit", "3"));

 

RequestEnchantItem - Diff Patch

Index: RequestEnchantItem.java
===================================================================
--- RequestEnchantItem.java	(revision 396)
+++ RequestEnchantItem.java	(working copy)
@@ -83,6 +83,7 @@
         }
         int itemType2 = item.getItem().getType2();
         boolean enchantItem = false;
+		boolean enchantBreak = false;
         boolean blessedScroll = false;
         int crystalId = 0;

@@ -174,7 +175,7 @@
             for (int crystalscroll : CRYSTAL_SCROLLS)
                 if(scroll.getItemId() == crystalscroll)
                 {
-                    blessedScroll = true; break;
+                    blessedScroll = true;break;
                 }

         scroll = activeChar.getInventory().destroyItem("Enchant", scroll, activeChar, item);
@@ -211,6 +212,7 @@
         		{
         			chance = Config.ENCHANT_CHANCE_CRYSTAL;
         			maxEnchantLevel = Config.ENCHANT_MAX_WEAPON;
+					enchantBreak = Config.ENCHANT_BREAK_WEAPON_CRYSTAL;
         		}	
         else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR)	
         	for (int normalarmorscroll : NORMAL_ARMOR_SCROLLS)
@@ -230,6 +232,7 @@
         		{
         			chance = Config.ENCHANT_CHANCE_CRYSTAL;
         			maxEnchantLevel = Config.ENCHANT_MAX_ARMOR;
+					enchantBreak = Config.ENCHANT_BREAK_ARMOR_CRYSTAL;
         		}	
         else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY)	
         	for (int normaljewelscroll : NORMAL_ARMOR_SCROLLS)
@@ -249,6 +252,7 @@
         		{
         			chance = Config.ENCHANT_CHANCE_CRYSTAL;
         			maxEnchantLevel = Config.ENCHANT_MAX_JEWELRY;
+					enchantBreak = Config.ENCHANT_BREAK_JEWELRY_CRYSTAL;
         		}

         if (item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX

 

rate.prop

EnchantBreakWeaponCrystal = True
EnchantBreakArmorCrystal = True
EnchantBreakJewelryCrystal = True

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.