summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-11 16:36:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-11 16:36:57 +0300
commit1755745c3486fbed6b92c2ebacddae2fc6086443 (patch)
tree4cb9cbe1ce2a53d89272486740ce33a80a6e4d10 /src/net/eathena/pethandler.cpp
parent23b35de445d6af7d6e00576f4fbdfa1d15ba37df (diff)
downloadmv-1755745c3486fbed6b92c2ebacddae2fc6086443.tar.gz
mv-1755745c3486fbed6b92c2ebacddae2fc6086443.tar.bz2
mv-1755745c3486fbed6b92c2ebacddae2fc6086443.tar.xz
mv-1755745c3486fbed6b92c2ebacddae2fc6086443.zip
eathena: add packet CMSG_PET_SET_NAME 0x01a5.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index 60ec03cd2..bf453055e 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -101,6 +101,12 @@ void PetHandler::requestPetState(const int data) const
outMsg.writeInt32(data, "param");
}
+void PetHandler::setName(const std::string &name) const
+{
+ MessageOut outMsg(CMSG_PET_SET_NAME);
+ outMsg.writeString(name, 24, "name");
+}
+
void PetHandler::processPetMessage(Net::MessageIn &msg)
{
msg.readInt32("pet id");