diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-26 04:27:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-26 04:27:48 +0300 |
commit | 93c40783e3fdc33cc82253d3927d2f508b7ebe1a (patch) | |
tree | 27c944631e9dce17a0cd9435dee8b0282b20e801 /src/net/eathena/beingrecv.cpp | |
parent | f6b2109e3ae09f1b01d0e1c436f88f1f54dbd7d6 (diff) | |
download | mv-93c40783e3fdc33cc82253d3927d2f508b7ebe1a.tar.gz mv-93c40783e3fdc33cc82253d3927d2f508b7ebe1a.tar.bz2 mv-93c40783e3fdc33cc82253d3927d2f508b7ebe1a.tar.xz mv-93c40783e3fdc33cc82253d3927d2f508b7ebe1a.zip |
Add packet SMSG_BEING_VIEW_EQUIPMENT2 0x0b03.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index 9a20c8357..a214dda39 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -2007,6 +2007,39 @@ void BeingRecv::processBeingViewEquipment(Net::MessageIn &msg) } } +void BeingRecv::processBeingViewEquipment2(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + + const int count = (msg.readInt16("len") - 47) / (21 + itemIdLen * 5); + msg.readString(24, "name"); + msg.readInt16("job"); + msg.readInt16("head"); + msg.readInt16("accessory"); + msg.readInt16("accessory2"); + msg.readInt16("accessory3"); + msg.readInt16("robe"); + msg.readInt16("hair color"); + msg.readInt16("body color"); + msg.readInt16("body2"); + msg.readUInt8("gender"); + for (int f = 0; f < count; f ++) + { + msg.readInt16("index"); + msg.readItemId("item id"); + msg.readUInt8("item type"); + msg.readInt32("location"); + msg.readInt32("wear state"); + msg.readInt8("refine"); + for (int d = 0; d < maxCards; d ++) + msg.readItemId("card"); + msg.readInt32("hire expire date (?)"); + msg.readInt16("equip type"); + msg.readInt16("item sprite number"); + msg.readUInt8("flags"); + } +} + void BeingRecv::processPvpSet(Net::MessageIn &msg) { BLOCK_START("BeingRecv::processPvpSet") |