diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-14 14:11:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-14 14:11:47 +0300 |
commit | d5a549b6af3579d247bfb7d4ca22c31ca0f3dc38 (patch) | |
tree | dbd146bc0a5f477a2f1f79986be719f2ee384596 /src/net/eathena/inventoryhandler.cpp | |
parent | fe0ec89b20da19d9670cfcde7623b379c669c7c3 (diff) | |
download | manaverse-d5a549b6af3579d247bfb7d4ca22c31ca0f3dc38.tar.gz manaverse-d5a549b6af3579d247bfb7d4ca22c31ca0f3dc38.tar.bz2 manaverse-d5a549b6af3579d247bfb7d4ca22c31ca0f3dc38.tar.xz manaverse-d5a549b6af3579d247bfb7d4ca22c31ca0f3dc38.zip |
eathena: add partial support for packet.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 7ffd0f025..8b75b1df9 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -72,6 +72,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_UNE_CARD, SMSG_PLAYER_INSERT_CARD, SMSG_PLAYER_ITEM_RENTAL_TIME, + SMSG_PLAYER_ITEM_RENTAL_EXPIRED, 0 }; handledMessages = _messages; @@ -166,6 +167,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processPlayerItemRentalTime(msg); break; + case SMSG_PLAYER_ITEM_RENTAL_EXPIRED: + processPlayerItemRentalExpired(msg); + break; + default: break; } @@ -649,4 +654,11 @@ void InventoryHandler::processPlayerItemRentalTime(Net::MessageIn &msg) msg.readInt32("seconds"); } +void InventoryHandler::processPlayerItemRentalExpired(Net::MessageIn &msg) +{ + // ++ need remove item from inventory + msg.readInt16("index"); + msg.readInt16("item id"); +} + } // namespace EAthena |