summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-18 00:07:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-18 00:07:02 +0300
commitb1fae7bfe9a48c8a25f8b7d048256a5ab0de4c3f (patch)
treef7052c942f2757412cd4692859194a2448279218 /src
parent823aa3ec75e3d7388bafffa5dd7d1fb36a54e7ce (diff)
downloadplus-b1fae7bfe9a48c8a25f8b7d048256a5ab0de4c3f.tar.gz
plus-b1fae7bfe9a48c8a25f8b7d048256a5ab0de4c3f.tar.bz2
plus-b1fae7bfe9a48c8a25f8b7d048256a5ab0de4c3f.tar.xz
plus-b1fae7bfe9a48c8a25f8b7d048256a5ab0de4c3f.zip
eathena: add partial support for packet SMSG_SKILL_ITEM_LIST_WINDOW 0x07e3.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/skillhandler.cpp13
-rw-r--r--src/net/eathena/skillhandler.h2
4 files changed, 17 insertions, 1 deletions
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 1c4921d16..29b0e02c1 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -210,7 +210,7 @@ int16_t packet_lengths[] =
// #0x07C0
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 8, 268, 0, 0, 0, 0, 0, 0,
- 0, 15, 8, 0, 6, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 15, 8, 6, 6, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 8, 25, 10, 0, 0, 0,
//0 1 2 3 4 5 6 7 8 9 a b c d e f
//0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 08235bbfc..b482c246b 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -348,6 +348,7 @@
#define SMSG_SKILL_NO_DAMAGE 0x011a
#define SMSG_SKILL_GROUND_NO_DAMAGE 0x0117
#define SMSG_SKILL_ENTRY 0x09ca
+#define SMSG_SKILL_ITEM_LIST_WINDOW 0x07e3
#define SMSG_PVP_MAP_MODE 0x0199
#define SMSG_PVP_SET 0x019a
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 762c60816..374952014 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -70,6 +70,7 @@ SkillHandler::SkillHandler() :
SMSG_SKILL_ARROW_CREATE_LIST,
SMSG_PLAYER_SKILL_AUTO_SPELLS,
SMSG_SKILL_DEVOTION_EFFECT,
+ SMSG_SKILL_ITEM_LIST_WINDOW,
0
};
handledMessages = _messages;
@@ -148,6 +149,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg)
processSkillDevotionEffect(msg);
break;
+ case SMSG_SKILL_ITEM_LIST_WINDOW:
+ processSkillItemListWindow(msg);
+ break;
+
default:
break;
}
@@ -486,4 +491,12 @@ void SkillHandler::processSkillDevotionEffect(Net::MessageIn &msg)
msg.readInt16("range");
}
+void SkillHandler::processSkillItemListWindow(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+
+ msg.readInt32("skill level");
+ msg.readInt32("unused");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index aeb41a0d2..2cfb4b89f 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -83,6 +83,8 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler
static void processSkillAutoSpells(Net::MessageIn &msg);
static void processSkillDevotionEffect(Net::MessageIn &msg);
+
+ static void processSkillItemListWindow(Net::MessageIn &msg);
};
} // namespace EAthena