summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-24 02:07:42 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-25 02:39:13 +0300
commita9d0898037feff6d3dce507ff0194fe8582a80a8 (patch)
treec6a4c5bee1acfb06f7d55fd94955a4fac620af7d
parent2811da7ca1e50f0d0cfcf44c98e78aa118bd9d7f (diff)
downloadmanaverse-a9d0898037feff6d3dce507ff0194fe8582a80a8.tar.gz
manaverse-a9d0898037feff6d3dce507ff0194fe8582a80a8.tar.bz2
manaverse-a9d0898037feff6d3dce507ff0194fe8582a80a8.tar.xz
manaverse-a9d0898037feff6d3dce507ff0194fe8582a80a8.zip
Add packet SMSG_LOGIN_MOBILE_OTP 0x09a2
-rw-r--r--src/net/eathena/loginrecv.cpp6
-rw-r--r--src/net/eathena/loginrecv.h1
-rw-r--r--src/net/eathena/packetsin.inc13
3 files changed, 20 insertions, 0 deletions
diff --git a/src/net/eathena/loginrecv.cpp b/src/net/eathena/loginrecv.cpp
index 047c243e9..0bad05fb3 100644
--- a/src/net/eathena/loginrecv.cpp
+++ b/src/net/eathena/loginrecv.cpp
@@ -329,4 +329,10 @@ void LoginRecv::processLoginOtp3(Net::MessageIn &msg)
msg.readString(tokenLen, "token");
}
+void LoginRecv::processMobileOtp(Net::MessageIn &msg)
+{
+ UNIMPLEMENTEDPACKET;
+ msg.readBeingId("accound id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/loginrecv.h b/src/net/eathena/loginrecv.h
index 4065c264f..ac765bec6 100644
--- a/src/net/eathena/loginrecv.h
+++ b/src/net/eathena/loginrecv.h
@@ -41,6 +41,7 @@ namespace EAthena
void processLoginOtp1(Net::MessageIn &msg);
void processLoginOtp2(Net::MessageIn &msg);
void processLoginOtp3(Net::MessageIn &msg);
+ void processMobileOtp(Net::MessageIn &msg);
} // namespace LoginRecv
} // namespace EAthena
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index 848e6c221..d701d6e8e 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -1178,6 +1178,7 @@ if (packets_zero == true)
packet(SMSG_ACHIEVEMENT_GET_REWARD, 0x0a26, 6, &AchievementRecv::processAchievementGetReward, 20171018);
packet(SMSG_ITEM_PREVIEW1, 0x0ab9, 39, &InventoryRecv::processShowItemPreview1, 20171018);
packet(SMSG_LOGIN_OTP, 0x0ad1, -1, &LoginRecv::processLoginOtp1, 20171018);
+ packet(SMSG_LOGIN_MOBILE_OTP, 0x09a2, 6, &LoginRecv::processMobileOtp, 20171018);
}
// 20171019 zero
@@ -1453,6 +1454,18 @@ if (packetVersionRe >= 20181031)
packet(SMSG_PLAYER_SKILL_AUTO_SPELLS, 0x0afb, -1, &SkillRecv::processSkillAutoSpells2, 20181031);
}
+// 20181114 main
+if (packetVersionMain >= 20181114)
+{
+ packet(SMSG_LOGIN_MOBILE_OTP, 0x09a2, 6, &LoginRecv::processMobileOtp, 20181114);
+}
+
+// 20181114 re
+if (packetVersionRe >= 20181114)
+{
+ packet(SMSG_LOGIN_MOBILE_OTP, 0x09a2, 6, &LoginRecv::processMobileOtp, 20181114);
+}
+
// 20181128 main
if (packetVersionMain >= 20181128)
{