GameBlonD Posted February 18, 2009 Posted February 18, 2009 Pws mporo na kanw ta crystall scroll na min spaei to weapon? Quote
0 CaZaNoVa Posted February 18, 2009 Posted February 18, 2009 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 Quote
0 GameBlonD Posted February 18, 2009 Author Posted February 18, 2009 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 Quote
0 CaZaNoVa Posted February 18, 2009 Posted February 18, 2009 1on dn s milisa etsi egw prosexe pos milas ...mathame oloi na brizoume amesos 2on signomi diko m lathos s sosto section eise... Quote
0 Stealth Posted February 19, 2009 Posted February 19, 2009 Loipon Ston fakelo configs sto L2JArchid exei ena arxeio rates.properties Allazeis aftin edw tin grammi: EnchantChanceCrystal = 75 Se auth: EnchantChanceCrystal = 100 Quote
0 GameBlonD Posted February 19, 2009 Author Posted February 19, 2009 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 ;) Quote
0 GameBlonD Posted February 19, 2009 Author Posted February 19, 2009 ti pack xrhsimopoieis? l2jfree int? [l2jarchid] il Quote
0 fdLP. Posted February 19, 2009 Posted February 19, 2009 oh , now i saw it(u had it in your tittle).. ok i will check it and ill tell you Quote
0 GameBlonD Posted February 19, 2009 Author Posted February 19, 2009 oh , now i saw it(u had it in your tittle).. ok i will check it and ill tell you ok,ty ;p Quote
0 Kràtos Posted February 19, 2009 Posted February 19, 2009 Einai megalos kodikos .... tsekare RequestEnchantItem.java mporeis na to vreis sto gameserver/clientpacket...! Quote
0 fdLP. Posted February 19, 2009 Posted February 19, 2009 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 Quote
Question
GameBlonD
Pws mporo na kanw ta crystall scroll na min spaei to weapon?
11 answers to this question
Recommended Posts
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.