summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-21 19:08:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-21 19:08:31 +0300
commit68f7d0afad5023ccd0e5eb8e6739cf2baf217f7c (patch)
tree63d2ea0437231cc6f8f9f587791094968cdc7134 /src/net/eathena/inventoryhandler.cpp
parent42bd653a5932f2fb38fc8e3c3a09286ddac20761 (diff)
downloadplus-68f7d0afad5023ccd0e5eb8e6739cf2baf217f7c.tar.gz
plus-68f7d0afad5023ccd0e5eb8e6739cf2baf217f7c.tar.bz2
plus-68f7d0afad5023ccd0e5eb8e6739cf2baf217f7c.tar.xz
plus-68f7d0afad5023ccd0e5eb8e6739cf2baf217f7c.zip
eathena: add packet CMSG_PET_SELECT_EGG 0x01a7.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp7
1 files changed, 7 insertions, 0 deletions
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<int16_t>(
+ item->getInvIndex() + INVENTORY_OFFSET), "index");
+}
+
} // namespace EAthena