summaryrefslogtreecommitdiff
path: root/src/net/eathena/attendancehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-17 23:31:50 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-17 23:31:50 +0300
commit0f253bcecd8216ab990d79b2b0db18e527ab563f (patch)
tree0d2e2291cf63f4cbf9885452aa48d3530456ba96 /src/net/eathena/attendancehandler.cpp
parent44fd3098a52556602c966303b224bd1496c3c0db (diff)
downloadmv-0f253bcecd8216ab990d79b2b0db18e527ab563f.tar.gz
mv-0f253bcecd8216ab990d79b2b0db18e527ab563f.tar.bz2
mv-0f253bcecd8216ab990d79b2b0db18e527ab563f.tar.xz
mv-0f253bcecd8216ab990d79b2b0db18e527ab563f.zip
Add packet CMSG_ATTENDANCE_REWARD 0x0aef.
Diffstat (limited to 'src/net/eathena/attendancehandler.cpp')
-rw-r--r--src/net/eathena/attendancehandler.cpp13
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