From 8b22861c92f1cec3af31b8b9e97b16498b2d86d0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 15 Oct 2015 20:34:07 +0300 Subject: Add packet SMSG_MAP_SET_TILES_TYPE 0x0b1b. --- src/net/eathena/maprecv.cpp | 11 +++++++++++ src/net/eathena/maprecv.h | 1 + src/net/eathena/network.h | 2 +- src/net/eathena/packetsin.inc | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/net/eathena/maprecv.cpp b/src/net/eathena/maprecv.cpp index 03c660c4c..06a039306 100644 --- a/src/net/eathena/maprecv.cpp +++ b/src/net/eathena/maprecv.cpp @@ -57,4 +57,15 @@ void MapRecv::processInstanceDelete(Net::MessageIn &msg) msg.readInt32("unused"); } +void MapRecv::processSetTilesType(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt16("x1"); + msg.readInt16("y1"); + msg.readInt16("x2"); + msg.readInt16("y2"); + msg.readInt32("mask"); + msg.readString(16, "map name"); +} + } // namespace EAthena diff --git a/src/net/eathena/maprecv.h b/src/net/eathena/maprecv.h index 8a566a218..3bb2cce05 100644 --- a/src/net/eathena/maprecv.h +++ b/src/net/eathena/maprecv.h @@ -34,6 +34,7 @@ namespace EAthena void processInstanceCreate(Net::MessageIn &msg); void processInstanceInfo(Net::MessageIn &msg); void processInstanceDelete(Net::MessageIn &msg); + void processSetTilesType(Net::MessageIn &msg); } // namespace MapRecv } // namespace EAthena diff --git a/src/net/eathena/network.h b/src/net/eathena/network.h index b2b2f3532..006ad4a6e 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 12 +#define CLIENT_PROTOCOL_VERSION 14 namespace EAthena { diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index c2f786d22..a0e611afc 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -24,6 +24,7 @@ packet(SMSG_ADMIN_ACCOUNT_STATS, 0x0214, 42, &AdminRecv::processAccou packet(SMSG_ADMIN_GET_LOGIN_ACK, 0x01e0, 30, &AdminRecv::processAdminGetLoginAck); packet(SMSG_ADMIN_KICK_ACK, 0x00cd, 6, &Ea::AdminRecv::processKickAck); packet(SMSG_ADMIN_SET_TILE_TYPE, 0x0192, 24, &AdminRecv::processSetTileType); +packet(SMSG_MAP_SET_TILES_TYPE, 0x0b1b, 30, &MapRecv::processSetTilesType); packet(SMSG_ALCHEMIST_RANKS_LIST, 0x021a, 282, &BeingRecv::processAlchemistRanksList); packet(SMSG_AUCTION_CLOSE, 0x025d, 4, &AuctionRecv::processAuctionClose); packet(SMSG_AUCTION_MESSAGE, 0x0250, 3, &AuctionRecv::processAuctionMessage); -- cgit v1.2.3-70-g09d2