summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-18 16:46:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-18 16:46:47 +0300
commitfbf357addfe7c7d367a3203be3ad78aba278bcf6 (patch)
tree0696ffc5360a791d47bd4ce5596e903223ffb775 /src/net/eathena
parentf49ff6e34d8a1715b3f669ca45db2814f0ce25d5 (diff)
downloadmv-fbf357addfe7c7d367a3203be3ad78aba278bcf6.tar.gz
mv-fbf357addfe7c7d367a3203be3ad78aba278bcf6.tar.bz2
mv-fbf357addfe7c7d367a3203be3ad78aba278bcf6.tar.xz
mv-fbf357addfe7c7d367a3203be3ad78aba278bcf6.zip
eathena: add partial support for packet SMSG_BATTLE_NOTICE_DELETE 0x08db.
Diffstat (limited to 'src/net/eathena')
-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 9672ab94e..7024f33bc 100644
--- a/src/net/eathena/battlegroundhandler.cpp
+++ b/src/net/eathena/battlegroundhandler.cpp
@@ -43,6 +43,7 @@ BattleGroundHandler::BattleGroundHandler() :
SMSG_BATTLE_PLAY,
SMSG_BATTLE_QUEUE_ACK,
SMSG_BATTLE_BEGINS,
+ SMSG_BATTLE_NOTICE_DELETE,
0
};
handledMessages = _messages;
@@ -77,6 +78,10 @@ void BattleGroundHandler::handleMessage(Net::MessageIn &msg)
processBattleBegins(msg);
break;
+ case SMSG_BATTLE_NOTICE_DELETE:
+ processBattleNoticeDelete(msg);
+ break;
+
default:
break;
}
@@ -127,4 +132,11 @@ void BattleGroundHandler::processBattleBegins(Net::MessageIn &msg)
msg.readString(24, "game name");
}
+void BattleGroundHandler::processBattleNoticeDelete(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readUInt8("type");
+ msg.readString(24, "bg name");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/battlegroundhandler.h b/src/net/eathena/battlegroundhandler.h
index 1fa9d4236..a437a1563 100644
--- a/src/net/eathena/battlegroundhandler.h
+++ b/src/net/eathena/battlegroundhandler.h
@@ -51,6 +51,8 @@ class BattleGroundHandler final : public MessageHandler,
void processBattleQueueAck(Net::MessageIn &msg);
void processBattleBegins(Net::MessageIn &msg);
+
+ void processBattleNoticeDelete(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 6adf467ef..a8246c6ce 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -231,7 +231,7 @@ int16_t packet_lengths[] =
0, 0, 0, -1, 0, 0, 0, 0, 0, 12, 10, 0, 0, 0, 0, 0,
// #0x08C0
-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 10,
- 0, 0, 10, 0, 0, -1, 6, 0, 27, 0, 0, 0, 0, 0, 0, 50,
+ 0, 0, 10, 0, 0, -1, 6, 0, 27, 0, 0, 27, 0, 0, 0, 50,
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 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 d851b1081..3040648e5 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -446,6 +446,7 @@
#define SMSG_BATTLE_PLAY 0x07fe
#define SMSG_BATTLE_QUEUE_ACK 0x08d8
#define SMSG_BATTLE_BEGINS 0x08df
+#define SMSG_BATTLE_NOTICE_DELETE 0x08db
/**********************************
* Packets from client to server *