From 704672e323f88c68690ae976233e7447c131c96c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 May 2018 20:39:01 +0300 Subject: Add packet CMSG_ATTENDANCE_REWARD for zero clients. --- src/net/eathena/attendancehandler.cpp | 4 +++- src/net/eathena/packetsout.inc | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/net/eathena/attendancehandler.cpp b/src/net/eathena/attendancehandler.cpp index 538a72fc9..a492563c1 100644 --- a/src/net/eathena/attendancehandler.cpp +++ b/src/net/eathena/attendancehandler.cpp @@ -28,6 +28,7 @@ extern int packetVersion; extern int packetVersionRe; extern int packetVersionMain; +extern int packetVersionZero; namespace EAthena { @@ -53,7 +54,8 @@ void AttendanceHandler::openAttendanceWindow() const void AttendanceHandler::requestReward() const { if (packetVersionRe < 20180307 && - packetVersionMain < 20180404) + packetVersionMain < 20180404 && + packetVersionZero < 20180411) { return; } diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 32c7bfe9e..b13f6874a 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -1351,4 +1351,10 @@ if (packetVersionMain >= 20180404) packet(CMSG_ATTENDANCE_REWARD, 0x0aef, 2, clif->pAttendanceRewardRequest); } +// zero 20180411 +if (packetVersionZero >= 20180411) +{ + packet(CMSG_ATTENDANCE_REWARD, 0x0aef, 2, clif->pAttendanceRewardRequest); +} + #endif -- cgit v1.2.3-70-g09d2