|
@@ -1,364 +0,0 @@
|
|
-/*
|
|
|
|
- * This program is free software: you can redistribute it and/or modify it under
|
|
|
|
- * the terms of the GNU General Public License as published by the Free Software
|
|
|
|
- * Foundation, either version 3 of the License, or (at your option) any later
|
|
|
|
- * version.
|
|
|
|
- *
|
|
|
|
- * This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
- * details.
|
|
|
|
- *
|
|
|
|
- * You should have received a copy of the GNU General Public License along with
|
|
|
|
- * this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
- */
|
|
|
|
-package com.l2jserver.gameserver.network.clientpackets;
|
|
|
|
-
|
|
|
|
-import gnu.trove.map.hash.TIntObjectHashMap;
|
|
|
|
-
|
|
|
|
-import java.util.Arrays;
|
|
|
|
-
|
|
|
|
-import com.l2jserver.Config;
|
|
|
|
-import com.l2jserver.gameserver.model.item.L2Item;
|
|
|
|
-import com.l2jserver.gameserver.model.item.instance.L2ItemInstance;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-public abstract class AbstractEnchantPacket extends L2GameClientPacket
|
|
|
|
-{
|
|
|
|
-
|
|
|
|
- public static final TIntObjectHashMap<EnchantScroll> _scrolls = new TIntObjectHashMap<EnchantScroll>();
|
|
|
|
- public static final TIntObjectHashMap<EnchantItem> _supports = new TIntObjectHashMap<EnchantItem>();
|
|
|
|
-
|
|
|
|
- public static class EnchantItem
|
|
|
|
- {
|
|
|
|
- protected final boolean _isWeapon;
|
|
|
|
- protected final int _grade;
|
|
|
|
- protected final int _maxEnchantLevel;
|
|
|
|
- protected final int _chanceAdd;
|
|
|
|
- protected final int[] _itemIds;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param wep
|
|
|
|
- * @param type
|
|
|
|
- * @param level
|
|
|
|
- * @param chance
|
|
|
|
- * @param items
|
|
|
|
- */
|
|
|
|
- public EnchantItem(boolean wep, int type, int level, int chance, int[] items)
|
|
|
|
- {
|
|
|
|
- _isWeapon = wep;
|
|
|
|
- _grade = type;
|
|
|
|
- _maxEnchantLevel = level;
|
|
|
|
- _chanceAdd = chance;
|
|
|
|
- _itemIds = items;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param enchantItem
|
|
|
|
- * @return true if support item can be used for this item
|
|
|
|
- */
|
|
|
|
- public final boolean isValid(L2ItemInstance enchantItem)
|
|
|
|
- {
|
|
|
|
- if (enchantItem == null)
|
|
|
|
- return false;
|
|
|
|
-
|
|
|
|
- int type2 = enchantItem.getItem().getType2();
|
|
|
|
-
|
|
|
|
- // checking scroll type and configured maximum enchant level
|
|
|
|
- switch (type2)
|
|
|
|
- {
|
|
|
|
- // weapon scrolls can enchant only weapons
|
|
|
|
- case L2Item.TYPE2_WEAPON:
|
|
|
|
- if (!_isWeapon
|
|
|
|
- || (Config.ENCHANT_MAX_WEAPON > 0 && enchantItem.getEnchantLevel() >= Config.ENCHANT_MAX_WEAPON))
|
|
|
|
- return false;
|
|
|
|
- break;
|
|
|
|
- // armor scrolls can enchant only accessory and armors
|
|
|
|
- case L2Item.TYPE2_SHIELD_ARMOR:
|
|
|
|
- if (_isWeapon
|
|
|
|
- || (Config.ENCHANT_MAX_ARMOR > 0 && enchantItem.getEnchantLevel() >= Config.ENCHANT_MAX_ARMOR))
|
|
|
|
- return false;
|
|
|
|
- break;
|
|
|
|
- case L2Item.TYPE2_ACCESSORY:
|
|
|
|
- if (_isWeapon
|
|
|
|
- || (Config.ENCHANT_MAX_JEWELRY > 0 && enchantItem.getEnchantLevel() >= Config.ENCHANT_MAX_JEWELRY))
|
|
|
|
- return false;
|
|
|
|
- break;
|
|
|
|
- default:
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // check for crystal types
|
|
|
|
- if (_grade != enchantItem.getItem().getItemGradeSPlus())
|
|
|
|
- return false;
|
|
|
|
-
|
|
|
|
- // check for maximum enchant level
|
|
|
|
- if (_maxEnchantLevel != 0 && enchantItem.getEnchantLevel() >= _maxEnchantLevel)
|
|
|
|
- return false;
|
|
|
|
-
|
|
|
|
- if(_itemIds != null && Arrays.binarySearch(_itemIds, enchantItem.getItemId()) < 0)
|
|
|
|
- return false;
|
|
|
|
-
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return chance increase
|
|
|
|
- */
|
|
|
|
- public final int getChanceAdd()
|
|
|
|
- {
|
|
|
|
- return _chanceAdd;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public static final class EnchantScroll extends EnchantItem
|
|
|
|
- {
|
|
|
|
- private final boolean _isBlessed;
|
|
|
|
- private final boolean _isCrystal;
|
|
|
|
- private final boolean _isSafe;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param wep
|
|
|
|
- * @param bless
|
|
|
|
- * @param crystal
|
|
|
|
- * @param safe
|
|
|
|
- * @param type
|
|
|
|
- * @param level
|
|
|
|
- * @param chance
|
|
|
|
- * @param items
|
|
|
|
- */
|
|
|
|
- public EnchantScroll(boolean wep, boolean bless, boolean crystal, boolean safe, int type, int level, int chance, int[] items)
|
|
|
|
- {
|
|
|
|
- super(wep, type, level, chance, items);
|
|
|
|
-
|
|
|
|
- _isBlessed = bless;
|
|
|
|
- _isCrystal = crystal;
|
|
|
|
- _isSafe = safe;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return true for blessed scrolls
|
|
|
|
- */
|
|
|
|
- public final boolean isBlessed()
|
|
|
|
- {
|
|
|
|
- return _isBlessed;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return true for crystal scrolls
|
|
|
|
- */
|
|
|
|
- public final boolean isCrystal()
|
|
|
|
- {
|
|
|
|
- return _isCrystal;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return true for safe-enchant scrolls (enchant level will remain on failure)
|
|
|
|
- */
|
|
|
|
- public final boolean isSafe()
|
|
|
|
- {
|
|
|
|
- return _isSafe;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param enchantItem
|
|
|
|
- * @param supportItem
|
|
|
|
- * @return
|
|
|
|
- */
|
|
|
|
- public final boolean isValid(L2ItemInstance enchantItem, EnchantItem supportItem)
|
|
|
|
- {
|
|
|
|
- // blessed scrolls can't use support items
|
|
|
|
- if (supportItem != null && (!supportItem.isValid(enchantItem) || isBlessed()))
|
|
|
|
- return false;
|
|
|
|
-
|
|
|
|
- return isValid(enchantItem);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param enchantItem
|
|
|
|
- * @param supportItem
|
|
|
|
- * @return
|
|
|
|
- */
|
|
|
|
- public final int getChance(L2ItemInstance enchantItem, EnchantItem supportItem)
|
|
|
|
- {
|
|
|
|
- if (!isValid(enchantItem, supportItem))
|
|
|
|
- return -1;
|
|
|
|
-
|
|
|
|
- boolean fullBody = enchantItem.getItem().getBodyPart() == L2Item.SLOT_FULL_ARMOR;
|
|
|
|
- if (enchantItem.getEnchantLevel() < Config.ENCHANT_SAFE_MAX
|
|
|
|
- || (fullBody && enchantItem.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL))
|
|
|
|
- return 100;
|
|
|
|
-
|
|
|
|
- boolean isAccessory = enchantItem.getItem().getType2() == L2Item.TYPE2_ACCESSORY;
|
|
|
|
- int chance = 0;
|
|
|
|
-
|
|
|
|
- if (_isBlessed)
|
|
|
|
- {
|
|
|
|
- // blessed scrolls does not use support items
|
|
|
|
- if (supportItem != null)
|
|
|
|
- return -1;
|
|
|
|
-
|
|
|
|
- if (_isWeapon)
|
|
|
|
- chance = Config.BLESSED_ENCHANT_CHANCE_WEAPON;
|
|
|
|
- else if (isAccessory)
|
|
|
|
- chance = Config.BLESSED_ENCHANT_CHANCE_JEWELRY;
|
|
|
|
- else
|
|
|
|
- chance = Config.BLESSED_ENCHANT_CHANCE_ARMOR;
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- if (_isWeapon)
|
|
|
|
- chance = Config.ENCHANT_CHANCE_WEAPON;
|
|
|
|
- else if (isAccessory)
|
|
|
|
- chance = Config.ENCHANT_CHANCE_JEWELRY;
|
|
|
|
- else
|
|
|
|
- chance = Config.ENCHANT_CHANCE_ARMOR;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- chance += _chanceAdd;
|
|
|
|
-
|
|
|
|
- if (supportItem != null)
|
|
|
|
- chance += supportItem.getChanceAdd();
|
|
|
|
-
|
|
|
|
- return chance;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- static
|
|
|
|
- {
|
|
|
|
- // itemId, (isWeapon, isBlessed, isCrystal, isSafe, grade, max enchant level, chance increase, allowed item IDs)
|
|
|
|
- // allowed items IDs must be sorted by ascending order
|
|
|
|
- // Scrolls: Enchant Weapon
|
|
|
|
- _scrolls.put(729, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_A, 0, 0, null));
|
|
|
|
- _scrolls.put(947, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_B, 0, 0, null));
|
|
|
|
- _scrolls.put(951, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_C, 0, 0, null));
|
|
|
|
- _scrolls.put(955, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_D, 0, 0, null));
|
|
|
|
- _scrolls.put(959, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_S, 0, 0, null));
|
|
|
|
- // Scrolls: Enchant Armor
|
|
|
|
- _scrolls.put(730, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_A, 0, 0, null));
|
|
|
|
- _scrolls.put(948, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_B, 0, 0, null));
|
|
|
|
- _scrolls.put(952, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_C, 0, 0, null));
|
|
|
|
- _scrolls.put(956, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_D, 0, 0, null));
|
|
|
|
- _scrolls.put(960, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_S, 0, 0, null));
|
|
|
|
-
|
|
|
|
- // Blessed Scrolls: Enchant Weapon
|
|
|
|
- _scrolls.put(6569, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_A, 0, 0, null));
|
|
|
|
- _scrolls.put(6571, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_B, 0, 0, null));
|
|
|
|
- _scrolls.put(6573, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_C, 0, 0, null));
|
|
|
|
- _scrolls.put(6575, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_D, 0, 0, null));
|
|
|
|
- _scrolls.put(6577, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_S, 0, 0, null));
|
|
|
|
- // Blessed Scrolls: Enchant Armor
|
|
|
|
- _scrolls.put(6570, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_A, 0, 0, null));
|
|
|
|
- _scrolls.put(6572, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_B, 0, 0, null));
|
|
|
|
- _scrolls.put(6574, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_C, 0, 0, null));
|
|
|
|
- _scrolls.put(6576, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_D, 0, 0, null));
|
|
|
|
- _scrolls.put(6578, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_S, 0, 0, null));
|
|
|
|
-
|
|
|
|
- // Crystal Scrolls: Enchant Weapon
|
|
|
|
- _scrolls.put(731, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_A, 0, 0, null));
|
|
|
|
- _scrolls.put(949, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_B, 0, 0, null));
|
|
|
|
- _scrolls.put(953, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_C, 0, 0, null));
|
|
|
|
- _scrolls.put(957, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_D, 0, 0, null));
|
|
|
|
- _scrolls.put(961, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_S, 0, 0, null));
|
|
|
|
- // Crystal Scrolls: Enchant Armor
|
|
|
|
- _scrolls.put(732, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_A, 0, 0, null));
|
|
|
|
- _scrolls.put(950, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_B, 0, 0, null));
|
|
|
|
- _scrolls.put(954, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_C, 0, 0, null));
|
|
|
|
- _scrolls.put(958, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_D, 0, 0, null));
|
|
|
|
- _scrolls.put(962, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_S, 0, 0, null));
|
|
|
|
-
|
|
|
|
- // Weapon Enchant Scrolls
|
|
|
|
- _scrolls.put(20517, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_S, 0, 10, null));
|
|
|
|
- _scrolls.put(22006, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_D, 0, 10, null));
|
|
|
|
- _scrolls.put(22007, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_C, 0, 10, null));
|
|
|
|
- _scrolls.put(22008, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_B, 0, 10, null));
|
|
|
|
- _scrolls.put(22009, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_A, 0, 10, null));
|
|
|
|
- // Armor Enchant Scrolls
|
|
|
|
- _scrolls.put(20518, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_S, 0, 10, null));
|
|
|
|
- _scrolls.put(22010, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_D, 0, 10, null));
|
|
|
|
- _scrolls.put(22011, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_C, 0, 10, null));
|
|
|
|
- _scrolls.put(22012, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_B, 0, 10, null));
|
|
|
|
- _scrolls.put(22013, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_A, 0, 10, null));
|
|
|
|
-
|
|
|
|
- // Ancient Weapon Enchant Crystal
|
|
|
|
- _scrolls.put(20519, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_S, 16, 10, null));
|
|
|
|
- _scrolls.put(22014, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_B, 16, 10, null));
|
|
|
|
- _scrolls.put(22015, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_A, 16, 10, null));
|
|
|
|
- // Ancient Armor Enchant Crystal
|
|
|
|
- _scrolls.put(20520, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_S, 16, 10, null));
|
|
|
|
- _scrolls.put(22016, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_B, 16, 10, null));
|
|
|
|
- _scrolls.put(22017, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_A, 16, 10, null));
|
|
|
|
-
|
|
|
|
- // Divine Weapon Enchant Crystal
|
|
|
|
- _scrolls.put(20521, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_S, 0, 100, null));
|
|
|
|
- _scrolls.put(22018, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_B, 0, 100, null));
|
|
|
|
- _scrolls.put(22019, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_A, 0, 100, null));
|
|
|
|
- // Divine Armor Enchant Crystal
|
|
|
|
- _scrolls.put(20522, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_S, 0, 100, null));
|
|
|
|
- _scrolls.put(22020, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_B, 0, 100, null));
|
|
|
|
- _scrolls.put(22021, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_A, 0, 100, null));
|
|
|
|
-
|
|
|
|
- // Destruction Weapon
|
|
|
|
- _scrolls.put(22229, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_D, 16, 0, null));
|
|
|
|
- _scrolls.put(22227, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_C, 16, 0, null));
|
|
|
|
- _scrolls.put(22225, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_B, 16, 0, null));
|
|
|
|
- _scrolls.put(22223, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_A, 16, 0, null));
|
|
|
|
- _scrolls.put(22221, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_S, 16, 0, null));
|
|
|
|
- // Destruction Armor
|
|
|
|
- _scrolls.put(22230, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_D, 16, 0, null));
|
|
|
|
- _scrolls.put(22228, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_C, 16, 0, null));
|
|
|
|
- _scrolls.put(22226, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_B, 16, 0, null));
|
|
|
|
- _scrolls.put(22224, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_A, 16, 0, null));
|
|
|
|
- _scrolls.put(22222, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_S, 16, 0, null));
|
|
|
|
-
|
|
|
|
- // PC Bang Enchants
|
|
|
|
- _scrolls.put(15346, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_S, 0, 0, new int[]{ 15313, 15314, 15315, 15316, 15317, 15318, 15319, 15320, 15321, 15322, 15323, 15324, 15325, 15326 }));
|
|
|
|
- _scrolls.put(15347, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_A, 0, 0, new int[]{ 13210, 13211, 13212, 13213, 13214, 13215, 13216, 13217, 13218, 13219, 13220, 13221, 13222, 13223, 13224 }));
|
|
|
|
- _scrolls.put(15348, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_B, 0, 0, new int[]{ 13194, 13195, 13196, 13197, 13198, 13199, 13200, 13201, 13202, 13203, 13204, 13205, 13206, 13207, 13208, 13209, }));
|
|
|
|
- _scrolls.put(15349, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_C, 0, 0, new int[]{ 13178, 13179, 13180, 13181, 13182, 13183, 13184, 13185, 13186, 13187, 13188, 13189, 13190, 13191, 13192, 13193 }));
|
|
|
|
- _scrolls.put(15350, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_D, 0, 0, new int[]{ 13163, 13164, 13165, 13166, 13167, 13168, 13169, 13170, 13171, 13172, 13173, 13174, 13175, 13176, 13177 }));
|
|
|
|
-
|
|
|
|
- // Master Yogi's Scroll Enchant Weapon (event)
|
|
|
|
- _scrolls.put(13540, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_NONE, 0, 0, new int[]{ 13539 }));
|
|
|
|
-
|
|
|
|
- // itemId, (isWeapon, grade, max enchant level, chance increase)
|
|
|
|
- _supports.put(12362, new EnchantItem(true, L2Item.CRYSTAL_D, 9, 20, null));
|
|
|
|
- _supports.put(12363, new EnchantItem(true, L2Item.CRYSTAL_C, 9, 18, null));
|
|
|
|
- _supports.put(12364, new EnchantItem(true, L2Item.CRYSTAL_B, 9, 15, null));
|
|
|
|
- _supports.put(12365, new EnchantItem(true, L2Item.CRYSTAL_A, 9, 12, null));
|
|
|
|
- _supports.put(12366, new EnchantItem(true, L2Item.CRYSTAL_S, 9, 10, null));
|
|
|
|
- _supports.put(12367, new EnchantItem(false, L2Item.CRYSTAL_D, 9, 35, null));
|
|
|
|
- _supports.put(12368, new EnchantItem(false, L2Item.CRYSTAL_C, 9, 27, null));
|
|
|
|
- _supports.put(12369, new EnchantItem(false, L2Item.CRYSTAL_B, 9, 23, null));
|
|
|
|
- _supports.put(12370, new EnchantItem(false, L2Item.CRYSTAL_A, 9, 18, null));
|
|
|
|
- _supports.put(12371, new EnchantItem(false, L2Item.CRYSTAL_S, 9, 15, null));
|
|
|
|
- _supports.put(14702, new EnchantItem(true, L2Item.CRYSTAL_D, 9, 20, null));
|
|
|
|
- _supports.put(14703, new EnchantItem(true, L2Item.CRYSTAL_C, 9, 18, null));
|
|
|
|
- _supports.put(14704, new EnchantItem(true, L2Item.CRYSTAL_B, 9, 15, null));
|
|
|
|
- _supports.put(14705, new EnchantItem(true, L2Item.CRYSTAL_A, 9, 12, null));
|
|
|
|
- _supports.put(14706, new EnchantItem(true, L2Item.CRYSTAL_S, 9, 10, null));
|
|
|
|
- _supports.put(14707, new EnchantItem(false, L2Item.CRYSTAL_D, 9, 35, null));
|
|
|
|
- _supports.put(14708, new EnchantItem(false, L2Item.CRYSTAL_C, 9, 27, null));
|
|
|
|
- _supports.put(14709, new EnchantItem(false, L2Item.CRYSTAL_B, 9, 23, null));
|
|
|
|
- _supports.put(14710, new EnchantItem(false, L2Item.CRYSTAL_A, 9, 18, null));
|
|
|
|
- _supports.put(14711, new EnchantItem(false, L2Item.CRYSTAL_S, 9, 15, null));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param scroll
|
|
|
|
- * @return enchant template for scroll
|
|
|
|
- */
|
|
|
|
- protected static final EnchantScroll getEnchantScroll(L2ItemInstance scroll)
|
|
|
|
- {
|
|
|
|
- return _scrolls.get(scroll.getItemId());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param item
|
|
|
|
- * @return enchant template for support item
|
|
|
|
- */
|
|
|
|
- protected static final EnchantItem getSupportItem(L2ItemInstance item)
|
|
|
|
- {
|
|
|
|
- return _supports.get(item.getItemId());
|
|
|
|
- }
|
|
|
|
-}
|
|
|