From a9d0898037feff6d3dce507ff0194fe8582a80a8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Jan 2019 02:07:42 +0300 Subject: Add packet SMSG_LOGIN_MOBILE_OTP 0x09a2 --- src/net/eathena/loginrecv.cpp | 6 ++++++ src/net/eathena/loginrecv.h | 1 + src/net/eathena/packetsin.inc | 13 +++++++++++++ 3 files changed, 20 insertions(+) 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) { -- cgit v1.2.3-70-g09d2