From d5a549b6af3579d247bfb7d4ca22c31ca0f3dc38 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Oct 2014 14:11:47 +0300 Subject: eathena: add partial support for packet. --- src/net/eathena/inventoryhandler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/net/eathena/inventoryhandler.cpp') 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 -- cgit v1.2.3-70-g09d2