diff options
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 |