Small improvement for PrivateStoreListBuy serverpacket.
This commit is contained in:
@@ -48,14 +48,15 @@ public class PrivateStoreListBuy extends AbstractItemPacket
|
|||||||
|
|
||||||
packet.writeD(_objId);
|
packet.writeD(_objId);
|
||||||
packet.writeQ(_playerAdena);
|
packet.writeQ(_playerAdena);
|
||||||
packet.writeD(0x00); // unk
|
packet.writeD(0x00); // Viewer's item count?
|
||||||
packet.writeD(_items.size());
|
packet.writeD(_items.size());
|
||||||
|
|
||||||
|
int slotNumber = 0;
|
||||||
for (TradeItem item : _items)
|
for (TradeItem item : _items)
|
||||||
{
|
{
|
||||||
|
slotNumber++;
|
||||||
writeItem(packet, item);
|
writeItem(packet, item);
|
||||||
// packet.writeD(item.getObjectId());
|
packet.writeD(slotNumber); // Slot in shop
|
||||||
packet.writeD(0x00); // unk
|
|
||||||
packet.writeQ(item.getPrice());
|
packet.writeQ(item.getPrice());
|
||||||
packet.writeQ(item.getItem().getReferencePrice() * 2);
|
packet.writeQ(item.getItem().getReferencePrice() * 2);
|
||||||
packet.writeQ(item.getStoreCount());
|
packet.writeQ(item.getStoreCount());
|
||||||
|
@@ -48,14 +48,15 @@ public class PrivateStoreListBuy extends AbstractItemPacket
|
|||||||
|
|
||||||
packet.writeD(_objId);
|
packet.writeD(_objId);
|
||||||
packet.writeQ(_playerAdena);
|
packet.writeQ(_playerAdena);
|
||||||
packet.writeD(0x00); // unk
|
packet.writeD(0x00); // Viewer's item count?
|
||||||
packet.writeD(_items.size());
|
packet.writeD(_items.size());
|
||||||
|
|
||||||
|
int slotNumber = 0;
|
||||||
for (TradeItem item : _items)
|
for (TradeItem item : _items)
|
||||||
{
|
{
|
||||||
|
slotNumber++;
|
||||||
writeItem(packet, item);
|
writeItem(packet, item);
|
||||||
// packet.writeD(item.getObjectId());
|
packet.writeD(slotNumber); // Slot in shop
|
||||||
packet.writeD(0x00); // unk
|
|
||||||
packet.writeQ(item.getPrice());
|
packet.writeQ(item.getPrice());
|
||||||
packet.writeQ(item.getItem().getReferencePrice() * 2);
|
packet.writeQ(item.getItem().getReferencePrice() * 2);
|
||||||
packet.writeQ(item.getStoreCount());
|
packet.writeQ(item.getStoreCount());
|
||||||
|
Reference in New Issue
Block a user