From 9a11f30d150928e504406139691b42cce0922174 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Jan 2016 23:27:28 +0300 Subject: Add packet SMSG_SELECT_CART 0x00c2 --- src/net/eathena/inventoryrecv.cpp | 10 ++++++++++ src/net/eathena/inventoryrecv.h | 1 + src/net/eathena/packetsin.inc | 3 +++ 3 files changed, 14 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index d17e83917..ecd0a8257 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -1098,4 +1098,14 @@ void InventoryRecv::processPlayerInventoryRemove(Net::MessageIn &msg) BLOCK_END("InventoryRecv::processPlayerInventoryRemove") } +void InventoryRecv::processSelectCart(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + const int count = msg.readInt16("len") - 8; + msg.readBeingId("account id"); + for (int f = 0; f < count; f ++) + msg.readUInt8("cart type"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryrecv.h b/src/net/eathena/inventoryrecv.h index 60d54b774..2726f88f7 100644 --- a/src/net/eathena/inventoryrecv.h +++ b/src/net/eathena/inventoryrecv.h @@ -70,6 +70,7 @@ namespace EAthena void processCartAddError(Net::MessageIn &msg); void processBindItem(Net::MessageIn &msg); void processPlayerInventoryRemove(Net::MessageIn &msg); + void processSelectCart(Net::MessageIn &msg); } // namespace InventoryRecv } // namespace EAthena diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 6ea86aef2..0cfa88238 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -470,3 +470,6 @@ if (packetVersion >= 20150513) packet(SMSG_BEING_SPAWN, 0x09fe, -1, &BeingRecv::processBeingSpawn); packet(SMSG_BEING_MOVE, 0x09fd, -1, &BeingRecv::processBeingMove); } + +// introduced in 20150805 +packet(SMSG_SELECT_CART, 0x00c2, -1, &InventoryRecv::processSelectCart); -- cgit v1.2.3-70-g09d2