summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-23 14:45:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-23 14:45:23 +0300
commitc2a0903d2f487a6146bbf0829adb16afeb1efda5 (patch)
treed63fbd1a943893612fe04f12438a78eaa3e41479 /src/net/eathena/pethandler.cpp
parent955f144a8310583babd96963a0c8e604ce8c849b (diff)
downloadplus-c2a0903d2f487a6146bbf0829adb16afeb1efda5.tar.gz
plus-c2a0903d2f487a6146bbf0829adb16afeb1efda5.tar.bz2
plus-c2a0903d2f487a6146bbf0829adb16afeb1efda5.tar.xz
plus-c2a0903d2f487a6146bbf0829adb16afeb1efda5.zip
eathena: add packet CMSG_PET_MENU_ACTION 0x01a1.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index baf6d1056..c565cd280 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -282,4 +282,35 @@ void PetHandler::processPetFood(Net::MessageIn &msg)
msg.readInt16("food id");
}
+void PetHandler::requestStatus() const
+{
+ createOutPacket(CMSG_PET_MENU_ACTION);
+ outMsg.writeInt8(0);
+}
+
+void PetHandler::feed() const
+{
+ createOutPacket(CMSG_PET_MENU_ACTION);
+ outMsg.writeInt8(1);
+}
+
+void PetHandler::dropLoot() const
+{
+ createOutPacket(CMSG_PET_MENU_ACTION);
+ outMsg.writeInt8(2); // performance
+}
+
+void PetHandler::returnToEgg() const
+{
+ createOutPacket(CMSG_PET_MENU_ACTION);
+ outMsg.writeInt8(3);
+ PlayerInfo::setPet(nullptr);
+}
+
+void PetHandler::unequip() const
+{
+ createOutPacket(CMSG_PET_MENU_ACTION);
+ outMsg.writeInt8(4);
+}
+
} // namespace EAthena