diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-07 00:44:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-07 01:54:33 +0300 |
commit | 8720859cf97b5b0865a17d6d96c17a3481a3c2ae (patch) | |
tree | 25865af2f9adc12c8f600373705adaf42f93b2ae /src/net/eathena/beingrecv.cpp | |
parent | 24b3f27775801e4ce45e4203f87994209dd54e7b (diff) | |
download | plus-8720859cf97b5b0865a17d6d96c17a3481a3c2ae.tar.gz plus-8720859cf97b5b0865a17d6d96c17a3481a3c2ae.tar.bz2 plus-8720859cf97b5b0865a17d6d96c17a3481a3c2ae.tar.xz plus-8720859cf97b5b0865a17d6d96c17a3481a3c2ae.zip |
Add packet SMSG_BEING_HAT_EFFECTS 0x0a3b.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index 627d9d9a1..731f00f44 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -1470,6 +1470,20 @@ void BeingRecv::processBeingSpecialEffect(Net::MessageIn &msg) } } +void BeingRecv::processBeingHatEffects(Net::MessageIn &msg) +{ + // +++ add new type of permanent effects? + const int cnt = (msg.readInt16("len") - 9) / 2; + if (cnt > 0) + { + UNIMPLEMENTEDPACKET; + } + msg.readBeingId("being id"); + msg.readUInt8("enable"); + for (int f = 0; f < cnt; f ++) + msg.readInt16("hat effect"); +} + void BeingRecv::processBeingSpecialEffectNum(Net::MessageIn &msg) { UNIMPLEMENTEDPACKET; |