summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-25 23:21:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-25 23:21:24 +0300
commit263559d7e6231dc65ee503133e52c9791aac3734 (patch)
tree58df4a958c07eac611e4495750b7387a286dfbe0 /src/net
parent19d5a1ca912c89d46ea567079777d0fff1211c25 (diff)
downloadmanaplus-263559d7e6231dc65ee503133e52c9791aac3734.tar.gz
manaplus-263559d7e6231dc65ee503133e52c9791aac3734.tar.bz2
manaplus-263559d7e6231dc65ee503133e52c9791aac3734.tar.xz
manaplus-263559d7e6231dc65ee503133e52c9791aac3734.zip
eathena: add partial support for packet SMSG_SKILL_SNAP 0x08d2.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/skillhandler.cpp12
-rw-r--r--src/net/eathena/skillhandler.h2
4 files changed, 16 insertions, 1 deletions
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index b9114aabd..f9a917418 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -231,7 +231,7 @@ int16_t packet_lengths[] =
0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 10, 0, 0, 0, 0, 0,
// #0x08C0
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
//0 1 2 3 4 5 6 7 8 9 a b c d e f
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index c7a652751..375b370ea 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -85,6 +85,7 @@
#define SMSG_SKILL_FAILED 0x0110
#define SMSG_SKILL_DAMAGE 0x01de
#define SMSG_SKILL_AUTO_CAST 0x0147
+#define SMSG_SKILL_SNAP 0x08d2
#define SMSG_ITEM_USE_RESPONSE 0x00a8
#define SMSG_ITEM_VISIBLE 0x009d /**< An item is on the floor */
#define SMSG_ITEM_DROPPED 0x084b /**< An item is dropped */
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 1b61559d3..e4e6c8101 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -57,6 +57,7 @@ SkillHandler::SkillHandler() :
SMSG_PLAYER_SKILL_UP,
SMSG_PLAYER_SKILL_COOLDOWN,
SMSG_PLAYER_SKILL_COOLDOWN_LIST,
+ SMSG_SKILL_SNAP,
0
};
handledMessages = _messages;
@@ -87,6 +88,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg)
processSkillCoolDownList(msg);
break;
+ case SMSG_SKILL_SNAP:
+ processSkillSnap(msg);
+ break;
+
default:
break;
}
@@ -286,4 +291,11 @@ void SkillHandler::processSkillFailed(Net::MessageIn &msg)
NotifyManager::notify(NotifyTypes::SKILL_FAIL_MESSAGE, txt);
}
+void SkillHandler::processSkillSnap(Net::MessageIn &msg)
+{
+ msg.readInt32("being id");
+ msg.readInt16("x");
+ msg.readInt16("y");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index 1622ec98b..f18d6ac96 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -59,6 +59,8 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler
void processSkillCoolDown(Net::MessageIn &msg);
void processSkillCoolDownList(Net::MessageIn &msg);
+
+ void processSkillSnap(Net::MessageIn &msg);
};
} // namespace EAthena