diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-26 06:23:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-26 06:23:26 +0300 |
commit | 5ab11fa491d2d38a0c7489a652debfe510dd52f9 (patch) | |
tree | 4e5caef50bc3a1e4add2e5f164613f195778cf20 | |
parent | 5b896ca505255c8f3f567cea87fad93444a6b2fd (diff) | |
download | mv-5ab11fa491d2d38a0c7489a652debfe510dd52f9.tar.gz mv-5ab11fa491d2d38a0c7489a652debfe510dd52f9.tar.bz2 mv-5ab11fa491d2d38a0c7489a652debfe510dd52f9.tar.xz mv-5ab11fa491d2d38a0c7489a652debfe510dd52f9.zip |
Add packet SMSG_ACHIEVEMENT_GET_REWARD 0x0a26.
-rw-r--r-- | src/net/eathena/achievementrecv.cpp | 8 | ||||
-rw-r--r-- | src/net/eathena/achievementrecv.h | 1 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 3 |
3 files changed, 12 insertions, 0 deletions
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 |