summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-10 22:48:54 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-10 22:48:54 +0300
commit3e33644761fb296b7efc122c757342ff0da17886 (patch)
tree2a5269de722142390b183f663f4edddf467c0fb4
parent0b47807d75fe6c1c95d7b5e44272c55672ef6cfb (diff)
downloadmanaverse-3e33644761fb296b7efc122c757342ff0da17886.tar.gz
manaverse-3e33644761fb296b7efc122c757342ff0da17886.tar.bz2
manaverse-3e33644761fb296b7efc122c757342ff0da17886.tar.xz
manaverse-3e33644761fb296b7efc122c757342ff0da17886.zip
eathena: add partial support for packet SMSG_SKILL_WARP_POINT 0x011c.
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/skillhandler.cpp15
-rw-r--r--src/net/eathena/skillhandler.h2
3 files changed, 18 insertions, 0 deletions
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 1993714f4..b28e561f7 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -99,6 +99,7 @@
#define SMSG_SKILL_DAMAGE 0x01de
#define SMSG_SKILL_AUTO_CAST 0x0147
#define SMSG_SKILL_SNAP 0x08d2
+#define SMSG_SKILL_WARP_POINT 0x011c
#define SMSG_ITEM_USE_RESPONSE 0x00a8
#define SMSG_ITEM_VISIBLE 0x009d /**< An item is on the floor */
#define SMSG_GRAFFITI_VISIBLE 0x01c9
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 7bddc239d..7ccc5c736 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -61,6 +61,7 @@ SkillHandler::SkillHandler() :
SMSG_PLAYER_ADD_SKILL,
SMSG_PLAYER_DELETE_SKILL,
SMSG_PLAYER_UPDATE_SKILL,
+ SMSG_SKILL_WARP_POINT,
0
};
handledMessages = _messages;
@@ -107,6 +108,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg)
processSkillDelete(msg);
break;
+ case SMSG_SKILL_WARP_POINT:
+ processSkillWarpPoint(msg);
+ break;
+
default:
break;
}
@@ -372,4 +377,14 @@ void SkillHandler::processSkillSnap(Net::MessageIn &msg)
msg.readInt16("y");
}
+void SkillHandler::processSkillWarpPoint(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readInt16("skill id");
+ msg.readString(16, "map name 1");
+ msg.readString(16, "map name 2");
+ msg.readString(16, "map name 3");
+ msg.readString(16, "map name 4");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index 4c6394348..265548a26 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -67,6 +67,8 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler
static void processSkillUpdate(Net::MessageIn &msg);
static void processSkillDelete(Net::MessageIn &msg);
+
+ static void processSkillWarpPoint(Net::MessageIn &msg);
};
} // namespace EAthena