summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-11 15:39:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-11 15:39:07 +0300
commit4c4c2684278f84f952544d8e4f119ce9da980c1a (patch)
tree6d7b7f5cc06782cbed5a9fd0c12e3e3ca671f5e3
parent43e7e15b797fbe4f2e1f636745208f71dd0078a9 (diff)
downloadmv-4c4c2684278f84f952544d8e4f119ce9da980c1a.tar.gz
mv-4c4c2684278f84f952544d8e4f119ce9da980c1a.tar.bz2
mv-4c4c2684278f84f952544d8e4f119ce9da980c1a.tar.xz
mv-4c4c2684278f84f952544d8e4f119ce9da980c1a.zip
eathena: add packet CMSG_PET_REQUEST_STATE 0x01a9.
-rw-r--r--src/net/eathena/pethandler.cpp6
-rw-r--r--src/net/eathena/pethandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/pethandler.h2
-rw-r--r--src/net/tmwa/pethandler.cpp4
-rw-r--r--src/net/tmwa/pethandler.h2
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index bf4939345..9d6772006 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -85,4 +85,10 @@ void PetHandler::catchPet(const Being *const being) const
outMsg.writeInt32(being->getId(), "monster id");
}
+void PetHandler::requestPetState(const int data) const
+{
+ MessageOut outMsg(CMSG_PET_REQUEST_STATE);
+ outMsg.writeInt32(data, "param");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/pethandler.h b/src/net/eathena/pethandler.h
index 126089724..af3e1d918 100644
--- a/src/net/eathena/pethandler.h
+++ b/src/net/eathena/pethandler.h
@@ -51,6 +51,8 @@ class PetHandler final : public MessageHandler, public Net::PetHandler
void catchPet(const Being *const being) const override final;
+ void requestPetState(const int data) const override final;
+
protected:
int mRandCounter;
};
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index bad8fa1a9..3e806f76d 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -338,6 +338,7 @@
#define CMSG_PLAYER_SET_MEMO 0x011d
#define CMSG_PET_CATCH 0x019f
+#define CMSG_PET_REQUEST_STATE 0x01a9
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb
diff --git a/src/net/pethandler.h b/src/net/pethandler.h
index 750baf4dc..745d70195 100644
--- a/src/net/pethandler.h
+++ b/src/net/pethandler.h
@@ -44,6 +44,8 @@ class PetHandler notfinal
virtual void emote(const uint8_t emoteId, const int petId) = 0;
virtual void catchPet(const Being *const being) const = 0;
+
+ virtual void requestPetState(const int data) const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp
index dc15929ed..a9c854de0 100644
--- a/src/net/tmwa/pethandler.cpp
+++ b/src/net/tmwa/pethandler.cpp
@@ -78,4 +78,8 @@ void PetHandler::catchPet(const Being *const being A_UNUSED) const
{
}
+void PetHandler::requestPetState(const int data) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/pethandler.h b/src/net/tmwa/pethandler.h
index 93d3ef2d4..2aeb4dd13 100644
--- a/src/net/tmwa/pethandler.h
+++ b/src/net/tmwa/pethandler.h
@@ -51,6 +51,8 @@ class PetHandler final : public MessageHandler, public Net::PetHandler
void catchPet(const Being *const being) const override final;
+ void requestPetState(const int data) const override final;
+
protected:
int mRandCounter;
};