From 5ab11fa491d2d38a0c7489a652debfe510dd52f9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 26 Sep 2018 06:23:26 +0300 Subject: Add packet SMSG_ACHIEVEMENT_GET_REWARD 0x0a26. --- src/net/eathena/achievementrecv.cpp | 8 ++++++++ src/net/eathena/achievementrecv.h | 1 + src/net/eathena/packetsin.inc | 3 +++ 3 files changed, 12 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/achievementrecv.cpp b/src/net/eathena/achievementrecv.cpp index 11f2d5cc5..95ba47b1e 100644 --- a/src/net/eathena/achievementrecv.cpp +++ b/src/net/eathena/achievementrecv.cpp @@ -51,6 +51,7 @@ void AchievementRecv::processAchievementList(Net::MessageIn &msg) void AchievementRecv::processAchievementUpdate(Net::MessageIn &msg) { + UNIMPLEMENTEDPACKET; msg.readInt32("total points"); msg.readInt16("rank level"); msg.readInt32("rank points"); @@ -64,4 +65,11 @@ void AchievementRecv::processAchievementUpdate(Net::MessageIn &msg) msg.readUInt8("reward"); } +void AchievementRecv::processAchievementGetReward(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readUInt8("received"); + msg.readInt32("ach id"); +} + } // namespace EAthena diff --git a/src/net/eathena/achievementrecv.h b/src/net/eathena/achievementrecv.h index c26131203..f59771646 100644 --- a/src/net/eathena/achievementrecv.h +++ b/src/net/eathena/achievementrecv.h @@ -32,6 +32,7 @@ namespace EAthena { void processAchievementList(Net::MessageIn &msg); void processAchievementUpdate(Net::MessageIn &msg); + void processAchievementGetReward(Net::MessageIn &msg); } // namespace AchievementRecv } // namespace EAthena diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 3fc6d8959..5699a58ea 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -883,6 +883,7 @@ if (packetVersionRe >= 20141126) { packet(SMSG_ACHIEVEMENT_LIST, 0x0a23, -1, &AchievementRecv::processAchievementList, 20141126); packet(SMSG_ACHIEVEMENT_UPDATE, 0x0a24, 66, &AchievementRecv::processAchievementUpdate, 20141126); + packet(SMSG_ACHIEVEMENT_GET_REWARD, 0x0a26, 6, &AchievementRecv::processAchievementGetReward, 20141126); } // 0 @@ -926,6 +927,7 @@ if (packetVersionMain >= 20150225) { packet(SMSG_ACHIEVEMENT_LIST, 0x0a23, -1, &AchievementRecv::processAchievementList, 20150225); packet(SMSG_ACHIEVEMENT_UPDATE, 0x0a24, 66, &AchievementRecv::processAchievementUpdate, 20150225); + packet(SMSG_ACHIEVEMENT_GET_REWARD, 0x0a26, 6, &AchievementRecv::processAchievementGetReward, 20150225); } // 20150226 @@ -1148,6 +1150,7 @@ if (packets_zero == true) packet(SMSG_PARTY_MEMBER_DEAD, 0x0ab2, 7, &PartyRecv::processPartyMemberDead, 20171018); packet(SMSG_ACHIEVEMENT_LIST, 0x0a23, -1, &AchievementRecv::processAchievementList, 20171018); packet(SMSG_ACHIEVEMENT_UPDATE, 0x0a24, 66, &AchievementRecv::processAchievementUpdate, 20171018); + packet(SMSG_ACHIEVEMENT_GET_REWARD, 0x0a26, 6, &AchievementRecv::processAchievementGetReward, 20171018); } // 20171019 zero -- cgit v1.2.3-70-g09d2