From 414d1437641e999c95240b61c9c4af98d4fc4c17 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 17:05:51 +0300 Subject: eathena: add partial support for packet CMSG_SPIRIT_BALLS 0x01d0. --- src/net/eathena/beinghandler.cpp | 13 +++++++++++++ src/net/eathena/beinghandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 16 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index b7ea9024d..0257c7a11 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -119,6 +119,7 @@ BeingHandler::BeingHandler(const bool enableSync) : SMSG_BEING_ATTRS, SMSG_MONSTER_INFO, SMSG_CLASS_CHANGE, + CMSG_SPIRIT_BALLS, 0 }; handledMessages = _messages; @@ -323,6 +324,10 @@ void BeingHandler::handleMessage(Net::MessageIn &msg) processClassChange(msg); break; + case CMSG_SPIRIT_BALLS: + processSpiritBalls(msg); + break; + default: break; } @@ -1665,4 +1670,12 @@ void BeingHandler::processClassChange(Net::MessageIn &msg) msg.readInt32("class"); } +void BeingHandler::processSpiritBalls(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt32("being id"); + msg.readInt16("spirits amount"); +} + } // namespace EAthena diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h index b0743a2f7..b0abda649 100644 --- a/src/net/eathena/beinghandler.h +++ b/src/net/eathena/beinghandler.h @@ -126,6 +126,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler static void processMonsterInfo(Net::MessageIn &msg); static void processClassChange(Net::MessageIn &msg); + + static void processSpiritBalls(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index c092a3a21..c5332f079 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -563,6 +563,7 @@ #define CMSG_DORI_DORI 0x01e7 #define CMSG_EXPLOSION_SPIRITS 0x01ed +#define CMSG_SPIRIT_BALLS 0x01d0 #define CMSG_PVP_INFO 0x020f #define CMSG_PLAYER_AUTO_REVIVE 0x0292 #define CMSG_QUEST_ACTIVATE 0x02b6 -- cgit v1.2.3-70-g09d2