Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2jFrozen_GameServer
- Index: head-src/com/l2jfrozen/gameserver/model/Inventory.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/Inventory.java (revision 1132)
- +++ head-src/com/l2jfrozen/gameserver/model/Inventory.java (working copy)
- @@ -494,11 +497,45 @@
- {
- LOGGER.warn("Inventory.ArmorSetListener: Incorrect skill: " + armorSet.getEnchant6skillId() + ".");
- }
- -
- +
- skille = null;
- }
- }
- -
- + if (armorSet.isEnchanted12(player)) // has all parts of set enchanted to 12 or more
- + {
- + final int skillId12 = armorSet.getEnchant12skillId();
- +
- + if (skillId12 > 0)
- + {
- + L2Skill skille = SkillTable.getInstance().getInfo(skillId12, 1);
- +
- + if (skille != null)
- + {
- + player.addSkill(skille, false);
- + player.sendSkillList();
- + }
- + else
- + LOGGER.warn("Inventory.ArmorSetListener: Incorrect skill: " + armorSet.getEnchant12skillId() + ".");
- + }
- + }
- + if (armorSet.isEnchanted16(player)) // has all parts of set enchanted to 16 or more
- + {
- + final int skillId16 = armorSet.getEnchant16skillId();
- +
- + if (skillId16 > 0)
- + {
- + L2Skill skille = SkillTable.getInstance().getInfo(skillId16, 1);
- +
- + if (skille != null)
- + {
- + player.addSkill(skille, false);
- + player.sendSkillList();
- + }
- + else
- + LOGGER.warn("Inventory.ArmorSetListener: Incorrect skill: " + armorSet.getEnchant16skillId() + ".");
- + }
- + }
- +
- skill = null;
- }
- }
- @@ -517,24 +554,26 @@
- @Override
- public void notifyUnequiped(final int slot, final L2ItemInstance item)
- {
- if (!(getOwner() instanceof L2PcInstance))
- return;
- -
- +
- L2PcInstance player = (L2PcInstance) getOwner();
- -
- +
- boolean remove = false;
- int removeSkillId1 = 0; // set skill
- int removeSkillId2 = 0; // shield skill
- int removeSkillId3 = 0; // enchant +6 skill
- + int removeSkillId4 = 0; // enchant +12 skill
- + int removeSkillId5 = 0; // enchant +16 skill
- if (slot == PAPERDOLL_CHEST)
- {
- @@ -541,11 +580,13 @@
- L2ArmorSet armorSet = ArmorSetsTable.getInstance().getSet(item.getItemId());
- if (armorSet == null)
- return;
- -
- +
- remove = true;
- removeSkillId1 = armorSet.getSkillId();
- removeSkillId2 = armorSet.getShieldSkillId();
- removeSkillId3 = armorSet.getEnchant6skillId();
- + removeSkillId4 = armorSet.getEnchant12skillId();
- + removeSkillId5 = armorSet.getEnchant16skillId();
- armorSet = null;
- }
- @@ -565,6 +606,8 @@
- removeSkillId1 = armorSet.getSkillId();
- removeSkillId2 = armorSet.getShieldSkillId();
- removeSkillId3 = armorSet.getEnchant6skillId();
- + removeSkillId4 = armorSet.getEnchant12skillId();
- + removeSkillId5 = armorSet.getEnchant16skillId();
- }
- else if (armorSet.containShield(item.getItemId())) // removed shield
- {
- @@ -622,21 +665,43 @@
- {
- LOGGER.warn("Inventory.ArmorSetListener: Incorrect skill: " + removeSkillId3 + ".");
- }
- -
- +
- skill = null;
- }
- + if (removeSkillId4 != 0)
- + {
- + L2Skill skill = SkillTable.getInstance().getInfo(removeSkillId4,1);
- + if (skill != null)
- + player.removeSkill(skill);
- + else
- + LOGGER.warn("Inventory.ArmorSetListener: Incorrect skill: "+removeSkillId4+".");
- + }
- +
- + if (removeSkillId5 != 0)
- + {
- + L2Skill skill = SkillTable.getInstance().getInfo(removeSkillId5,1);
- + if (skill != null)
- + player.removeSkill(skill);
- + else
- + LOGGER.warn("Inventory.ArmorSetListener: Incorrect skill: "+removeSkillId5+".");
- + }
- +
- player.sendSkillList();
- }
- -
- +
- player = null;
- }
- }
- -
- +
- /*
- - * final class FormalWearListener implements PaperdollListener { public void notifyUnequiped(int slot, L2ItemInstance item) { if (!(getOwner() != null && getOwner() instanceof L2PcInstance)) return; L2PcInstance owner = (L2PcInstance)getOwner(); if (item.getItemId() == 6408)
- - * owner.setIsWearingFormalWear(false); } public void notifyEquiped(int slot, L2ItemInstance item) { if (!(getOwner() != null && getOwner() instanceof L2PcInstance)) return; L2PcInstance owner = (L2PcInstance)getOwner(); // If player equip Formal Wear unequip weapons and abort cast/attack if
- - * (item.getItemId() == 6408) { owner.setIsWearingFormalWear(true); if (owner.isCastingNow()) owner.abortCast(); if (owner.isAttackingNow()) owner.abortAttack(); setPaperdollItem(PAPERDOLL_LHAND, null); setPaperdollItem(PAPERDOLL_RHAND, null); setPaperdollItem(PAPERDOLL_LRHAND, null); } else {
- - * if (!owner.isWearingFormalWear()) return; // Don't let weapons be equipped if player is wearing Formal Wear if (slot == PAPERDOLL_LHAND || slot == PAPERDOLL_RHAND || slot == PAPERDOLL_LRHAND) { setPaperdollItem(slot, null); } } } }
- + * final class FormalWearListener implements PaperdollListener { public void notifyUnequiped(int slot, L2ItemInstance item) { if (!(getOwner() != null && getOwner() instanceof
- + * L2PcInstance)) return; L2PcInstance owner = (L2PcInstance)getOwner(); if (item.getItemId() == 6408)
- + * owner.setIsWearingFormalWear(false); } public void notifyEquiped(int slot, L2ItemInstance item) { if (!(getOwner() != null && getOwner() instanceof L2PcInstance)) return;
- + * L2PcInstance owner = (L2PcInstance)getOwner(); // If player equip Formal Wear unequip weapons and abort cast/attack if
- + * (item.getItemId() == 6408) { owner.setIsWearingFormalWear(true); if (owner.isCastingNow()) owner.abortCast(); if (owner.isAttackingNow()) owner.abortAttack();
- + * setPaperdollItem(PAPERDOLL_LHAND, null); setPaperdollItem(PAPERDOLL_RHAND, null); setPaperdollItem(PAPERDOLL_LRHAND, null); } else {
- + * if (!owner.isWearingFormalWear()) return; // Don't let weapons be equipped if player is wearing Formal Wear if (slot == PAPERDOLL_LHAND || slot == PAPERDOLL_RHAND || slot ==
- + * PAPERDOLL_LRHAND) { setPaperdollItem(slot, null); } } } }
- */
- /**
- * Constructor of the inventory
- @@ -651,11 +716,12 @@
- addPaperdollListener(new StatsListener());
- addPaperdollListener(new FormalWearListener());
- }
- -
- +
- protected abstract ItemLocation getEquipLocation();
- -
- +
- /**
- * Returns the instance of new ChangeRecorder
- + *
- * @return ChangeRecorder
- */
- public ChangeRecorder newRecorder()
- @@ -662,13 +728,18 @@
- {
- return new ChangeRecorder(this);
- }
- -
- +
- /**
- * Drop item from inventory and updates database
- - * @param process : String Identifier of process triggering this action
- - * @param item : L2ItemInstance to be dropped
- - * @param actor : L2PcInstance Player requesting the item drop
- - * @param reference : L2Object Object referencing current action like NPC selling item or previous item in transformation
- + *
- + * @param process
- + * : String Identifier of process triggering this action
- + * @param item
- + * : L2ItemInstance to be dropped
- + * @param actor
- + * : L2PcInstance Player requesting the item drop
- + * @param reference
- + * : L2Object Object referencing current action like NPC selling item or previous item in transformation
- * @return L2ItemInstance corresponding to the destroyed item or the updated item in inventory
- */
- public L2ItemInstance dropItem(final String process, final L2ItemInstance item, final L2PcInstance actor, final L2Object reference)
- @@ -677,25 +748,31 @@
- {
- if (!_items.contains(item))
- return null;
- -
- +
- removeItem(item);
- item.setOwnerId(process, 0, actor, reference);
- item.setLocation(ItemLocation.VOID);
- item.setLastChange(L2ItemInstance.REMOVED);
- -
- +
- item.updateDatabase();
- refreshWeight();
- }
- return item;
- }
- -
- +
- /**
- * Drop item from inventory by using its <B>objectID</B> and updates database
- - * @param process : String Identifier of process triggering this action
- - * @param objectId : int Item Instance identifier of the item to be dropped
- - * @param count : int Quantity of items to be dropped
- - * @param actor : L2PcInstance Player requesting the item drop
- - * @param reference : L2Object Object referencing current action like NPC selling item or previous item in transformation
- + *
- + * @param process
- + * : String Identifier of process triggering this action
- + * @param objectId
- + * : int Item Instance identifier of the item to be dropped
- + * @param count
- + * : int Quantity of items to be dropped
- + * @param actor
- + * : L2PcInstance Player requesting the item drop
- + * @param reference
- + * : L2Object Object referencing current action like NPC selling item or previous item in transformation
- * @return L2ItemInstance corresponding to the destroyed item or the updated item in inventory
- */
- public L2ItemInstance dropItem(final String process, final int objectId, final int count, final L2PcInstance actor, final L2Object reference)
- @@ -703,7 +780,7 @@
- L2ItemInstance item = getItemByObjectId(objectId);
- if (item == null)
- return null;
- -
- +
- // Adjust item quantity and create new instance to drop
- if (item.getCount() > count)
- {
- @@ -710,37 +787,41 @@
- item.changeCount(process, -count, actor, reference);
- item.setLastChange(L2ItemInstance.MODIFIED);
- item.updateDatabase();
- -
- +
- item = ItemTable.getInstance().createItem(process, item.getItemId(), count, actor, reference);
- -
- +
- item.updateDatabase();
- refreshWeight();
- -
- +
- return item;
- }
- // Directly drop entire item
- return dropItem(process, item, actor, reference);
- }
- -
- +
- /**
- * Adds item to inventory for further adjustments and Equip it if necessary (itemlocation defined)<BR>
- * <BR>
- - * @param item : L2ItemInstance to be added from inventory
- + *
- + * @param item
- + * : L2ItemInstance to be added from inventory
- */
- @Override
- protected void addItem(final L2ItemInstance item)
- {
- super.addItem(item);
- -
- +
- if (item.isEquipped())
- {
- equipItem(item);
- }
- }
- -
- +
- /**
- * Removes item from inventory for further adjustments.
- - * @param item : L2ItemInstance to be removed from inventory
- + *
- + * @param item
- + * : L2ItemInstance to be removed from inventory
- */
- @Override
- protected void removeItem(final L2ItemInstance item)
- @@ -752,12 +833,13 @@
- {
- unEquipItemInSlot(i);
- }
- -
- +
- super.removeItem(item);
- }
- -
- +
- /**
- * Returns the item in the paperdoll slot
- + *
- * @param slot
- * @return L2ItemInstance
- */
- @@ -765,9 +847,10 @@
- {
- return _paperdoll[slot];
- }
- -
- +
- /**
- * Returns the item in the paperdoll L2Item slot
- + *
- * @param slot
- * @return L2ItemInstance
- */
- @@ -814,32 +897,34 @@
- }
- return null;
- }
- -
- +
- /**
- * Returns the ID of the item in the paperdol slot
- - * @param slot : int designating the slot
- + *
- + * @param slot
- + * : int designating the slot
- * @return int designating the ID of the item
- */
- public int getPaperdollItemId(final int slot)
- {
- L2ItemInstance item = _paperdoll[slot];
- -
- +
- if (item != null)
- return item.getItemId();
- else if (slot == PAPERDOLL_HAIR)
- {
- item = _paperdoll[PAPERDOLL_DHAIR];
- -
- +
- if (item != null)
- return item.getItemId();
- }
- return 0;
- }
- -
- +
- public int getPaperdollAugmentationId(final int slot)
- {
- final L2ItemInstance item = _paperdoll[slot];
- -
- +
- if (item != null)
- {
- if (item.getAugmentation() != null)
- @@ -848,30 +933,33 @@
- }
- return 0;
- }
- -
- +
- /**
- * Returns the objectID associated to the item in the paperdoll slot
- - * @param slot : int pointing out the slot
- + *
- + * @param slot
- + * : int pointing out the slot
- * @return int designating the objectID
- */
- public int getPaperdollObjectId(final int slot)
- {
- L2ItemInstance item = _paperdoll[slot];
- -
- +
- if (item != null)
- return item.getObjectId();
- else if (slot == PAPERDOLL_HAIR)
- {
- item = _paperdoll[PAPERDOLL_DHAIR];
- -
- +
- if (item != null)
- return item.getObjectId();
- }
- return 0;
- }
- -
- +
- /**
- * Adds new inventory's paperdoll listener
- + *
- * @param listener
- */
- public synchronized void addPaperdollListener(final PaperdollListener listener)
- @@ -880,29 +968,34 @@
- {
- assert !_paperdollListeners.contains(listener);
- }
- -
- +
- _paperdollListeners.add(listener);
- }
- -
- +
- /**
- * Removes a paperdoll listener
- - * @param listener to be deleted
- + *
- + * @param listener
- + * to be deleted
- */
- public synchronized void removePaperdollListener(final PaperdollListener listener)
- {
- _paperdollListeners.remove(listener);
- }
- -
- +
- /**
- * Equips an item in the given slot of the paperdoll. <U><I>Remark :</I></U> The item <B>HAS TO BE</B> already in the inventory
- - * @param slot : int pointing out the slot of the paperdoll
- - * @param item : L2ItemInstance pointing out the item to add in slot
- + *
- + * @param slot
- + * : int pointing out the slot of the paperdoll
- + * @param item
- + * : L2ItemInstance pointing out the item to add in slot
- * @return L2ItemInstance designating the item placed in the slot before
- */
- public L2ItemInstance setPaperdollItem(final int slot, final L2ItemInstance item)
- {
- final L2ItemInstance old = _paperdoll[slot];
- -
- +
- if (old != item)
- {
- if (old != null)
- @@ -911,24 +1004,24 @@
- // Put old item from paperdoll slot to base location
- old.setLocation(getBaseLocation());
- old.setLastChange(L2ItemInstance.MODIFIED);
- -
- +
- // Get the mask for paperdoll
- int mask = 0;
- -
- +
- for (int i = 0; i < PAPERDOLL_LRHAND; i++)
- {
- L2ItemInstance pi = _paperdoll[i];
- -
- +
- if (pi != null)
- {
- mask |= pi.getItem().getItemMask();
- }
- -
- +
- pi = null;
- }
- -
- +
- _wearedMask = mask;
- -
- +
- // Notify all paperdoll listener in order to unequip old item in slot
- for (final PaperdollListener listener : _paperdollListeners)
- {
- @@ -936,19 +1029,19 @@
- {
- continue;
- }
- -
- +
- listener.notifyUnequiped(slot, old);
- }
- -
- +
- if (old.isAugmented())
- {
- if (getOwner() != null && getOwner() instanceof L2PcInstance)
- old.getAugmentation().removeBoni((L2PcInstance) getOwner());
- }
- -
- +
- old.updateDatabase();
- }
- -
- +
- // Add new item in slot of paperdoll
- if (item != null)
- {
- @@ -956,20 +1049,21 @@
- item.setLocation(getEquipLocation(), slot);
- item.setLastChange(L2ItemInstance.MODIFIED);
- _wearedMask |= item.getItem().getItemMask();
- -
- +
- for (final PaperdollListener listener : _paperdollListeners)
- {
- listener.notifyEquiped(slot, item);
- }
- -
- +
- item.updateDatabase();
- }
- }
- return old;
- }
- -
- +
- /**
- * Return the mask of weared item
- + *
- * @return int
- */
- public int getWearedMask()
- @@ -976,77 +1070,79 @@
- {
- return _wearedMask;
- }
- -
- +
- public int getSlotFromItem(final L2ItemInstance item)
- {
- int slot = -1;
- final int location = item.getEquipSlot();
- -
- +
- switch (location)
- {
- case PAPERDOLL_UNDER:
- slot = L2Item.SLOT_UNDERWEAR;
- - break;
- + break;
- case PAPERDOLL_LEAR:
- slot = L2Item.SLOT_L_EAR;
- - break;
- + break;
- case PAPERDOLL_REAR:
- slot = L2Item.SLOT_R_EAR;
- - break;
- + break;
- case PAPERDOLL_NECK:
- slot = L2Item.SLOT_NECK;
- - break;
- + break;
- case PAPERDOLL_RFINGER:
- slot = L2Item.SLOT_R_FINGER;
- - break;
- + break;
- case PAPERDOLL_LFINGER:
- slot = L2Item.SLOT_L_FINGER;
- - break;
- + break;
- case PAPERDOLL_HAIR:
- slot = L2Item.SLOT_HAIR;
- - break;
- + break;
- case PAPERDOLL_FACE:
- slot = L2Item.SLOT_FACE;
- - break;
- + break;
- case PAPERDOLL_DHAIR:
- slot = L2Item.SLOT_DHAIR;
- - break;
- + break;
- case PAPERDOLL_HEAD:
- slot = L2Item.SLOT_HEAD;
- - break;
- + break;
- case PAPERDOLL_RHAND:
- slot = L2Item.SLOT_R_HAND;
- - break;
- + break;
- case PAPERDOLL_LHAND:
- slot = L2Item.SLOT_L_HAND;
- - break;
- + break;
- case PAPERDOLL_GLOVES:
- slot = L2Item.SLOT_GLOVES;
- - break;
- + break;
- // case PAPERDOLL_CHEST: slot = item.getItem().getBodyPart(); break;// fall through
- case PAPERDOLL_CHEST:
- slot = L2Item.SLOT_CHEST;
- - break; // TODO
- + break; // TODO
- case PAPERDOLL_LEGS:
- slot = L2Item.SLOT_LEGS;
- - break;
- + break;
- case PAPERDOLL_BACK:
- slot = L2Item.SLOT_BACK;
- - break;
- + break;
- case PAPERDOLL_FEET:
- slot = L2Item.SLOT_FEET;
- - break;
- + break;
- case PAPERDOLL_LRHAND:
- slot = L2Item.SLOT_LR_HAND;
- - break;
- + break;
- }
- -
- +
- return slot;
- }
- -
- +
- /**
- * Unequips item in body slot and returns alterations.
- - * @param slot : int designating the slot of the paperdoll
- + *
- + * @param slot
- + * : int designating the slot of the paperdoll
- * @return L2ItemInstance[] : list of changes
- */
- // public synchronized L2ItemInstance[] unEquipItemInBodySlotAndRecord(int slot)
- @@ -1053,17 +1149,17 @@
- public L2ItemInstance[] unEquipItemInBodySlotAndRecord(final int slot)
- {
- final Inventory.ChangeRecorder recorder = newRecorder();
- -
- +
- try
- {
- unEquipItemInBodySlot(slot);
- -
- +
- if (getOwner() instanceof L2PcInstance)
- {
- ((L2PcInstance) getOwner()).refreshExpertisePenalty();
- ((L2PcInstance) getOwner()).refreshMasteryPenality();
- ((L2PcInstance) getOwner()).refreshMasteryWeapPenality();
- -
- +
- }
- }
- finally
- @@ -1070,13 +1166,15 @@
- {
- removePaperdollListener(recorder);
- }
- -
- +
- return recorder.getChangedItems();
- }
- -
- +
- /**
- * Sets item in slot of the paperdoll to null value
- - * @param pdollSlot : int designating the slot
- + *
- + * @param pdollSlot
- + * : int designating the slot
- * @return L2ItemInstance designating the item in slot before change
- */
- // public synchronized L2ItemInstance unEquipItemInSlot(int pdollSlot)
- @@ -1084,10 +1182,12 @@
- {
- return setPaperdollItem(pdollSlot, null);
- }
- -
- +
- /**
- * Unepquips item in slot and returns alterations
- - * @param slot : int designating the slot
- + *
- + * @param slot
- + * : int designating the slot
- * @return L2ItemInstance[] : list of items altered
- */
- // public synchronized L2ItemInstance[] unEquipItemInSlotAndRecord(int slot)
- @@ -1094,11 +1194,11 @@
- public L2ItemInstance[] unEquipItemInSlotAndRecord(final int slot)
- {
- final Inventory.ChangeRecorder recorder = newRecorder();
- -
- +
- try
- {
- unEquipItemInSlot(slot);
- -
- +
- if (getOwner() instanceof L2PcInstance)
- {
- ((L2PcInstance) getOwner()).refreshExpertisePenalty();
- @@ -1109,13 +1209,15 @@
- {
- removePaperdollListener(recorder);
- }
- -
- +
- return recorder.getChangedItems();
- }
- -
- +
- /**
- * Unequips item in slot (i.e. equips with default value)
- - * @param slot : int designating the slot
- + *
- + * @param slot
- + * : int designating the slot
- */
- private void unEquipItemInBodySlot(final int slot)
- {
- @@ -1123,72 +1225,72 @@
- {
- LOGGER.debug("--- unequip body slot:" + slot);
- }
- -
- +
- int pdollSlot = -1;
- -
- +
- switch (slot)
- {
- case L2Item.SLOT_L_EAR:
- pdollSlot = PAPERDOLL_LEAR;
- - break;
- + break;
- case L2Item.SLOT_R_EAR:
- pdollSlot = PAPERDOLL_REAR;
- - break;
- + break;
- case L2Item.SLOT_NECK:
- pdollSlot = PAPERDOLL_NECK;
- - break;
- + break;
- case L2Item.SLOT_R_FINGER:
- pdollSlot = PAPERDOLL_RFINGER;
- - break;
- + break;
- case L2Item.SLOT_L_FINGER:
- pdollSlot = PAPERDOLL_LFINGER;
- - break;
- + break;
- case L2Item.SLOT_HAIR:
- pdollSlot = PAPERDOLL_HAIR;
- - break;
- + break;
- case L2Item.SLOT_FACE:
- pdollSlot = PAPERDOLL_FACE;
- - break;
- + break;
- case L2Item.SLOT_DHAIR:
- setPaperdollItem(PAPERDOLL_HAIR, null);
- setPaperdollItem(PAPERDOLL_FACE, null);// this should be the same as in DHAIR
- pdollSlot = PAPERDOLL_DHAIR;
- - break;
- + break;
- case L2Item.SLOT_HEAD:
- pdollSlot = PAPERDOLL_HEAD;
- - break;
- + break;
- case L2Item.SLOT_R_HAND:
- pdollSlot = PAPERDOLL_RHAND;
- - break;
- + break;
- case L2Item.SLOT_L_HAND:
- pdollSlot = PAPERDOLL_LHAND;
- - break;
- + break;
- case L2Item.SLOT_GLOVES:
- pdollSlot = PAPERDOLL_GLOVES;
- - break;
- + break;
- case L2Item.SLOT_CHEST:
- pdollSlot = PAPERDOLL_CHEST;
- - break; // TODO: пїЅпїЅпїЅпїЅ "пїЅпїЅпїЅпїЅпїЅ"
- + break; // TODO: пїЅпїЅпїЅпїЅ "пїЅпїЅпїЅпїЅпїЅ"
- case L2Item.SLOT_FULL_ARMOR:
- pdollSlot = PAPERDOLL_CHEST;
- - break;
- + break;
- case L2Item.SLOT_LEGS:
- pdollSlot = PAPERDOLL_LEGS;
- - break;
- + break;
- case L2Item.SLOT_BACK:
- pdollSlot = PAPERDOLL_BACK;
- - break;
- + break;
- case L2Item.SLOT_FEET:
- pdollSlot = PAPERDOLL_FEET;
- - break;
- + break;
- case L2Item.SLOT_UNDERWEAR:
- pdollSlot = PAPERDOLL_UNDER;
- - break;
- + break;
- case L2Item.SLOT_LR_HAND:
- setPaperdollItem(PAPERDOLL_LHAND, null);
- setPaperdollItem(PAPERDOLL_RHAND, null);// this should be the same as in LRHAND
- pdollSlot = PAPERDOLL_LRHAND;
- - break;
- + break;
- }
- if (pdollSlot >= 0)
- {
- @@ -1195,16 +1297,18 @@
- setPaperdollItem(pdollSlot, null);
- }
- }
- -
- +
- /**
- * Equips item and returns list of alterations
- - * @param item : L2ItemInstance corresponding to the item
- + *
- + * @param item
- + * : L2ItemInstance corresponding to the item
- * @return L2ItemInstance[] : list of alterations
- */
- public L2ItemInstance[] equipItemAndRecord(final L2ItemInstance item)
- {
- final Inventory.ChangeRecorder recorder = newRecorder();
- -
- +
- try
- {
- equipItem(item);
- @@ -1213,34 +1317,36 @@
- {
- removePaperdollListener(recorder);
- }
- -
- +
- return recorder.getChangedItems();
- }
- -
- +
- /**
- * Equips item in slot of paperdoll.
- - * @param item : L2ItemInstance designating the item and slot used.
- + *
- + * @param item
- + * : L2ItemInstance designating the item and slot used.
- */
- public synchronized void equipItem(final L2ItemInstance item)
- {
- if (getOwner() instanceof L2PcInstance && ((L2PcInstance) getOwner()).getPrivateStoreType() != 0)
- return;
- -
- +
- if (getOwner() instanceof L2PcInstance)
- {
- final L2PcInstance player = (L2PcInstance) getOwner();
- -
- +
- // Like L2OFF weapon hero and crown aren't removed after restart
- if (!player.isGM())
- if (!player.isHero())
- {
- final int itemId = item.getItemId();
- -
- +
- if (itemId >= 6611 && itemId <= 6621 || itemId == 6842)
- return;
- }
- }
- -
- +
- final int targetSlot = item.getItem().getBodyPart();
- switch (targetSlot)
- {
- @@ -1256,10 +1362,10 @@
- {
- setPaperdollItem(PAPERDOLL_RHAND, null);
- }
- -
- +
- setPaperdollItem(PAPERDOLL_RHAND, item);
- setPaperdollItem(PAPERDOLL_LRHAND, item);
- -
- +
- break;
- }
- case L2Item.SLOT_L_HAND:
- @@ -1267,13 +1373,13 @@
- if (!(item.getItem() instanceof L2EtcItem) || item.getItem().getItemType() != L2EtcItemType.ARROW)
- {
- final L2ItemInstance old1 = setPaperdollItem(PAPERDOLL_LRHAND, null);
- -
- +
- if (old1 != null)
- {
- setPaperdollItem(PAPERDOLL_RHAND, null);
- }
- }
- -
- +
- setPaperdollItem(PAPERDOLL_LHAND, null);
- setPaperdollItem(PAPERDOLL_LHAND, item);
- break;
- @@ -1290,7 +1396,7 @@
- {
- setPaperdollItem(PAPERDOLL_RHAND, null);
- }
- -
- +
- setPaperdollItem(PAPERDOLL_RHAND, item);
- break;
- }
- @@ -1311,7 +1417,7 @@
- setPaperdollItem(PAPERDOLL_LEAR, null);
- setPaperdollItem(PAPERDOLL_LEAR, item);
- }
- -
- +
- break;
- }
- case L2Item.SLOT_L_FINGER:
- @@ -1331,20 +1437,20 @@
- setPaperdollItem(PAPERDOLL_LFINGER, null);
- setPaperdollItem(PAPERDOLL_LFINGER, item);
- }
- -
- +
- break;
- }
- case L2Item.SLOT_NECK:
- setPaperdollItem(PAPERDOLL_NECK, item);
- - break;
- + break;
- case L2Item.SLOT_FULL_ARMOR:
- setPaperdollItem(PAPERDOLL_CHEST, null);
- setPaperdollItem(PAPERDOLL_LEGS, null);
- setPaperdollItem(PAPERDOLL_CHEST, item);
- - break;
- + break;
- case L2Item.SLOT_CHEST:
- setPaperdollItem(PAPERDOLL_CHEST, item);
- - break;
- + break;
- case L2Item.SLOT_LEGS:
- {
- // handle full armor
- @@ -1353,7 +1459,7 @@
- {
- setPaperdollItem(PAPERDOLL_CHEST, null);
- }
- -
- +
- setPaperdollItem(PAPERDOLL_LEGS, null);
- setPaperdollItem(PAPERDOLL_LEGS, item);
- chest = null;
- @@ -1361,13 +1467,13 @@
- }
- case L2Item.SLOT_FEET:
- setPaperdollItem(PAPERDOLL_FEET, item);
- - break;
- + break;
- case L2Item.SLOT_GLOVES:
- setPaperdollItem(PAPERDOLL_GLOVES, item);
- - break;
- + break;
- case L2Item.SLOT_HEAD:
- setPaperdollItem(PAPERDOLL_HEAD, item);
- - break;
- + break;
- case L2Item.SLOT_HAIR:
- if (setPaperdollItem(PAPERDOLL_DHAIR, null) != null)
- {
- @@ -1379,9 +1485,9 @@
- {
- setPaperdollItem(PAPERDOLL_HAIR, null);
- }
- -
- +
- setPaperdollItem(PAPERDOLL_HAIR, item);
- - break;
- + break;
- case L2Item.SLOT_FACE:
- if (setPaperdollItem(PAPERDOLL_DHAIR, null) != null)
- {
- @@ -1393,9 +1499,9 @@
- {
- setPaperdollItem(PAPERDOLL_FACE, null);
- }
- -
- +
- setPaperdollItem(PAPERDOLL_FACE, item);
- - break;
- + break;
- case L2Item.SLOT_DHAIR:
- if (setPaperdollItem(PAPERDOLL_HAIR, null) != null)
- {
- @@ -1406,20 +1512,20 @@
- {
- setPaperdollItem(PAPERDOLL_FACE, null);
- }
- -
- +
- setPaperdollItem(PAPERDOLL_DHAIR, item);
- - break;
- + break;
- case L2Item.SLOT_UNDERWEAR:
- setPaperdollItem(PAPERDOLL_UNDER, item);
- - break;
- + break;
- case L2Item.SLOT_BACK:
- setPaperdollItem(PAPERDOLL_BACK, item);
- - break;
- + break;
- default:
- LOGGER.warn("unknown body slot:" + targetSlot);
- }
- }
- -
- +
- /**
- * Refresh the weight of equipment loaded
- */
- @@ -1427,7 +1533,7 @@
- protected void refreshWeight()
- {
- int weight = 0;
- -
- +
- for (final L2ItemInstance item : _items)
- {
- if (item != null && item.getItem() != null)
- @@ -1435,12 +1541,13 @@
- weight += item.getItem().getWeight() * item.getCount();
- }
- }
- -
- +
- _totalWeight = weight;
- }
- -
- +
- /**
- * Returns the totalWeight.
- + *
- * @return int
- */
- public int getTotalWeight()
- @@ -1447,11 +1554,13 @@
- {
- return _totalWeight;
- }
- -
- +
- /**
- * Return the L2ItemInstance of the arrows needed for this bow.<BR>
- * <BR>
- - * @param bow : L2Item designating the bow
- + *
- + * @param bow
- + * : L2Item designating the bow
- * @return L2ItemInstance pointing out arrows for bow
- */
- public L2ItemInstance findArrowForBow(final L2Item bow)
- @@ -1458,39 +1567,39 @@
- {
- if (bow == null)
- return null;
- -
- +
- // Check if char has the bow equiped
- if (bow.getItemType() != L2WeaponType.BOW)
- return null;
- -
- +
- int arrowsId = 0;
- -
- +
- switch (bow.getCrystalType())
- {
- default: // broken weapon.csv ??
- case L2Item.CRYSTAL_NONE:
- arrowsId = 17;
- - break; // Wooden arrow
- + break; // Wooden arrow
- case L2Item.CRYSTAL_D:
- arrowsId = 1341;
- - break; // Bone arrow
- + break; // Bone arrow
- case L2Item.CRYSTAL_C:
- arrowsId = 1342;
- - break; // Fine steel arrow
- + break; // Fine steel arrow
- case L2Item.CRYSTAL_B:
- arrowsId = 1343;
- - break; // Silver arrow
- + break; // Silver arrow
- case L2Item.CRYSTAL_A:
- arrowsId = 1344;
- - break; // Mithril arrow
- + break; // Mithril arrow
- case L2Item.CRYSTAL_S:
- arrowsId = 1345;
- - break; // Shining arrow
- + break; // Shining arrow
- }
- // Get the L2ItemInstance corresponding to the item identifier and return it
- return getItemByItemId(arrowsId);
- }
- -
- +
- /**
- * Get back items in inventory from database
- */
- @@ -1506,40 +1615,40 @@
- statement.setString(2, getBaseLocation().name());
- statement.setString(3, getEquipLocation().name());
- ResultSet inv = statement.executeQuery();
- -
- +
- L2ItemInstance item;
- -
- +
- while (inv.next())
- {
- final int objectId = inv.getInt(1);
- -
- +
- item = L2ItemInstance.restoreFromDb(objectId);
- -
- +
- if (item == null)
- {
- continue;
- }
- -
- +
- if (getOwner() instanceof L2PcInstance)
- {
- L2PcInstance player = (L2PcInstance) getOwner();
- -
- +
- if (!player.isGM())
- if (!player.isHero())
- {
- final int itemId = item.getItemId();
- -
- +
- if (itemId >= 6611 && itemId <= 6621 || itemId == 6842)
- {
- item.setLocation(ItemLocation.INVENTORY);
- }
- }
- -
- +
- player = null;
- }
- -
- +
- L2World.getInstance().storeObject(item);
- -
- +
- // If stackable item is found in inventory just add to current quantity
- if (item.isStackable() && getItemByItemId(item.getItemId()) != null)
- {
- @@ -1550,11 +1659,11 @@
- addItem(item);
- }
- }
- -
- +
- inv.close();
- DatabaseUtils.close(statement);
- refreshWeight();
- -
- +
- statement = null;
- inv = null;
- item = null;
- @@ -1570,7 +1679,7 @@
- con = null;
- }
- }
- -
- +
- /**
- * Re-notify to paperdoll listeners every equipped item
- */
- @@ -1577,9 +1686,9 @@
- public void reloadEquippedItems()
- {
- L2ItemInstance item;
- -
- +
- int slot;
- -
- +
- for (final L2ItemInstance element : _paperdoll)
- {
- item = element;
- @@ -1587,9 +1696,9 @@
- {
- continue;
- }
- -
- +
- slot = item.getEquipSlot();
- -
- +
- for (final PaperdollListener listener : _paperdollListeners)
- {
- if (listener == null)
- @@ -1596,12 +1705,12 @@
- {
- continue;
- }
- -
- +
- listener.notifyUnequiped(slot, item);
- listener.notifyEquiped(slot, item);
- }
- }
- -
- +
- item = null;
- }
- }
- Index: head-src/com/l2jfrozen/gameserver/datatables/sql/ArmorSetsTable.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/datatables/sql/ArmorSetsTable.java (revision 1132)
- +++ head-src/com/l2jfrozen/gameserver/datatables/sql/ArmorSetsTable.java (working copy)
- @@ -64,7 +64,7 @@
- try
- {
- con = L2DatabaseFactory.getInstance().getConnection(false);
- - final PreparedStatement statement = con.prepareStatement("SELECT id, chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill FROM armorsets");
- + final PreparedStatement statement = con.prepareStatement("SELECT id, chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill, enchant12skill, enchant16skill FROM armorsets");
- final ResultSet rset = statement.executeQuery();
- while (rset.next())
- @@ -79,8 +79,10 @@
- final int shield = rset.getInt("shield");
- final int shield_skill_id = rset.getInt("shield_skill_id");
- final int enchant6skill = rset.getInt("enchant6skill");
- + final int enchant12skill = rset.getInt("enchant12skill");
- + final int enchant16skill = rset.getInt("enchant16skill");
- - armorSets.put(chest, new L2ArmorSet(chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill));
- + armorSets.put(chest, new L2ArmorSet(chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill, enchant12skill, enchant16skill));
- cusArmorSets.put(id, new ArmorDummy(chest, legs, head, gloves, feet, skill_id, shield));
- }
- Index: head-src/com/l2jfrozen/gameserver/datatables/sql/CustomArmorSetsTable.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/datatables/sql/CustomArmorSetsTable.java (revision 1132)
- +++ head-src/com/l2jfrozen/gameserver/datatables/sql/CustomArmorSetsTable.java (working copy)
- @@ -53,7 +53,7 @@
- try
- {
- con = L2DatabaseFactory.getInstance().getConnection(false);
- - final PreparedStatement statement = con.prepareStatement("SELECT chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill FROM custom_armorsets");
- + final PreparedStatement statement = con.prepareStatement("SELECT chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill, enchant12skill, enchant16skill FROM custom_armorsets");
- final ResultSet rset = statement.executeQuery();
- while (rset.next())
- @@ -67,7 +67,9 @@
- final int shield = rset.getInt("shield");
- final int shield_skill_id = rset.getInt("shield_skill_id");
- final int enchant6skill = rset.getInt("enchant6skill");
- - ArmorSetsTable.getInstance().addObj(chest, new L2ArmorSet(chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill));
- + final int enchant12skill = rset.getInt("enchant12skill");
- + final int enchant16skill = rset.getInt("enchant16skill");
- + ArmorSetsTable.getInstance().addObj(chest, new L2ArmorSet(chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill, enchant12skill, enchant16skill));
- }
- LOGGER.info("ArmorSetsTable: Loaded custom armor sets.");
- Index: head-src/com/l2jfrozen/gameserver/model/L2ArmorSet.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/L2ArmorSet.java (revision 1132)
- +++ head-src/com/l2jfrozen/gameserver/model/L2ArmorSet.java (working copy)
- @@ -40,8 +40,10 @@
- private final int _shieldSkillId;
- private final int _enchant6Skill;
- + private final int _enchant12Skill;
- + private final int _enchant16Skill;
- - public L2ArmorSet(final int chest, final int legs, final int head, final int gloves, final int feet, final int skill_id, final int shield, final int shield_skill_id, final int enchant6skill)
- + public L2ArmorSet(final int chest, final int legs, final int head, final int gloves, final int feet, final int skill_id, final int shield, final int shield_skill_id, final int enchant6skill, final int enchant12skill, final int enchant16skill)
- {
- _chest = chest;
- _legs = legs;
- @@ -54,6 +56,8 @@
- _shieldSkillId = shield_skill_id;
- _enchant6Skill = enchant6skill;
- + _enchant12Skill = enchant12skill;
- + _enchant16Skill = enchant16skill;
- }
- /**
- @@ -173,7 +177,17 @@
- {
- return _enchant6Skill;
- }
- -
- +
- + public int getEnchant12skillId()
- + {
- + return _enchant12Skill;
- + }
- +
- + public int getEnchant16skillId()
- + {
- + return _enchant16Skill;
- + }
- +
- /**
- * Checks if all parts of set are enchanted to +6 or more
- * @param player
- @@ -212,4 +226,59 @@
- return true;
- }
- +
- + public boolean isEnchanted12(L2PcInstance player)
- + {
- + // Player don't have full set
- + if (!containAll(player))
- + return false;
- +
- + Inventory inv = player.getInventory();
- +
- + L2ItemInstance chestItem = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
- + L2ItemInstance legsItem = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
- + L2ItemInstance headItem = inv.getPaperdollItem(Inventory.PAPERDOLL_HEAD);
- + L2ItemInstance glovesItem = inv.getPaperdollItem(Inventory.PAPERDOLL_GLOVES);
- + L2ItemInstance feetItem = inv.getPaperdollItem(Inventory.PAPERDOLL_FEET);
- +
- + if (chestItem == null || chestItem.getEnchantLevel() < 12)
- + return false;
- + if (_legs != 0 && (legsItem == null || legsItem.getEnchantLevel() < 12))
- + return false;
- + if (_gloves != 0 && (glovesItem == null || glovesItem.getEnchantLevel() < 12))
- + return false;
- + if (_head != 0 && (headItem == null || headItem.getEnchantLevel() < 12))
- + return false;
- + if (_feet != 0 && (feetItem == null || feetItem.getEnchantLevel() < 12))
- + return false;
- +
- + return true;
- + }
- + public boolean isEnchanted16(L2PcInstance player)
- + {
- + // Player don't have full set
- + if (!containAll(player))
- + return false;
- +
- + Inventory inv = player.getInventory();
- +
- + L2ItemInstance chestItem = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
- + L2ItemInstance legsItem = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
- + L2ItemInstance headItem = inv.getPaperdollItem(Inventory.PAPERDOLL_HEAD);
- + L2ItemInstance glovesItem = inv.getPaperdollItem(Inventory.PAPERDOLL_GLOVES);
- + L2ItemInstance feetItem = inv.getPaperdollItem(Inventory.PAPERDOLL_FEET);
- +
- + if (chestItem == null || chestItem.getEnchantLevel() < 16)
- + return false;
- + if (_legs != 0 && (legsItem == null || legsItem.getEnchantLevel() < 16))
- + return false;
- + if (_gloves != 0 && (glovesItem == null || glovesItem.getEnchantLevel() < 16))
- + return false;
- + if (_head != 0 && (headItem == null || headItem.getEnchantLevel() < 16))
- + return false;
- + if (_feet != 0 && (feetItem == null || feetItem.getEnchantLevel() < 16))
- + return false;
- +
- + return true;
- + }
- }
- #P L2jFrozen_DataPack
- Index: sql/armorsets.sql
- ===================================================================
- --- sql/armorsets.sql (revision 1132)
- +++ sql/armorsets.sql (working copy)
- @@ -12,88 +12,90 @@
- shield decimal(11,0) NOT NULL default '0',
- shield_skill_id decimal(11,0) NOT NULL default '0',
- enchant6skill decimal(11,0) NOT NULL default '0',
- + enchant12skill decimal(11,0) NOT NULL default '0',
- + enchant16skill decimal(11,0) NOT NULL default '0',
- PRIMARY KEY (id,chest)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- -- NO GRADE -------------
- --- ######################## id chest legs head gloves feet skill shield sh_skill enchant6
- -INSERT INTO armorsets VALUES(1, 23, 2386, 43, 0, 0, 3500, 0, 0, 0); -- Wooden Breastplate set (heavy)
- -INSERT INTO armorsets VALUES(2, 1101, 1104, 44, 0, 0, 3501, 0, 0, 0); -- Devotion robe set (robe)
- +-- ######################## id chest legs head gloves feet skill shield sh_skill enchant6 enchant12 enchant16
- +INSERT INTO armorsets VALUES(1, 23, 2386, 43, 0, 0, 3500, 0, 0, 0, 0, 0); -- Wooden Breastplate set (heavy)
- +INSERT INTO armorsets VALUES(2, 1101, 1104, 44, 0, 0, 3501, 0, 0, 0, 0, 0); -- Devotion robe set (robe)
- -- D GRADE -------------
- --- ######################## id chest legs head gloves feet skill shield sh_skill enchant6
- -INSERT INTO armorsets VALUES(3, 58, 59, 47, 0, 0, 3502, 628, 3543, 3611); -- Mithril Breastplate set(heavy)
- -INSERT INTO armorsets VALUES(4, 352, 2378, 2411, 0, 0, 3506, 2493, 3544, 3611); -- Brigandine Armor set
- +-- ######################## id chest legs head gloves feet skill shield sh_skill enchant6 enchant12 enchant16
- +INSERT INTO armorsets VALUES(3, 58, 59, 47, 0, 0, 3502, 628, 3543, 3611, 0, 0); -- Mithril Breastplate set(heavy)
- +INSERT INTO armorsets VALUES(4, 352, 2378, 2411, 0, 0, 3506, 2493, 3544, 3611, 0, 0); -- Brigandine Armor set
- -INSERT INTO armorsets VALUES(5, 394, 416, 0, 0, 2422, 3503, 0, 0, 3612); -- Reinforced leather set
- -INSERT INTO armorsets VALUES(6, 395, 417, 0, 0, 2424, 3505, 0, 0, 3612); -- Manticore skin set
- +INSERT INTO armorsets VALUES(5, 394, 416, 0, 0, 2422, 3503, 0, 0, 3612, 0, 0); -- Reinforced leather set
- +INSERT INTO armorsets VALUES(6, 395, 417, 0, 0, 2424, 3505, 0, 0, 3612, 0, 0); -- Manticore skin set
- -INSERT INTO armorsets VALUES(7, 436, 469, 0, 2447, 0, 3504, 0, 0, 3613); -- Tunic of knowledge set
- -INSERT INTO armorsets VALUES(8, 437, 470, 0, 2450, 0, 3507, 0, 0, 3613); -- Mithril Tunic
- +INSERT INTO armorsets VALUES(7, 436, 469, 0, 2447, 0, 3504, 0, 0, 3613, 0, 0); -- Tunic of knowledge set
- +INSERT INTO armorsets VALUES(8, 437, 470, 0, 2450, 0, 3507, 0, 0, 3613, 0, 0); -- Mithril Tunic
- -- C GRADE -------------
- --- ######################## id chest legs head gloves feet skill shield sh_skill enchant6
- -INSERT INTO armorsets VALUES(9, 354, 381, 2413, 0, 0, 3509, 2495, 3545, 3614); -- Chain Mail Shirt set
- -INSERT INTO armorsets VALUES(10, 60, 0, 517, 0, 0, 3512, 107, 3546, 3614); -- Composite Armor set
- -INSERT INTO armorsets VALUES(11, 356, 0, 2414, 0, 0, 3516, 2497, 3547, 3614); -- Full Plate Armor set
- +-- ######################## id chest legs head gloves feet skill shield sh_skill enchant6 enchant12 enchant16
- +INSERT INTO armorsets VALUES(9, 354, 381, 2413, 0, 0, 3509, 2495, 3545, 3614, 0, 0); -- Chain Mail Shirt set
- +INSERT INTO armorsets VALUES(10, 60, 0, 517, 0, 0, 3512, 107, 3546, 3614, 0, 0); -- Composite Armor set
- +INSERT INTO armorsets VALUES(11, 356, 0, 2414, 0, 0, 3516, 2497, 3547, 3614, 0, 0); -- Full Plate Armor set
- -INSERT INTO armorsets VALUES(12, 397, 2387, 0, 0, 62, 3508, 0, 0, 3615); -- Mithrill shirt set
- -INSERT INTO armorsets VALUES(13, 398, 418, 0, 0, 2431, 3511, 0, 0, 3615); -- Plated leather set
- -INSERT INTO armorsets VALUES(14, 400, 420, 0, 0, 2436, 3514, 0, 0, 3615); -- Theca leather set
- -INSERT INTO armorsets VALUES(15, 401, 0, 0, 0, 2437, 3515, 0, 0, 3615); -- Drake leather set
- +INSERT INTO armorsets VALUES(12, 397, 2387, 0, 0, 62, 3508, 0, 0, 3615, 0, 0); -- Mithrill shirt set
- +INSERT INTO armorsets VALUES(13, 398, 418, 0, 0, 2431, 3511, 0, 0, 3615, 0, 0); -- Plated leather set
- +INSERT INTO armorsets VALUES(14, 400, 420, 0, 0, 2436, 3514, 0, 0, 3615, 0, 0); -- Theca leather set
- +INSERT INTO armorsets VALUES(15, 401, 0, 0, 0, 2437, 3515, 0, 0, 3615, 0, 0); -- Drake leather set
- -INSERT INTO armorsets VALUES(16, 439, 471, 0, 2454, 0, 3510, 0, 0, 3616); -- Karmian robe set
- -INSERT INTO armorsets VALUES(17, 441, 472, 0, 2459, 0, 3513, 0, 0, 3616); -- Demon robe set
- -INSERT INTO armorsets VALUES(18, 442, 473, 0, 2463, 0, 3517, 0, 0, 3616); -- Divine robe set
- +INSERT INTO armorsets VALUES(16, 439, 471, 0, 2454, 0, 3510, 0, 0, 3616, 0, 0); -- Karmian robe set
- +INSERT INTO armorsets VALUES(17, 441, 472, 0, 2459, 0, 3513, 0, 0, 3616, 0, 0); -- Demon robe set
- +INSERT INTO armorsets VALUES(18, 442, 473, 0, 2463, 0, 3517, 0, 0, 3616, 0, 0); -- Divine robe set
- -- B GRADE -------------
- --- ######################## id chest legs head gloves feet skill shield sh_skill enchant6
- -INSERT INTO armorsets VALUES(19, 357, 383, 503, 5710, 5726, 3518, 0, 0, 3617); -- Zubei's Breastplate set
- -INSERT INTO armorsets VALUES(20, 2384, 2388, 503, 5711, 5727, 3520, 0, 0, 3618); -- Zubei's leather set
- -INSERT INTO armorsets VALUES(21, 2397, 2402, 503, 5712, 5728, 3522, 0, 0, 3619); -- Zubei robe set
- +-- ######################## id chest legs head gloves feet skill shield sh_skill enchant6 enchant12 enchant16
- +INSERT INTO armorsets VALUES(19, 357, 383, 503, 5710, 5726, 3518, 0, 0, 3617, 0, 0); -- Zubei's Breastplate set
- +INSERT INTO armorsets VALUES(20, 2384, 2388, 503, 5711, 5727, 3520, 0, 0, 3618, 0, 0); -- Zubei's leather set
- +INSERT INTO armorsets VALUES(21, 2397, 2402, 503, 5712, 5728, 3522, 0, 0, 3619, 0, 0); -- Zubei robe set
- -INSERT INTO armorsets VALUES(22, 2376, 2379, 2415, 5714, 5730, 3519, 673, 3548, 3617); -- Avadon heavy set
- -INSERT INTO armorsets VALUES(23, 2390, 0, 2415, 5715, 5731, 3521, 0, 0, 3618); -- Avadon leather set
- -INSERT INTO armorsets VALUES(24, 2406, 0, 2415, 5716, 5732, 3523, 0, 0, 3619); -- Avadon robe set
- +INSERT INTO armorsets VALUES(22, 2376, 2379, 2415, 5714, 5730, 3519, 673, 3548, 3617, 0, 0); -- Avadon heavy set
- +INSERT INTO armorsets VALUES(23, 2390, 0, 2415, 5715, 5731, 3521, 0, 0, 3618, 0, 0); -- Avadon leather set
- +INSERT INTO armorsets VALUES(24, 2406, 0, 2415, 5716, 5732, 3523, 0, 0, 3619, 0, 0); -- Avadon robe set
- -INSERT INTO armorsets VALUES(25, 358, 2380, 2416, 5718, 5734, 3524, 0, 0, 3617); -- Blue Wolf's Breastplate set
- -INSERT INTO armorsets VALUES(26, 2391, 0, 2416, 5719, 5735, 3526, 0, 0, 3618); -- Blue wolf leather set
- -INSERT INTO armorsets VALUES(27, 2398, 2403, 2416, 5720, 5736, 3528, 0, 0, 3619); -- Blue Wolf robe set
- +INSERT INTO armorsets VALUES(25, 358, 2380, 2416, 5718, 5734, 3524, 0, 0, 3617, 0, 0); -- Blue Wolf's Breastplate set
- +INSERT INTO armorsets VALUES(26, 2391, 0, 2416, 5719, 5735, 3526, 0, 0, 3618, 0, 0); -- Blue wolf leather set
- +INSERT INTO armorsets VALUES(27, 2398, 2403, 2416, 5720, 5736, 3528, 0, 0, 3619, 0, 0); -- Blue Wolf robe set
- -INSERT INTO armorsets VALUES(28, 2381, 0, 2417, 5722, 5738, 3525, 110, 3549, 3617); -- Doom plate heavy set
- -INSERT INTO armorsets VALUES(29, 2392, 0, 2417, 5723, 5739, 3527, 0, 0, 3618); -- Doom leather set
- -INSERT INTO armorsets VALUES(30, 2399, 2404, 2417, 5724, 5740, 3529, 0, 0, 3619); -- Doom robe set
- +INSERT INTO armorsets VALUES(28, 2381, 0, 2417, 5722, 5738, 3525, 110, 3549, 3617, 0, 0); -- Doom plate heavy set
- +INSERT INTO armorsets VALUES(29, 2392, 0, 2417, 5723, 5739, 3527, 0, 0, 3618, 0, 0); -- Doom leather set
- +INSERT INTO armorsets VALUES(30, 2399, 2404, 2417, 5724, 5740, 3529, 0, 0, 3619, 0, 0); -- Doom robe set
- -- A GRADE -------------
- --- ######################## id chest legs head gloves feet skill shield sh_skill enchant6
- -INSERT INTO armorsets VALUES(31, 365, 388, 512, 5765, 5777, 3530, 641, 3550, 3620); -- Dark Crystal Breastplate set
- -INSERT INTO armorsets VALUES(32, 2385, 2389, 512, 5766, 5778, 3532, 0, 0, 3621); -- Dark Crystal leather set
- -INSERT INTO armorsets VALUES(33, 2407, 0, 512, 5767, 5779, 3535, 0, 0, 3622); -- Dark Crystal robe set
- +-- ######################## id chest legs head gloves feet skill shield sh_skill enchant6 enchant12 enchant16
- +INSERT INTO armorsets VALUES(31, 365, 388, 512, 5765, 5777, 3530, 641, 3550, 3620, 0, 0); -- Dark Crystal Breastplate set
- +INSERT INTO armorsets VALUES(32, 2385, 2389, 512, 5766, 5778, 3532, 0, 0, 3621, 0, 0); -- Dark Crystal leather set
- +INSERT INTO armorsets VALUES(33, 2407, 0, 512, 5767, 5779, 3535, 0, 0, 3622, 0, 0); -- Dark Crystal robe set
- INSERT INTO armorsets VALUES(34, 2382, 0, 547, 5768, 5780, 3531, 0, 0, 3620); -- Tallum plate heavy set
- INSERT INTO armorsets VALUES(35, 2393, 0, 547, 5769, 5781, 3533, 0, 0, 3621); -- Tallum leather set
- INSERT INTO armorsets VALUES(36, 2400, 2405, 547, 5770, 5782, 3534, 0, 0, 3622); -- Tallum robe set
- -INSERT INTO armorsets VALUES(37, 374, 0, 2418, 5771, 5783, 3536, 2498, 3551, 3620); -- Nightmare heavy set
- -INSERT INTO armorsets VALUES(38, 2394, 0, 2418, 5772, 5784, 3538, 0, 0, 3621); -- Nightmare leather set
- -INSERT INTO armorsets VALUES(39, 2408, 0, 2418, 5773, 5785, 3540, 0, 0, 3622); -- Robe of nightmare set
- +INSERT INTO armorsets VALUES(37, 374, 0, 2418, 5771, 5783, 3536, 2498, 3551, 3620), 0, 0; -- Nightmare heavy set
- +INSERT INTO armorsets VALUES(38, 2394, 0, 2418, 5772, 5784, 3538, 0, 0, 3621, 0, 0); -- Nightmare leather set
- +INSERT INTO armorsets VALUES(39, 2408, 0, 2418, 5773, 5785, 3540, 0, 0, 3622, 0, 0); -- Robe of nightmare set
- -INSERT INTO armorsets VALUES(40, 2383, 0, 2419, 5774, 5786, 3537, 0, 0, 3620); -- Majestic plate heavy set
- -INSERT INTO armorsets VALUES(41, 2395, 0, 2419, 5775, 5787, 3539, 0, 0, 3621); -- Majestic leather set
- -INSERT INTO armorsets VALUES(42, 2409, 0, 2419, 5776, 5788, 3541, 0, 0, 3622); -- Majestic robe set
- +INSERT INTO armorsets VALUES(40, 2383, 0, 2419, 5774, 5786, 3537, 0, 0, 3620, 0, 0); -- Majestic plate heavy set
- +INSERT INTO armorsets VALUES(41, 2395, 0, 2419, 5775, 5787, 3539, 0, 0, 3621, 0, 0); -- Majestic leather set
- +INSERT INTO armorsets VALUES(42, 2409, 0, 2419, 5776, 5788, 3541, 0, 0, 3622, 0, 0); -- Majestic robe set
- -- S GRADE -------------
- --- ######################## id chest legs head gloves feet skill shield sh_skill enchant6
- -INSERT INTO armorsets VALUES(43, 6373, 6374, 6378, 6375, 6376, 3553, 6377, 3554, 3623); -- Imperial crusader set
- -INSERT INTO armorsets VALUES(44, 6379, 0, 6382, 6380, 6381, 3555, 0, 0, 3624); -- Draconic leather set
- -INSERT INTO armorsets VALUES(45, 6383, 0, 6386, 6384, 6385, 3556, 0, 0, 3625); -- Major arcana robe set
- +-- ######################## id chest legs head gloves feet skill shield sh_skill enchant6 enchant12 enchant16
- +INSERT INTO armorsets VALUES(43, 6373, 6374, 6378, 6375, 6376, 3553, 6377, 3554, 3623, 0, 0); -- Imperial crusader set
- +INSERT INTO armorsets VALUES(44, 6379, 0, 6382, 6380, 6381, 3555, 0, 0, 3624, 0, 0); -- Draconic leather set
- +INSERT INTO armorsets VALUES(45, 6383, 0, 6386, 6384, 6385, 3556, 0, 0, 3625, 0, 0); -- Major arcana robe set
- -- Clan Sets -------------
- --- ######################## id chest legs head gloves feet skill shield sh_skill enchant6
- -INSERT INTO armorsets VALUES(46, 7851, 0, 7850, 7852, 7853, 3605, 0, 0, 3611); -- Clan oath Armor set (heavy)
- -INSERT INTO armorsets VALUES(47, 7854, 0, 7850, 7855, 7856, 3606, 0, 0, 3612); -- Clan Oath Brigandine set (light)
- -INSERT INTO armorsets VALUES(48, 7857, 0, 7850, 7858, 7859, 3607, 0, 0, 3613); -- Clan Oath Aketon set (robe)
- +-- ######################## id chest legs head gloves feet skill shield sh_skill enchant6 enchant12 enchant16
- +INSERT INTO armorsets VALUES(46, 7851, 0, 7850, 7852, 7853, 3605, 0, 0, 3611, 0, 0); -- Clan oath Armor set (heavy)
- +INSERT INTO armorsets VALUES(47, 7854, 0, 7850, 7855, 7856, 3606, 0, 0, 3612, 0, 0); -- Clan Oath Brigandine set (light)
- +INSERT INTO armorsets VALUES(48, 7857, 0, 7850, 7858, 7859, 3607, 0, 0, 3613, 0, 0); -- Clan Oath Aketon set (robe)
- -INSERT INTO armorsets VALUES(49, 7861, 0, 7860, 7862, 7863, 3608, 0, 0, 3620); -- Apella plate armor set (heavy)
- -INSERT INTO armorsets VALUES(50, 7864, 0, 7860, 7865, 7866, 3609, 0, 0, 3621); -- Apella Brigandine set (light)
- -INSERT INTO armorsets VALUES(51, 7867, 0, 7860, 7868, 7869, 3610, 0, 0, 3622); -- Apella Doublet set (robe)
- +INSERT INTO armorsets VALUES(49, 7861, 0, 7860, 7862, 7863, 3608, 0, 0, 3620, 0, 0); -- Apella plate armor set (heavy)
- +INSERT INTO armorsets VALUES(50, 7864, 0, 7860, 7865, 7866, 3609, 0, 0, 3621, 0, 0); -- Apella Brigandine set (light)
- +INSERT INTO armorsets VALUES(51, 7867, 0, 7860, 7868, 7869, 3610, 0, 0, 3622, 0, 0); -- Apella Doublet set (robe)
Advertisement
Add Comment
Please, Sign In to add comment