Jump to content
  • 0

Crystall scrolls [l2jarchid]


GameBlonD

Question

11 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

 

Allazeis aftin edw tin grammi:

EnchantChanceCrystal = 75

 

Se auth:

EnchantChanceCrystal = 100

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

 

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
Answer this question...

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



×
×
  • Create New...