From 68f7d0afad5023ccd0e5eb8e6739cf2baf217f7c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Sep 2014 19:08:31 +0300 Subject: eathena: add packet CMSG_PET_SELECT_EGG 0x01a7. --- src/net/eathena/inventoryhandler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/net/eathena/inventoryhandler.cpp') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 1e3a80ffe..7717586f3 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -589,4 +589,11 @@ void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg) BLOCK_END("InventoryHandler::processPlayerStorageAdd") } +void InventoryHandler::selectEgg(const Item *const item) const +{ + createOutPacket(CMSG_PET_SELECT_EGG); + outMsg.writeInt16(static_cast( + item->getInvIndex() + INVENTORY_OFFSET), "index"); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50