Fixed TradeStart packet.
This commit is contained in:
@@ -47,7 +47,30 @@ public class TradeStart extends AbstractItemPacket
|
||||
packet.writeH(_itemList.length);
|
||||
for (ItemInstance item : _itemList)
|
||||
{
|
||||
writeItem(packet, item);
|
||||
packet.writeH(item.getItem().getType1()); // item type1
|
||||
packet.writeD(item.getObjectId());
|
||||
packet.writeD(item.getId());
|
||||
packet.writeQ(item.getCount());
|
||||
packet.writeH(item.getItem().getType2()); // item type2
|
||||
packet.writeH(0x00); // ?
|
||||
|
||||
packet.writeD(item.getItem().getBodyPart()); // rev 415 slot 0006-lr.ear 0008-neck 0030-lr.finger 0040-head 0080-?? 0100-l.hand 0200-gloves 0400-chest 0800-pants 1000-feet 2000-?? 4000-r.hand 8000-r.hand
|
||||
packet.writeH(item.getEnchantLevel()); // enchant level
|
||||
packet.writeH(0x00);
|
||||
packet.writeH(item.getCustomType2());
|
||||
|
||||
// T1
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user