summaryrefslogtreecommitdiff
path: root/src/net/eathena/mercenaryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-19 19:33:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-19 19:33:31 +0300
commit6ea528b2eff23e9a7c833692afc080c786ed2419 (patch)
treec90f7aecb1cbeea300c3d3414286ddc12379e1f4 /src/net/eathena/mercenaryhandler.cpp
parent82d9ed1a055c7cdb7856c695104e9838f4e1718f (diff)
downloadmanaplus-6ea528b2eff23e9a7c833692afc080c786ed2419.tar.gz
manaplus-6ea528b2eff23e9a7c833692afc080c786ed2419.tar.bz2
manaplus-6ea528b2eff23e9a7c833692afc080c786ed2419.tar.xz
manaplus-6ea528b2eff23e9a7c833692afc080c786ed2419.zip
eathena: add partial support for packet SMSG_MERCENARY_UPDATE 0x02a2.
Diffstat (limited to 'src/net/eathena/mercenaryhandler.cpp')
-rw-r--r--src/net/eathena/mercenaryhandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp
index a6ca9a1ab..4bab3a499 100644
--- a/src/net/eathena/mercenaryhandler.cpp
+++ b/src/net/eathena/mercenaryhandler.cpp
@@ -39,6 +39,7 @@ MercenaryHandler::MercenaryHandler() :
{
static const uint16_t _messages[] =
{
+ SMSG_MERCENARY_UPDATE,
0
};
handledMessages = _messages;
@@ -49,9 +50,20 @@ void MercenaryHandler::handleMessage(Net::MessageIn &msg)
{
switch (msg.getId())
{
+ case SMSG_MERCENARY_UPDATE:
+ processMercenaryUpdate(msg);
+ break;
+
default:
break;
}
}
+void MercenaryHandler::processMercenaryUpdate(Net::MessageIn &msg)
+{
+ // +++ need create if need mercenary being and update stat
+ msg.readInt16("type");
+ msg.readInt32("value");
+}
+
} // namespace EAthena