diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-26 05:32:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-26 05:32:53 +0300 |
commit | 014f6d127beb00f08531c038b4edcd7cc049aba2 (patch) | |
tree | 5027fb1bd16e8fcdd1d97a6eb3c0ea52388f291f /src/net/eathena/achievementrecv.cpp | |
parent | 0a6658594a5ec835328869b0a7854d923134ea86 (diff) | |
download | manaplus-014f6d127beb00f08531c038b4edcd7cc049aba2.tar.gz manaplus-014f6d127beb00f08531c038b4edcd7cc049aba2.tar.bz2 manaplus-014f6d127beb00f08531c038b4edcd7cc049aba2.tar.xz manaplus-014f6d127beb00f08531c038b4edcd7cc049aba2.zip |
Add packet SMSG_ACHIEVEMENT_UPDATE 0x0a24.
Diffstat (limited to 'src/net/eathena/achievementrecv.cpp')
-rw-r--r-- | src/net/eathena/achievementrecv.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/achievementrecv.cpp b/src/net/eathena/achievementrecv.cpp index 96f1a2594..11f2d5cc5 100644 --- a/src/net/eathena/achievementrecv.cpp +++ b/src/net/eathena/achievementrecv.cpp @@ -49,4 +49,19 @@ void AchievementRecv::processAchievementList(Net::MessageIn &msg) } } +void AchievementRecv::processAchievementUpdate(Net::MessageIn &msg) +{ + msg.readInt32("total points"); + msg.readInt16("rank level"); + msg.readInt32("rank points"); + msg.readInt32("rank points need"); + + msg.readInt32("ach id"); + msg.readUInt8("completed"); + for (int d = 0; d < 10; d ++) + msg.readInt32("objective"); + msg.readInt32("completed at"); + msg.readUInt8("reward"); +} + } // namespace EAthena |