From 248b4b33701fedf1a82aa4d09acc87d794273095 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 19:47:56 +0300 Subject: eathena: add partial support for packet SMSG_BEING_SLIDE 0x01ff. --- src/net/eathena/beinghandler.cpp | 14 ++++++++++++++ src/net/eathena/beinghandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 17 insertions(+) (limited to 'src/net') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index f5f4044a7..18897c153 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -124,6 +124,7 @@ BeingHandler::BeingHandler(const bool enableSync) : CMSG_BLADE_STOP, CMSG_COMBO_DELAY, CMSG_WEDDING_EFFECT, + SMSG_BEING_SLIDE, 0 }; handledMessages = _messages; @@ -348,6 +349,10 @@ void BeingHandler::handleMessage(Net::MessageIn &msg) processWddingEffect(msg); break; + case SMSG_BEING_SLIDE: + processBeingSlide(msg); + break; + default: break; } @@ -1730,4 +1735,13 @@ void BeingHandler::processWddingEffect(Net::MessageIn &msg) msg.readInt32("being id"); } +void BeingHandler::processBeingSlide(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt32("being id"); + msg.readInt16("x"); + msg.readInt16("y"); +} + } // namespace EAthena diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h index 384ec63b4..15710f0b3 100644 --- a/src/net/eathena/beinghandler.h +++ b/src/net/eathena/beinghandler.h @@ -136,6 +136,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler static void processComboDelay(Net::MessageIn &msg); static void processWddingEffect(Net::MessageIn &msg); + + static void processBeingSlide(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 0e284d234..0e0ce50bd 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -137,6 +137,7 @@ #define SMSG_BEING_ACTION 0x008a /**< Attack, sit, stand up, ... */ #define SMSG_BEING_ACTION2 0x02e1 #define SMSG_BEING_CHAT 0x008d /**< A being talks */ +#define SMSG_BEING_SLIDE 0x01ff #define SMSG_COLOR_MESSAGE 0x02c1 #define SMSG_FORMAT_MESSAGE 0x0291 #define SMSG_FORMAT_MESSAGE_NUMBER 0x07e2 -- cgit v1.2.3-70-g09d2