diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 18:16:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 18:16:32 +0300 |
commit | cd02cce9c9b344c67b05b9b70f944bbed600c62e (patch) | |
tree | 3e4ce04ddde7dc8845f6d77367ad5d310423cc4e /src | |
parent | 1a43a25be73ab9ed464903edef65486e54699437 (diff) | |
download | mv-cd02cce9c9b344c67b05b9b70f944bbed600c62e.tar.gz mv-cd02cce9c9b344c67b05b9b70f944bbed600c62e.tar.bz2 mv-cd02cce9c9b344c67b05b9b70f944bbed600c62e.tar.xz mv-cd02cce9c9b344c67b05b9b70f944bbed600c62e.zip |
Add packet CMSG_CHECK_NAME 0x0a13.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/beinghandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 8 | ||||
-rw-r--r-- | src/net/eathena/beinghandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 7 | ||||
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/beinghandler.h | 2 |
6 files changed, 25 insertions, 0 deletions
diff --git a/src/net/beinghandler.h b/src/net/beinghandler.h index ccf998def..5c3da3887 100644 --- a/src/net/beinghandler.h +++ b/src/net/beinghandler.h @@ -49,6 +49,8 @@ class BeingHandler notfinal virtual void requestRanks(const RankT rank) const = 0; virtual void viewPlayerEquipment(const Being *const being) const = 0; + + virtual void requestCheckName(const std::string &name) const = 0; }; } // namespace Net diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index d53848654..31380aa0d 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -106,4 +106,12 @@ void BeingHandler::requestNameByCharId(const int id) const outMsg.writeInt32(id, "character id"); } +void BeingHandler::requestCheckName(const std::string &name) const +{ + if (packetVersion < 20140423) + return; + createOutPacket(CMSG_CHECK_NAME); + outMsg.writeString(name, 24, "name"); +} + } // namespace EAthena diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h index cb8f8c248..f101ed258 100644 --- a/src/net/eathena/beinghandler.h +++ b/src/net/eathena/beinghandler.h @@ -47,6 +47,8 @@ class BeingHandler final : public Ea::BeingHandler void viewPlayerEquipment(const Being *const being) const override final; + + void requestCheckName(const std::string &name) const override final; }; } // namespace EAthena diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 446d95144..b26a6ef9d 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -317,6 +317,7 @@ packet(CMSG_BOOKING_REGISTER_REQ, 0x0000, 0, nullptr); packet(CMSG_BOOKING_SEARCH_REQ, 0x0000, 0, nullptr); packet(CMSG_BOOKING_DELETE_REQ, 0x0000, 0, nullptr); packet(CMSG_BOOKING_UPDATE_REQ, 0x0000, 0, nullptr); +packet(CMSG_CHECK_NAME, 0x0000, 0, nullptr); packet(CMSG_MAIL2_OPEN_WRITE_MAIL, 0x0000, 0, nullptr); packet(CMSG_MAIL2_ADD_ITEM_TO_MAIL, 0x0000, 0, nullptr); packet(CMSG_MAIL2_REMOVE_ITEM_MAIL, 0x0000, 0, nullptr); @@ -1382,6 +1383,12 @@ if (packetVersion == 20140416) packet(CMSG_MAIL2_REMOVE_ITEM_MAIL, 0x0a06, 6, clif->pRodexRemoveItem); } +// 20140423 +if (packetVersion >= 20140423) +{ + packet(CMSG_CHECK_NAME, 0x0a13, 26, clif->pRodexCheckName); +} + // 20140605 if (packetVersion >= 20140605) { diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index c4e57627e..74b0334fd 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -71,4 +71,8 @@ void BeingHandler::requestNameByCharId(const int id A_UNUSED) const { } +void BeingHandler::requestCheckName(const std::string &name A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h index 04cced3ed..e7eeb148c 100644 --- a/src/net/tmwa/beinghandler.h +++ b/src/net/tmwa/beinghandler.h @@ -48,6 +48,8 @@ class BeingHandler final : public Ea::BeingHandler A_CONST; void requestNameByCharId(const int id) const override final A_CONST; + + void requestCheckName(const std::string &name) const override final; }; } // namespace TmwAthena |