summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/mail2recv.cpp10
-rw-r--r--src/net/eathena/mail2recv.h1
-rw-r--r--src/net/eathena/packetsin.inc11
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)
{