From 9e01119b7fad64dbf8aa4017443aa077f1be308d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Oct 2014 15:50:29 +0300 Subject: eathena: add partial support for packet SMSG_ELEMENTAL_UPDATE_STATUS 0x081e. --- src/net/eathena/elementalhandler.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/net/eathena/elementalhandler.cpp') diff --git a/src/net/eathena/elementalhandler.cpp b/src/net/eathena/elementalhandler.cpp index 9e4f77c0c..dc21746cd 100644 --- a/src/net/eathena/elementalhandler.cpp +++ b/src/net/eathena/elementalhandler.cpp @@ -20,6 +20,8 @@ #include "net/eathena/elementalhandler.h" +#include "net/eathena/protocol.h" + #include "debug.h" extern Net::ElementalHandler *elementalHandler; @@ -32,6 +34,7 @@ ElementalHandler::ElementalHandler() : { static const uint16_t _messages[] = { + SMSG_ELEMENTAL_UPDATE_STATUS, 0 }; handledMessages = _messages; @@ -42,9 +45,19 @@ void ElementalHandler::handleMessage(Net::MessageIn &msg) { switch (msg.getId()) { + case SMSG_ELEMENTAL_UPDATE_STATUS: + processElementalUpdateStatus(msg); + break; + default: break; } } +void ElementalHandler::processElementalUpdateStatus(Net::MessageIn &msg) +{ + msg.readInt16("type"); + msg.readInt32("value"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2