From 0f253bcecd8216ab990d79b2b0db18e527ab563f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Apr 2018 23:31:50 +0300 Subject: Add packet CMSG_ATTENDANCE_REWARD 0x0aef. --- src/net/eathena/attendancehandler.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/net/eathena/attendancehandler.cpp') 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 -- cgit v1.2.3-60-g2f50