summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-20 02:28:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-20 02:28:34 +0300
commitd036ceb193139ada2322c0f3b16991d09301878f (patch)
treea0dabd17a645d36969dee4de81a5df5c021ef57c /src
parentc9433013925e52857a85a30a29e1265081091e14 (diff)
downloadmv-d036ceb193139ada2322c0f3b16991d09301878f.tar.gz
mv-d036ceb193139ada2322c0f3b16991d09301878f.tar.bz2
mv-d036ceb193139ada2322c0f3b16991d09301878f.tar.xz
mv-d036ceb193139ada2322c0f3b16991d09301878f.zip
Add packet CMSG_TAEKWON_RANKS 0x0225
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/packetsout.inc7
-rw-r--r--src/net/eathena/skillhandler.cpp8
-rw-r--r--src/net/eathena/skillhandler.h2
-rw-r--r--src/net/skillhandler.h2
-rw-r--r--src/net/tmwa/skillhandler.cpp4
-rw-r--r--src/net/tmwa/skillhandler.h2
6 files changed, 25 insertions, 0 deletions
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;