Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: /gameserver/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- /gameserver/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 3)
- +++ /gameserver/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 4)
- @@ -291,4 +291,6 @@
- private long _lastTeleportAction = 0;
- + private static final int[] enchantItemForReward = {111, 222, 333};
- +
- public PlayerStatus getActualStatus(){
- @@ -6689,4 +6691,23 @@
- if(checkIfPvP(target) && targetPlayer.getPvpFlag() != 0 || isInsideZone(ZONE_PVP) && targetPlayer.isInsideZone(ZONE_PVP))
- {
- + for (int ii : enchantItemForReward)
- + {
- + L2ItemInstance item = null;
- +
- + if (getInventory().getPaperdollItem(Inventory.PAPERDOLL_LRHAND) != null)
- + item = getInventory().getPaperdollItem(Inventory.PAPERDOLL_LRHAND);
- + else if (getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) != null)
- + item = getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND);
- +
- + if (item != null)
- + if (item.getItemId() == ii)
- + {
- + int enchant = item.getEnchantLevel();
- + if (enchant > 3)
- + getInventory().addItem("reward", 4037, enchant, this, null);
- + }
- + item = null;
- + }
- +
- increasePvpKills();
- }
- ##getInventory().addItem("reward", 4037, enchant, this, null); // produces a number of item is on that enchanted weapons (only if more than 3), an item = 4037
- ##private static final int[] enchantItemForReward = {111, 222, 333}; // then write a comma weapons are affected by the award. (for S grade)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement