From ad97c3b32b98564b8288152f493e9c29c25e9326 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Nov 2014 13:11:51 +0300 Subject: eathena: add map mask packet. Also change network version to 3. --- src/net/eathena/network.h | 2 +- src/net/eathena/packets.h | 2 +- src/net/eathena/playerhandler.cpp | 5 +++++ src/net/eathena/protocol.h | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/network.h b/src/net/eathena/network.h index 81e2131e0..f7caeef33 100644 --- a/src/net/eathena/network.h +++ b/src/net/eathena/network.h @@ -29,7 +29,7 @@ * Protocol version, reported to the eAthena char and mapserver who can adjust * the protocol accordingly. */ -#define CLIENT_PROTOCOL_VERSION 2 +#define CLIENT_PROTOCOL_VERSION 3 namespace EAthena { diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index f32df43d3..5e71c7304 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -279,7 +279,7 @@ int16_t packet_lengths[] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // #0x0B00 - 16, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 16, -1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 3ef653de4..7e1458e90 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -59,6 +59,7 @@ PlayerHandler::PlayerHandler() : SMSG_PVP_INFO, SMSG_PLAYER_HEAL, SMSG_PLAYER_SKILL_MESSAGE, + SMSG_MAP_MASK, 0 }; handledMessages = _messages; @@ -130,6 +131,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPlayerSkillMessage(msg); break; + case SMSG_MAP_MASK: + processMapMask(msg); + break; + default: break; } diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 72b0e4fa2..b101e273a 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -307,6 +307,7 @@ #define SMSG_ELEMENTAL_INFO 0x081d #define SMSG_UPDATE_HOST 0x0063 +#define SMSG_MAP_MASK 0x0b02 /********************************** * Packets from client to server * -- cgit v1.2.3-70-g09d2