diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-17 23:31:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-17 23:31:50 +0300 |
commit | 0f253bcecd8216ab990d79b2b0db18e527ab563f (patch) | |
tree | 0d2e2291cf63f4cbf9885452aa48d3530456ba96 /src/net/eathena/attendancehandler.cpp | |
parent | 44fd3098a52556602c966303b224bd1496c3c0db (diff) | |
download | plus-0f253bcecd8216ab990d79b2b0db18e527ab563f.tar.gz plus-0f253bcecd8216ab990d79b2b0db18e527ab563f.tar.bz2 plus-0f253bcecd8216ab990d79b2b0db18e527ab563f.tar.xz plus-0f253bcecd8216ab990d79b2b0db18e527ab563f.zip |
Add packet CMSG_ATTENDANCE_REWARD 0x0aef.
Diffstat (limited to 'src/net/eathena/attendancehandler.cpp')
-rw-r--r-- | src/net/eathena/attendancehandler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/attendancehandler.cpp b/src/net/eathena/attendancehandler.cpp index ea53b71ab..538a72fc9 100644 --- a/src/net/eathena/attendancehandler.cpp +++ b/src/net/eathena/attendancehandler.cpp @@ -26,6 +26,8 @@ #include "debug.h" extern int packetVersion; +extern int packetVersionRe; +extern int packetVersionMain; namespace EAthena { @@ -48,4 +50,15 @@ void AttendanceHandler::openAttendanceWindow() const outMsg.writeInt8(5, "window type"); } +void AttendanceHandler::requestReward() const +{ + if (packetVersionRe < 20180307 && + packetVersionMain < 20180404) + { + return; + } + + createOutPacket(CMSG_ATTENDANCE_REWARD); +} + } // namespace EAthena |