From e7f9514cab45863edf6a613ef8563bb15ff66e96 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Apr 2018 23:45:47 +0300 Subject: Add packet SMSG_OPEN_WINDOW2 0x0ae2. --- src/net/eathena/attendancerecv.cpp | 39 ++++++++++++++++++++++++++++++++++++++ src/net/eathena/attendancerecv.h | 37 ++++++++++++++++++++++++++++++++++++ src/net/eathena/network.cpp | 1 + src/net/eathena/packetsin.inc | 21 ++++++++++++++------ 4 files changed, 92 insertions(+), 6 deletions(-) create mode 100644 src/net/eathena/attendancerecv.cpp create mode 100644 src/net/eathena/attendancerecv.h (limited to 'src/net/eathena') diff --git a/src/net/eathena/attendancerecv.cpp b/src/net/eathena/attendancerecv.cpp new file mode 100644 index 000000000..73c21ed3e --- /dev/null +++ b/src/net/eathena/attendancerecv.cpp @@ -0,0 +1,39 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2018 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "net/eathena/attendancerecv.h" + +#include "logger.h" + +#include "net/messagein.h" + +#include "debug.h" + +namespace EAthena +{ + +void AttendanceRecv::processOpenWindow(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readInt8("window type"); + msg.readInt32("data"); +} + +} // namespace EAthena diff --git a/src/net/eathena/attendancerecv.h b/src/net/eathena/attendancerecv.h new file mode 100644 index 000000000..5c01bcd5a --- /dev/null +++ b/src/net/eathena/attendancerecv.h @@ -0,0 +1,37 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2018 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef NET_EATHENA_ATTENDANCERECV_H +#define NET_EATHENA_ATTENDANCERECV_H + +namespace Net +{ + class MessageIn; +} // namespace Net + +namespace EAthena +{ + namespace AttendanceRecv + { + void processOpenWindow(Net::MessageIn &msg); + } // namespace AttendanceRecv +} // namespace EAthena + +#endif // NET_EATHENA_ATTENDANCERECV_H diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp index 375fdea54..e0336ae06 100644 --- a/src/net/eathena/network.cpp +++ b/src/net/eathena/network.cpp @@ -42,6 +42,7 @@ #include "net/eathena/adminrecv.h" #include "net/eathena/auctionrecv.h" +#include "net/eathena/attendancerecv.h" #include "net/eathena/bankrecv.h" #include "net/eathena/battlegroundrecv.h" #include "net/eathena/beingrecv.h" diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 4a5e3fbf3..74dd99152 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -1030,12 +1030,15 @@ if (packetVersion >= 20171207) } // re 20180221 -if (packets_re == true) -{ -if (packetVersion >= 20180221) +if (packetVersionRe >= 20180221) { packet(SMSG_SOLVE_CHAR_NAME, 0x0af7, 32, &BeingRecv::processSolveCharName, 20180221); } + +// re 20180221 +if (packetVersionRe >= 20180221) +{ + packet(SMSG_FRIENDS_PLAYER_ONLINE, 0x0206, 35, &FriendsRecv::processPlayerOnline, 20180221); } // main 20180307 @@ -1045,10 +1048,16 @@ if (packetVersionMain >= 20180307) packet(SMSG_FRIENDS_PLAYER_ONLINE, 0x0206, 35, &FriendsRecv::processPlayerOnline, 20180307); } -// re 20180221 -if (packetVersionRe >= 20180221) +// re 20180307 +if (packetVersionRe >= 20180307) { - packet(SMSG_FRIENDS_PLAYER_ONLINE, 0x0206, 35, &FriendsRecv::processPlayerOnline, 20180221); + packet(SMSG_OPEN_WINDOW2, 0x0ae2, 7, &AttendanceRecv::processOpenWindow, 20180307); +} + +// main 20180404 +if (packetVersionMain >= 20180404) +{ + packet(SMSG_OPEN_WINDOW2, 0x0ae2, 7, &AttendanceRecv::processOpenWindow, 20180404); } // 0 -- cgit v1.2.3-70-g09d2