diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-14 13:46:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-14 13:46:34 +0300 |
commit | fe0ec89b20da19d9670cfcde7623b379c669c7c3 (patch) | |
tree | aa2f7bc6b0c5d3e6eafe6db1d8e2c09692367b11 /src/net/eathena/inventoryhandler.cpp | |
parent | 12ae270e892d8d7cef9813031e7359c93009ed02 (diff) | |
download | mv-fe0ec89b20da19d9670cfcde7623b379c669c7c3.tar.gz mv-fe0ec89b20da19d9670cfcde7623b379c669c7c3.tar.bz2 mv-fe0ec89b20da19d9670cfcde7623b379c669c7c3.tar.xz mv-fe0ec89b20da19d9670cfcde7623b379c669c7c3.zip |
eathena: add partial support for packet SMSG_PLAYER_ITEM_RENTAL_TIME 0x0298.
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 11cc8f311..7ffd0f025 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -71,6 +71,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_ATTACK_RANGE, SMSG_PLAYER_UNE_CARD, SMSG_PLAYER_INSERT_CARD, + SMSG_PLAYER_ITEM_RENTAL_TIME, 0 }; handledMessages = _messages; @@ -161,6 +162,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processPlayerInsertCard(msg); break; + case SMSG_PLAYER_ITEM_RENTAL_TIME: + processPlayerItemRentalTime(msg); + break; + default: break; } @@ -637,4 +642,11 @@ void InventoryHandler::selectEgg(const Item *const item) const menu = MenuType::Unknown; } +void InventoryHandler::processPlayerItemRentalTime(Net::MessageIn &msg) +{ + // +++ need update item rental time + msg.readInt16("item id"); + msg.readInt32("seconds"); +} + } // namespace EAthena |