summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-04 20:39:01 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-04 20:42:13 +0300
commit704672e323f88c68690ae976233e7447c131c96c (patch)
treef853f0b1ae0e5816c81ddfd8fd9d93059863688e
parent379c1761469f4ee4edde3c46fc33ed3f981fce93 (diff)
downloadmv-704672e323f88c68690ae976233e7447c131c96c.tar.gz
mv-704672e323f88c68690ae976233e7447c131c96c.tar.bz2
mv-704672e323f88c68690ae976233e7447c131c96c.tar.xz
mv-704672e323f88c68690ae976233e7447c131c96c.zip
Add packet CMSG_ATTENDANCE_REWARD for zero clients.
-rw-r--r--src/net/eathena/attendancehandler.cpp4
-rw-r--r--src/net/eathena/packetsout.inc6
2 files changed, 9 insertions, 1 deletions
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