From d036ceb193139ada2322c0f3b16991d09301878f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 20 Apr 2016 02:28:34 +0300 Subject: Add packet CMSG_TAEKWON_RANKS 0x0225 --- src/net/eathena/packetsout.inc | 7 +++++++ src/net/eathena/skillhandler.cpp | 8 ++++++++ src/net/eathena/skillhandler.h | 2 ++ src/net/skillhandler.h | 2 ++ src/net/tmwa/skillhandler.cpp | 4 ++++ src/net/tmwa/skillhandler.h | 2 ++ 6 files changed, 25 insertions(+) diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 889179353..0c07f8966 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -277,6 +277,7 @@ packet(CMSG_SELECT_CART, 0x0980, 7, clif->pSelectCart); packet(CMSG_ALCHEMIST_RANKS, 0x0000, 0, nullptr); packet(CMSG_BLACKSMITH_RANKS, 0x0000, 0, nullptr); packet(CMSG_PK_RANKS, 0x0000, 0, nullptr); +packet(CMSG_TAEKWON_RANKS, 0x0000, 0, nullptr); packet(CMSG_BUYINGSTORE_CLOSE, 0x0000, 0, nullptr); packet(CMSG_BUYINGSTORE_CREATE, 0x0000, 0, nullptr); packet(CMSG_BUYINGSTORE_SELL, 0x0000, 0, nullptr); @@ -328,6 +329,12 @@ if (packetVersion >= 20050110) packet(CMSG_CLOSE_STORAGE, 0x0193, 2, clif->pCloseKafra); } +// 20050328 +if (packetVersion >= 20050328) +{ + packet(CMSG_TAEKWON_RANKS, 0x0225, 2, clif->pTaekwon); +} + // 20050530 if (packetVersion >= 20050530) { diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 3957527b1..3a815e5af 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -102,6 +102,14 @@ void SkillHandler::getPkRanks() const } } +void SkillHandler::getTaekwonRanks() const +{ + if (packetVersion >= 20050328) + { + createOutPacket(CMSG_TAEKWON_RANKS); + } +} + void SkillHandler::feelSaveOk(const int which) const { if (packetVersion >= 20050817) diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h index 5333ed22c..fceebbecb 100644 --- a/src/net/eathena/skillhandler.h +++ b/src/net/eathena/skillhandler.h @@ -56,6 +56,8 @@ class SkillHandler final : public Ea::SkillHandler void getPkRanks() const override final; + void getTaekwonRanks() const override final; + void feelSaveOk(const int which) const override final; void lessEffects(const bool isLess) const override final; diff --git a/src/net/skillhandler.h b/src/net/skillhandler.h index 4bc542ccb..0448957a4 100644 --- a/src/net/skillhandler.h +++ b/src/net/skillhandler.h @@ -58,6 +58,8 @@ class SkillHandler notfinal virtual void getPkRanks() const = 0; + virtual void getTaekwonRanks() const = 0; + virtual void feelSaveOk(const int which) const = 0; virtual void lessEffects(const bool isLess) const = 0; diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp index d52841b63..29bea45cc 100644 --- a/src/net/tmwa/skillhandler.cpp +++ b/src/net/tmwa/skillhandler.cpp @@ -88,6 +88,10 @@ void SkillHandler::getPkRanks() const { } +void SkillHandler::getTaekwonRanks() const +{ +} + void SkillHandler::feelSaveOk(const int which A_UNUSED) const { } diff --git a/src/net/tmwa/skillhandler.h b/src/net/tmwa/skillhandler.h index addc25091..719200e2e 100644 --- a/src/net/tmwa/skillhandler.h +++ b/src/net/tmwa/skillhandler.h @@ -56,6 +56,8 @@ class SkillHandler final : public Ea::SkillHandler void getPkRanks() const override final; + void getTaekwonRanks() const override final; + void feelSaveOk(const int which) const override final; void lessEffects(const bool isLess) const override final; -- cgit v1.2.3-70-g09d2