diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-28 13:11:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-28 13:11:51 +0300 |
commit | ad97c3b32b98564b8288152f493e9c29c25e9326 (patch) | |
tree | 84a48b4a7120a4268444a421e63ca37cd32bf397 /src/net/eathena | |
parent | 5207555e9c1ffca77dca0f1544830838b26a0c7e (diff) | |
download | mv-ad97c3b32b98564b8288152f493e9c29c25e9326.tar.gz mv-ad97c3b32b98564b8288152f493e9c29c25e9326.tar.bz2 mv-ad97c3b32b98564b8288152f493e9c29c25e9326.tar.xz mv-ad97c3b32b98564b8288152f493e9c29c25e9326.zip |
eathena: add map mask packet.
Also change network version to 3.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/network.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 8 insertions, 2 deletions
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 * |