summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 19:47:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 19:47:56 +0300
commit248b4b33701fedf1a82aa4d09acc87d794273095 (patch)
tree60e99dfb52781779edcfd2404f326eaac81711fa /src/net
parentf4f98c7627c1978bc49d156a8b4dbc5d4170f0d8 (diff)
downloadplus-248b4b33701fedf1a82aa4d09acc87d794273095.tar.gz
plus-248b4b33701fedf1a82aa4d09acc87d794273095.tar.bz2
plus-248b4b33701fedf1a82aa4d09acc87d794273095.tar.xz
plus-248b4b33701fedf1a82aa4d09acc87d794273095.zip
eathena: add partial support for packet SMSG_BEING_SLIDE 0x01ff.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/beinghandler.cpp14
-rw-r--r--src/net/eathena/beinghandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 17 insertions, 0 deletions
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