PrivateStoreManageListSell packet fix.
This commit is contained in:
@@ -68,10 +68,8 @@ public class PrivateStoreManageListSell extends GameServerPacket
|
|||||||
writeD(_playerAdena);
|
writeD(_playerAdena);
|
||||||
|
|
||||||
// section2
|
// section2
|
||||||
writeD(_itemList.length - _sellList.length); // for potential sells
|
writeD(_itemList.length); // for potential sells
|
||||||
for (TradeItem item : _itemList)
|
for (TradeItem item : _itemList)
|
||||||
{
|
|
||||||
if (isItemInSelling(item) == false)
|
|
||||||
{
|
{
|
||||||
writeD(item.getItem().getType2());
|
writeD(item.getItem().getType2());
|
||||||
writeD(item.getObjectId());
|
writeD(item.getObjectId());
|
||||||
@@ -83,7 +81,7 @@ public class PrivateStoreManageListSell extends GameServerPacket
|
|||||||
writeD(item.getItem().getBodyPart());
|
writeD(item.getItem().getBodyPart());
|
||||||
writeD(item.getPrice()); // store price
|
writeD(item.getPrice()); // store price
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// section 3
|
// section 3
|
||||||
writeD(_sellList.length); // count for any items already added for sell
|
writeD(_sellList.length); // count for any items already added for sell
|
||||||
for (TradeItem item : _sellList)
|
for (TradeItem item : _sellList)
|
||||||
@@ -100,16 +98,4 @@ public class PrivateStoreManageListSell extends GameServerPacket
|
|||||||
writeD(item.getItem().getReferencePrice()); // store price
|
writeD(item.getItem().getReferencePrice()); // store price
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isItemInSelling(TradeItem item_)
|
|
||||||
{
|
|
||||||
for (TradeItem itemSell : _sellList)
|
|
||||||
{
|
|
||||||
if (itemSell.getObjectId() == item_.getObjectId())
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user