Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java
- +++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java (working copy)
- // Count enchant
- public static int CUSTOM_ENCHANT_VALUE;
- + // First Enchant
- + public static byte CUSTOM_FIRST_ENCHANT;
- /** Olympiad max enchant limitation */
- public static int ALT_OLY_ENCHANT_LIMIT;
- SOUL_CRYSTAL_LEVEL_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("SoulCrystalLevelChance", "32"));
- SOUL_CRYSTAL_MAX_LEVEL = Integer.parseInt(ENCHANTSetting.getProperty("SoulCrystalMaxLevel", "13"));
- /** count enchant **/
- CUSTOM_ENCHANT_VALUE = Integer.parseInt(ENCHANTSetting.getProperty("CustomEnchantValue", "1"));
- + // First Enchant
- + CUSTOM_FIRST_ENCHANT = Byte.parseByte(ENCHANTSetting.getProperty("CustomFirstEnchant", "5"));
- ALT_OLY_ENCHANT_LIMIT = Integer.parseInt(ENCHANTSetting.getProperty("AltOlyMaxEnchant", "-1"));
- MAX_ITEM_ENCHANT_KICK = Integer.parseInt(ENCHANTSetting.getProperty("EnchantKick", "0"));
- GM_OVER_ENCHANT = Integer.parseInt(ENCHANTSetting.getProperty("GMOverEnchant", "0"));
- Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java
- ===================================================================
- --- L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java
- +++ L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (working copy)
- sm.addItemName(item.getItemId());
- activeChar.sendPacket(sm);
- }
- - item.setEnchantLevel(item.getEnchantLevel() + Config.CUSTOM_ENCHANT_VALUE);
- + item.setEnchantLevel(item.getEnchantLevel() == 0 ? Config.CUSTOM_FIRST_ENCHANT : item.getEnchantLevel() + Config.CUSTOM_ENCHANT_VALUE);
- item.updateDatabase();
- }
- else
- {
- if (crystalScroll)
- {
- activeChar.sendPacket(new CreatureSay(0, 15, Config.PM_SERVER_NAME, "Failed Crystal Enchant. The enchant value of the item become " + Config.CRYSTAL_BACK));
- }
- Index: L2jFrozen_GameServer/config/head/enchant.properties
- ===================================================================
- --- L2jFrozen_GameServer/config/head/enchant.properties
- +++ L2jFrozen_GameServer/config/head/enchant.properties (working copy)
- # Total: 15 for three to scroll
- # Default: 1
- CustomEnchantValue = 1
- +
- +# Example, weapon +0 to +5 with first enchant
- +# Default: 1
- +CustomFirstEnchant = 5
- # --------------------------
- # Augmentation -
- # --------------------------
Advertisement
Add Comment
Please, Sign In to add comment