summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-17 22:52:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-17 22:52:12 +0300
commit9761307a9c7d360ebf7a44e2eee9a41dbd1a3921 (patch)
tree3324cc9ce3ea606809e02f192b197e6b7e62bce6
parent83aea63d85e093ad50fc87abc16e87d57b74d423 (diff)
downloadplus-9761307a9c7d360ebf7a44e2eee9a41dbd1a3921.tar.gz
plus-9761307a9c7d360ebf7a44e2eee9a41dbd1a3921.tar.bz2
plus-9761307a9c7d360ebf7a44e2eee9a41dbd1a3921.tar.xz
plus-9761307a9c7d360ebf7a44e2eee9a41dbd1a3921.zip
eathena: add partial support for packet SMSG_BATTLE_UPDATE_SCORE 0x02de.
-rw-r--r--src/net/eathena/battlegroundhandler.cpp12
-rw-r--r--src/net/eathena/battlegroundhandler.h2
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h1
4 files changed, 16 insertions, 1 deletions
diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp
index 10555f85f..fd8273dcf 100644
--- a/src/net/eathena/battlegroundhandler.cpp
+++ b/src/net/eathena/battlegroundhandler.cpp
@@ -38,6 +38,7 @@ BattleGroundHandler::BattleGroundHandler() :
static const uint16_t _messages[] =
{
SMSG_BATTLE_EMBLEM,
+ SMSG_BATTLE_UPDATE_SCORE,
0
};
handledMessages = _messages;
@@ -52,6 +53,10 @@ void BattleGroundHandler::handleMessage(Net::MessageIn &msg)
processBattleEmblem(msg);
break;
+ case SMSG_BATTLE_UPDATE_SCORE:
+ processBattleUpdateScore(msg);
+ break;
+
default:
break;
}
@@ -65,4 +70,11 @@ void BattleGroundHandler::processBattleEmblem(Net::MessageIn &msg)
msg.readInt16("camp");
}
+void BattleGroundHandler::processBattleUpdateScore(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readInt16("camp a points");
+ msg.readInt16("camp b points");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/battlegroundhandler.h b/src/net/eathena/battlegroundhandler.h
index c0d2b94c5..45f5d3e56 100644
--- a/src/net/eathena/battlegroundhandler.h
+++ b/src/net/eathena/battlegroundhandler.h
@@ -41,6 +41,8 @@ class BattleGroundHandler final : public MessageHandler,
protected:
void processBattleEmblem(Net::MessageIn &msg);
+
+ void processBattleUpdateScore(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 7f3966592..5d7f2ea11 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, 32, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 3, 0, -1, 32, 6, 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 6b02933b3..4da724142 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -422,6 +422,7 @@
#define SMSG_BATTLE_CHAT_MESSAGE 0x02dc
#define SMSG_BATTLE_EMBLEM 0x02dd
+#define SMSG_BATTLE_UPDATE_SCORE 0x02de
/**********************************
* Packets from client to server *