summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-11 12:12:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-11 12:12:43 +0300
commit660d3b585ab50038e5b2ea3fb9cf4049a7e697d1 (patch)
tree63512148e5891f266bbdb110758484b0fb6957a5 /src/net/eathena/pethandler.cpp
parent0a39e956218ca15bf78803f89141c7c9dfcec0d9 (diff)
downloadplus-660d3b585ab50038e5b2ea3fb9cf4049a7e697d1.tar.gz
plus-660d3b585ab50038e5b2ea3fb9cf4049a7e697d1.tar.bz2
plus-660d3b585ab50038e5b2ea3fb9cf4049a7e697d1.tar.xz
plus-660d3b585ab50038e5b2ea3fb9cf4049a7e697d1.zip
eathena: add packet CMSG_PET_CATCH 0x019f.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index f96176c38..1b8f77881 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -22,9 +22,11 @@
#include "gui/chatconsts.h"
+#include "net/chathandler.h"
#include "net/net.h"
-#include "net/chathandler.h"
+#include "net/eathena/messageout.h"
+#include "net/eathena/protocol.h"
#include "debug.h"
@@ -74,4 +76,13 @@ void PetHandler::emote(const uint8_t emoteId, const int petId A_UNUSED)
static_cast<int>(emoteId), mRandCounter), GENERAL_CHANNEL);
}
+void PetHandler::catchPet(const Being *const being) const
+{
+ if (!being)
+ return;
+
+ MessageOut outMsg(CMSG_PET_CATCH);
+ outMsg.writeInt32(being->getId());
+}
+
} // namespace EAthena