Small improvement for PrivateStoreListBuy serverpacket.

This commit is contained in:
MobiusDev
2017-04-16 17:10:49 +00:00
parent f9a2893f43
commit c4842b7e9b
2 changed files with 8 additions and 6 deletions

View File

@ -48,14 +48,15 @@ public class PrivateStoreListBuy extends AbstractItemPacket
packet.writeD(_objId);
packet.writeQ(_playerAdena);
packet.writeD(0x00); // unk
packet.writeD(0x00); // Viewer's item count?
packet.writeD(_items.size());
int slotNumber = 0;
for (TradeItem item : _items)
{
slotNumber++;
writeItem(packet, item);
// packet.writeD(item.getObjectId());
packet.writeD(0x00); // unk
packet.writeD(slotNumber); // Slot in shop
packet.writeQ(item.getPrice());
packet.writeQ(item.getItem().getReferencePrice() * 2);
packet.writeQ(item.getStoreCount());