diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-17 22:46:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-17 22:46:08 +0300 |
commit | 83aea63d85e093ad50fc87abc16e87d57b74d423 (patch) | |
tree | 58e4373e0acbb6ba200c3cd9101eadb1c90671df /src/net/eathena | |
parent | b85ff796a484137998fa2c87d5e10f9dcb2c006f (diff) | |
download | plus-83aea63d85e093ad50fc87abc16e87d57b74d423.tar.gz plus-83aea63d85e093ad50fc87abc16e87d57b74d423.tar.bz2 plus-83aea63d85e093ad50fc87abc16e87d57b74d423.tar.xz plus-83aea63d85e093ad50fc87abc16e87d57b74d423.zip |
eathena: add partial support for packet SMSG_BATTLE_EMBLEM 0x02dd.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/battlegroundhandler.cpp | 15 | ||||
-rw-r--r-- | src/net/eathena/battlegroundhandler.h | 3 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 20 insertions, 1 deletions
diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp index 9aa535c23..10555f85f 100644 --- a/src/net/eathena/battlegroundhandler.cpp +++ b/src/net/eathena/battlegroundhandler.cpp @@ -20,6 +20,8 @@ #include "net/eathena/battlegroundhandler.h" +#include "logger.h" + #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" @@ -35,6 +37,7 @@ BattleGroundHandler::BattleGroundHandler() : { static const uint16_t _messages[] = { + SMSG_BATTLE_EMBLEM, 0 }; handledMessages = _messages; @@ -45,9 +48,21 @@ void BattleGroundHandler::handleMessage(Net::MessageIn &msg) { switch (msg.getId()) { + case SMSG_BATTLE_EMBLEM: + processBattleEmblem(msg); + break; + default: break; } } +void BattleGroundHandler::processBattleEmblem(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("account id"); + msg.readString(24, "name"); + msg.readInt16("camp"); +} + } // namespace EAthena diff --git a/src/net/eathena/battlegroundhandler.h b/src/net/eathena/battlegroundhandler.h index 4b764ffa3..c0d2b94c5 100644 --- a/src/net/eathena/battlegroundhandler.h +++ b/src/net/eathena/battlegroundhandler.h @@ -38,6 +38,9 @@ class BattleGroundHandler final : public MessageHandler, A_DELETE_COPY(BattleGroundHandler) void handleMessage(Net::MessageIn &msg) override final; + + protected: + void processBattleEmblem(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 3a1a4729f..7f3966592 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -99,7 +99,7 @@ int16_t packet_lengths[] = 0, -1, -1, 107, 6, -1, 0, 7, 22, 191, 0, 8, 0, 0, 0, 0, // #0x02C0 0, -1, 0, 0, 0, 30, 30, 0, 0, 3, 0, 65, 4, 71, 10, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 3, 0, -1, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 3, 0, -1, 32, 0, 0, 0, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0 1 2 3 4 5 6 7 8 9 a b c d e f diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 578017b52..6b02933b3 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -421,6 +421,7 @@ #define SMSG_INSTANCE_DELETE 0x02ce #define SMSG_BATTLE_CHAT_MESSAGE 0x02dc +#define SMSG_BATTLE_EMBLEM 0x02dd /********************************** * Packets from client to server * |