summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 14:11:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 14:11:47 +0300
commitd5a549b6af3579d247bfb7d4ca22c31ca0f3dc38 (patch)
treedbd146bc0a5f477a2f1f79986be719f2ee384596 /src/net/eathena/inventoryhandler.cpp
parentfe0ec89b20da19d9670cfcde7623b379c669c7c3 (diff)
downloadmanaverse-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.cpp12
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