diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-11 13:33:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-11 13:33:04 +0300 |
commit | bdc996059d8dac1bcd063890dcf80b3ce6932c50 (patch) | |
tree | c95f500edd64e18537c52a3a3eb9a27c1a025f86 /src/net | |
parent | f4b973c1e75e43d75ab9d6eb4f629eb10d15a520 (diff) | |
download | manaplus-bdc996059d8dac1bcd063890dcf80b3ce6932c50.tar.gz manaplus-bdc996059d8dac1bcd063890dcf80b3ce6932c50.tar.bz2 manaplus-bdc996059d8dac1bcd063890dcf80b3ce6932c50.tar.xz manaplus-bdc996059d8dac1bcd063890dcf80b3ce6932c50.zip |
eathena: add partial support for packet SMSG_PLAYER_NOTIFY_MAPINFO 0x0189.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 11 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 85c3cfd93..7f5944f20 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -63,6 +63,7 @@ PlayerHandler::PlayerHandler() : SMSG_MAP_MASK, SMSG_MAP_MUSIC, SMSG_ONLINE_LIST, + SMSG_PLAYER_NOTIFY_MAPINFO, 0 }; handledMessages = _messages; @@ -146,6 +147,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processOnlineList(msg); break; + case SMSG_PLAYER_NOTIFY_MAPINFO: + processNotifyMapInfo(msg); + break; + default: break; } @@ -514,4 +519,10 @@ void PlayerHandler::setStat(const int type, Ea::PlayerHandler::setStat(type, base, mod, notify); } +void PlayerHandler::processNotifyMapInfo(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt16("type"); +} + } // namespace EAthena diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 9c0f34564..6f4ad9592 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -90,6 +90,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler static void processPlayerSkillMessage(Net::MessageIn &msg); static void processWalkResponse(Net::MessageIn &msg); + + static void processNotifyMapInfo(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 5436d57ba..3a8ab7b1e 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -98,6 +98,7 @@ #define SMSG_PLAYER_SKILL_COOLDOWN 0x043d #define SMSG_PLAYER_SKILL_COOLDOWN_LIST 0x0985 #define SMSG_PLAYER_SKILL_MESSAGE 0x0215 +#define SMSG_PLAYER_NOTIFY_MAPINFO 0x0189 #define SMSG_SKILL_FAILED 0x0110 #define SMSG_SKILL_DAMAGE 0x01de #define SMSG_SKILL_AUTO_CAST 0x0147 |