From eb8108bd7ce9e14e46fdbbdf8b143b2d914a7c6e Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 8 Apr 2020 09:53:08 +0000 Subject: [PATCH] Fixed sorted warehouse. --- .../SortedWareHouseWithdrawalList.java | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/serverpackets/SortedWareHouseWithdrawalList.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/serverpackets/SortedWareHouseWithdrawalList.java index 572a50e4b3..279b623b9a 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/serverpackets/SortedWareHouseWithdrawalList.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/serverpackets/SortedWareHouseWithdrawalList.java @@ -710,6 +710,7 @@ public class SortedWareHouseWithdrawalList implements IClientOutgoingPacket public boolean write(PacketWriter packet) { OutgoingPackets.WAREHOUSE_WITHDRAW_LIST.writeId(packet); + /* * 0x01-Private Warehouse 0x02-Clan Warehouse 0x03-Castle Warehouse 0x04-Warehouse */ @@ -719,38 +720,41 @@ public class SortedWareHouseWithdrawalList implements IClientOutgoingPacket for (WarehouseItem item : _objects) { + packet.writeH(item.getItem().getType1()); packet.writeD(item.getObjectId()); - packet.writeD(item.getItem().getDisplayId()); - packet.writeD(item.getLocationSlot()); + packet.writeD(item.getItemId()); packet.writeQ(item.getCount()); packet.writeH(item.getItem().getType2()); packet.writeH(item.getCustomType1()); - packet.writeH(0x00); // Can't be equipped in WH packet.writeD(item.getItem().getBodyPart()); packet.writeH(item.getEnchantLevel()); + packet.writeH(0x00); packet.writeH(item.getCustomType2()); + packet.writeD(item.getObjectId()); if (item.isAugmented()) { - packet.writeD(item.getAugmentationId()); + packet.writeD(0x0000FFFF & item.getAugmentationId()); + packet.writeD(item.getAugmentationId() >> 16); } else { - packet.writeD(0x00); + packet.writeQ(0x00); } - packet.writeD(item.getMana()); - packet.writeD(item.getTime()); + packet.writeH(item.getAttackElementType()); packet.writeH(item.getAttackElementPower()); for (byte i = 0; i < 6; i++) { packet.writeH(item.getElementDefAttr(i)); } - // Enchant Effects + + packet.writeD(item.getMana()); + packet.writeD(item.getTime()); + for (int op : item.getEnchantOptions()) { packet.writeH(op); } - packet.writeD(item.getObjectId()); } return true; }