diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 02:18:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 02:18:07 +0300 |
commit | 65bd35dfb2567a6c13d384992ba20e6ac50b404f (patch) | |
tree | ac306c2b98780408603670972fd18a0a7e474135 | |
parent | 7edf8dfdda5a1a9d506773d78d224b801b3fb381 (diff) | |
download | plus-65bd35dfb2567a6c13d384992ba20e6ac50b404f.tar.gz plus-65bd35dfb2567a6c13d384992ba20e6ac50b404f.tar.bz2 plus-65bd35dfb2567a6c13d384992ba20e6ac50b404f.tar.xz plus-65bd35dfb2567a6c13d384992ba20e6ac50b404f.zip |
Add packet SMSG_RODEX_CHECK_NAME_RESULT 0x0a14.
-rw-r--r-- | src/net/eathena/mail2recv.cpp | 10 | ||||
-rw-r--r-- | src/net/eathena/mail2recv.h | 1 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 11 |
3 files changed, 20 insertions, 2 deletions
diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp index 6b8e99471..4b1b53581 100644 --- a/src/net/eathena/mail2recv.cpp +++ b/src/net/eathena/mail2recv.cpp @@ -80,4 +80,14 @@ void Mail2Recv::processRemoveItemResult(Net::MessageIn &msg) msg.readInt16("weight"); } +void Mail2Recv::processCheckNameResult(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readInt32("char id"); + msg.readInt16("class"); + msg.readInt16("level"); + if (msg.getVersion() >= 20160316) + msg.readString(24, "name"); +} + } // namespace EAthena diff --git a/src/net/eathena/mail2recv.h b/src/net/eathena/mail2recv.h index bdb9cf1ab..6c0d7f600 100644 --- a/src/net/eathena/mail2recv.h +++ b/src/net/eathena/mail2recv.h @@ -34,6 +34,7 @@ namespace EAthena void processOpenNewMailWindow(Net::MessageIn &msg); void processAddItemResult(Net::MessageIn &msg); void processRemoveItemResult(Net::MessageIn &msg); + void processCheckNameResult(Net::MessageIn &msg); } // namespace MailRecv } // namespace EAthena diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 9f94b2441..99f214fad 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -789,10 +789,11 @@ if (packetVersion >= 20131223) } // 20140416 -packet(SMSG_RODEX_OPEN_NEW_MAIL_WINDOW, 0x0a12, 27, &Mail2Recv::processOpenNewMailWindow, 20140416); +packet(SMSG_RODEX_OPEN_NEW_MAIL_WINDOW, 0x0a12, 27, &Mail2Recv::processOpenNewMailWindow, 20140416); // 20140521 -packet(SMSG_RODEX_REMOVE_ITEM_RESULT, 0x0a07, 9, &Mail2Recv::processRemoveItemResult, 20140521); +packet(SMSG_RODEX_REMOVE_ITEM_RESULT, 0x0a07, 9, &Mail2Recv::processRemoveItemResult, 20140521); +packet(SMSG_RODEX_CHECK_NAME_RESULT, 0x0a14, 10, &Mail2Recv::processCheckNameResult, 20140521); // 20140613 if (packetVersion >= 20140613) @@ -925,6 +926,12 @@ if (packetVersion >= 20170315) packet(SMSG_LOGIN_DATA, 0x0ac4, -1, &LoginRecv::processLoginData, 20170315); } +// 20160316 +if (packetVersion >= 20160316) +{ + packet(SMSG_RODEX_CHECK_NAME_RESULT, 0x0a51, 34, &Mail2Recv::processCheckNameResult, 20160316); +} + // 20170329 if (packetVersion >= 20170329) { |