Fixed mail related packets.
This commit is contained in:
@@ -43,7 +43,26 @@ public class ExReplyPostItemList extends AbstractItemPacket
|
|||||||
packet.writeD(_itemList.length);
|
packet.writeD(_itemList.length);
|
||||||
for (ItemInstance item : _itemList)
|
for (ItemInstance item : _itemList)
|
||||||
{
|
{
|
||||||
writeItem(packet, item);
|
packet.writeD(item.getObjectId());
|
||||||
|
packet.writeD(item.getId());
|
||||||
|
packet.writeQ(item.getCount());
|
||||||
|
packet.writeH(item.getItem().getType2());
|
||||||
|
packet.writeH(item.getCustomType1());
|
||||||
|
packet.writeD(item.getItem().getBodyPart());
|
||||||
|
packet.writeH(item.getEnchantLevel());
|
||||||
|
packet.writeH(item.getCustomType2());
|
||||||
|
|
||||||
|
packet.writeH(item.getAttackElementType());
|
||||||
|
packet.writeH(item.getAttackElementPower());
|
||||||
|
for (byte i = 0; i < 6; i++)
|
||||||
|
{
|
||||||
|
packet.writeH(item.getElementDefAttr(i));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int op : item.getEnchantOptions())
|
||||||
|
{
|
||||||
|
packet.writeH(op);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -63,8 +63,31 @@ public class ExReplyReceivedPost extends AbstractItemPacket
|
|||||||
packet.writeD(_items.length);
|
packet.writeD(_items.length);
|
||||||
for (ItemInstance item : _items)
|
for (ItemInstance item : _items)
|
||||||
{
|
{
|
||||||
writeItem(packet, item);
|
packet.writeH(item.getItem().getType2());
|
||||||
packet.writeD(item.getObjectId());
|
packet.writeD(0x00); // unknown
|
||||||
|
packet.writeD(item.getId());
|
||||||
|
packet.writeQ(item.getCount());
|
||||||
|
|
||||||
|
packet.writeD(0x00); // unknown
|
||||||
|
packet.writeD(item.getEnchantLevel());
|
||||||
|
packet.writeH(item.getCustomType2());
|
||||||
|
packet.writeH(0x00); // unknown
|
||||||
|
|
||||||
|
packet.writeD(item.isAugmented() ? item.getAugmentation().getAugmentationId() : 0x00);
|
||||||
|
|
||||||
|
packet.writeD(0x00); // unknown
|
||||||
|
|
||||||
|
packet.writeH(item.getAttackElementType());
|
||||||
|
packet.writeH(item.getAttackElementPower());
|
||||||
|
for (byte i = 0; i < 6; i++)
|
||||||
|
{
|
||||||
|
packet.writeH(item.getElementDefAttr(i));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int op : item.getEnchantOptions())
|
||||||
|
{
|
||||||
|
packet.writeH(op);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -63,8 +63,30 @@ public class ExReplySentPost extends AbstractItemPacket
|
|||||||
packet.writeD(_items.length);
|
packet.writeD(_items.length);
|
||||||
for (ItemInstance item : _items)
|
for (ItemInstance item : _items)
|
||||||
{
|
{
|
||||||
writeItem(packet, item);
|
packet.writeH(item.getItem().getType2());
|
||||||
packet.writeD(item.getObjectId());
|
packet.writeD(0x00); // unknown
|
||||||
|
packet.writeD(item.getId());
|
||||||
|
packet.writeQ(item.getCount());
|
||||||
|
packet.writeD(item.getEnchantLevel());
|
||||||
|
packet.writeH(item.getCustomType2());
|
||||||
|
packet.writeH(0x00); // unknown
|
||||||
|
packet.writeD(0x00); // unknown
|
||||||
|
|
||||||
|
packet.writeD(item.isAugmented() ? item.getAugmentation().getAugmentationId() : 0x00);
|
||||||
|
|
||||||
|
packet.writeD(0x00); // unknown
|
||||||
|
|
||||||
|
packet.writeH(item.getAttackElementType());
|
||||||
|
packet.writeH(item.getAttackElementPower());
|
||||||
|
for (byte i = 0; i < 6; i++)
|
||||||
|
{
|
||||||
|
packet.writeH(item.getElementDefAttr(i));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int op : item.getEnchantOptions())
|
||||||
|
{
|
||||||
|
packet.writeH(op);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
packet.writeQ(_msg.getReqAdena());
|
packet.writeQ(_msg.getReqAdena());
|
||||||
packet.writeD(_msg.getSendBySystem());
|
packet.writeD(_msg.getSendBySystem());
|
||||||
|
Reference in New Issue
Block a user