summaryrefslogtreecommitdiff
path: root/src/net
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
parent12ae270e892d8d7cef9813031e7359c93009ed02 (diff)
downloadplus-fe0ec89b20da19d9670cfcde7623b379c669c7c3.tar.gz
plus-fe0ec89b20da19d9670cfcde7623b379c669c7c3.tar.bz2
plus-fe0ec89b20da19d9670cfcde7623b379c669c7c3.tar.xz
plus-fe0ec89b20da19d9670cfcde7623b379c669c7c3.zip
eathena: add partial support for packet SMSG_PLAYER_ITEM_RENTAL_TIME 0x0298.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/inventoryhandler.cpp12
-rw-r--r--src/net/eathena/inventoryhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 15 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
diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h
index b2f4db74b..172e0a625 100644
--- a/src/net/eathena/inventoryhandler.h
+++ b/src/net/eathena/inventoryhandler.h
@@ -90,6 +90,8 @@ class InventoryHandler final : public MessageHandler,
void processPlayerUseCard(Net::MessageIn &msg);
void processPlayerInsertCard(Net::MessageIn &msg);
+
+ void processPlayerItemRentalTime(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index ec141ab20..0d13ee184 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -74,6 +74,7 @@
#define SMSG_PLAYER_INVENTORY_REMOVE 0x00af
#define SMSG_PLAYER_INVENTORY_REMOVE2 0x07fa
#define SMSG_PLAYER_INVENTORY_USE 0x01c8
+#define SMSG_PLAYER_ITEM_RENTAL_TIME 0x0298
#define SMSG_PLAYER_EQUIPMENT 0x0992
#define SMSG_PLAYER_EQUIP 0x0999
#define SMSG_PLAYER_UNEQUIP 0x099a