summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-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