summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 13:46:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 13:46:34 +0300
commitfe0ec89b20da19d9670cfcde7623b379c669c7c3 (patch)
treeaa2f7bc6b0c5d3e6eafe6db1d8e2c09692367b11 /src/net/eathena/inventoryhandler.cpp
parent12ae270e892d8d7cef9813031e7359c93009ed02 (diff)
downloadmv-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.cpp12
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