Fixed sorted warehouse.

This commit is contained in:
MobiusDevelopment
2020-04-08 09:53:08 +00:00
parent 007d885411
commit eb8108bd7c

View File

@@ -710,6 +710,7 @@ public class SortedWareHouseWithdrawalList implements IClientOutgoingPacket
public boolean write(PacketWriter packet) public boolean write(PacketWriter packet)
{ {
OutgoingPackets.WAREHOUSE_WITHDRAW_LIST.writeId(packet); OutgoingPackets.WAREHOUSE_WITHDRAW_LIST.writeId(packet);
/* /*
* 0x01-Private Warehouse 0x02-Clan Warehouse 0x03-Castle Warehouse 0x04-Warehouse * 0x01-Private Warehouse 0x02-Clan Warehouse 0x03-Castle Warehouse 0x04-Warehouse
*/ */
@@ -719,38 +720,41 @@ public class SortedWareHouseWithdrawalList implements IClientOutgoingPacket
for (WarehouseItem item : _objects) for (WarehouseItem item : _objects)
{ {
packet.writeH(item.getItem().getType1());
packet.writeD(item.getObjectId()); packet.writeD(item.getObjectId());
packet.writeD(item.getItem().getDisplayId()); packet.writeD(item.getItemId());
packet.writeD(item.getLocationSlot());
packet.writeQ(item.getCount()); packet.writeQ(item.getCount());
packet.writeH(item.getItem().getType2()); packet.writeH(item.getItem().getType2());
packet.writeH(item.getCustomType1()); packet.writeH(item.getCustomType1());
packet.writeH(0x00); // Can't be equipped in WH
packet.writeD(item.getItem().getBodyPart()); packet.writeD(item.getItem().getBodyPart());
packet.writeH(item.getEnchantLevel()); packet.writeH(item.getEnchantLevel());
packet.writeH(0x00);
packet.writeH(item.getCustomType2()); packet.writeH(item.getCustomType2());
packet.writeD(item.getObjectId());
if (item.isAugmented()) if (item.isAugmented())
{ {
packet.writeD(item.getAugmentationId()); packet.writeD(0x0000FFFF & item.getAugmentationId());
packet.writeD(item.getAugmentationId() >> 16);
} }
else else
{ {
packet.writeD(0x00); packet.writeQ(0x00);
} }
packet.writeD(item.getMana());
packet.writeD(item.getTime());
packet.writeH(item.getAttackElementType()); packet.writeH(item.getAttackElementType());
packet.writeH(item.getAttackElementPower()); packet.writeH(item.getAttackElementPower());
for (byte i = 0; i < 6; i++) for (byte i = 0; i < 6; i++)
{ {
packet.writeH(item.getElementDefAttr(i)); packet.writeH(item.getElementDefAttr(i));
} }
// Enchant Effects
packet.writeD(item.getMana());
packet.writeD(item.getTime());
for (int op : item.getEnchantOptions()) for (int op : item.getEnchantOptions())
{ {
packet.writeH(op); packet.writeH(op);
} }
packet.writeD(item.getObjectId());
} }
return true; return true;
} }