summaryrefslogtreecommitdiff
path: root/src/net/eathena/attendancehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-17 23:13:10 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-17 23:13:10 +0300
commit44fd3098a52556602c966303b224bd1496c3c0db (patch)
tree7e8cdbe33d6dfbf870da0ec060e7c528a9428429 /src/net/eathena/attendancehandler.cpp
parenta35ac2e4f9e05b379d8520db0e5bd90ad56093df (diff)
downloadplus-44fd3098a52556602c966303b224bd1496c3c0db.tar.gz
plus-44fd3098a52556602c966303b224bd1496c3c0db.tar.bz2
plus-44fd3098a52556602c966303b224bd1496c3c0db.tar.xz
plus-44fd3098a52556602c966303b224bd1496c3c0db.zip
Add packet CMSG_WINDOW_OPEN_REQUEST2 0x0a68.
Diffstat (limited to 'src/net/eathena/attendancehandler.cpp')
-rw-r--r--src/net/eathena/attendancehandler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/attendancehandler.cpp b/src/net/eathena/attendancehandler.cpp
index 0eef7ea1d..ea53b71ab 100644
--- a/src/net/eathena/attendancehandler.cpp
+++ b/src/net/eathena/attendancehandler.cpp
@@ -25,6 +25,8 @@
#include "debug.h"
+extern int packetVersion;
+
namespace EAthena
{
@@ -38,5 +40,12 @@ AttendanceHandler::~AttendanceHandler()
attendanceHandler = nullptr;
}
+void AttendanceHandler::openAttendanceWindow() const
+{
+ if (packetVersion < 20160323)
+ return;
+ createOutPacket(CMSG_WINDOW_OPEN_REQUEST2);
+ outMsg.writeInt8(5, "window type");
+}
} // namespace EAthena