summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 17:05:51 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 17:05:51 +0300
commit414d1437641e999c95240b61c9c4af98d4fc4c17 (patch)
tree70d6799c1fb106bb7cc8755a41704d51f238ddd7 /src/net/eathena
parent1438f4a6e9e5498d2fce8e8aae9bf30e6e6a4a5c (diff)
downloadplus-414d1437641e999c95240b61c9c4af98d4fc4c17.tar.gz
plus-414d1437641e999c95240b61c9c4af98d4fc4c17.tar.bz2
plus-414d1437641e999c95240b61c9c4af98d4fc4c17.tar.xz
plus-414d1437641e999c95240b61c9c4af98d4fc4c17.zip
eathena: add partial support for packet CMSG_SPIRIT_BALLS 0x01d0.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beinghandler.cpp13
-rw-r--r--src/net/eathena/beinghandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 16 insertions, 0 deletions
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