summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-06 15:31:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-06 15:31:20 +0300
commit382598c07ffb3c64998a8e42c6a245711e86a419 (patch)
tree385a835bf3f5d1fc6e6a77814892d536c1fa7624 /src
parent008424242578ca993a03b911a3c737e1faa6141e (diff)
downloadplus-382598c07ffb3c64998a8e42c6a245711e86a419.tar.gz
plus-382598c07ffb3c64998a8e42c6a245711e86a419.tar.bz2
plus-382598c07ffb3c64998a8e42c6a245711e86a419.tar.xz
plus-382598c07ffb3c64998a8e42c6a245711e86a419.zip
Impliment packet CMSG_PK_RANKS 0x0237.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/packetsout.inc16
-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, 29 insertions, 5 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index 17bb98078..ef23579a5 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -274,23 +274,29 @@ packet(CMSG_ONLINE_LIST, 0x0b0f);
// 20150805
packet(CMSG_SELECT_CART, 0x0980);
-#ifdef PACKETS_UPDATE
+#ifndef PACKETS_UPDATE
+// 0
+packet(CMSG_ALCHEMIST_RANKS, 0x0000);
+packet(CMSG_BLACKSMITH_RANKS, 0x0000);
+packet(CMSG_PK_RANKS, 0x0000);
+#else
// 20041108
if (packetVersion >= 20041108)
{
packet(CMSG_ALCHEMIST_RANKS, 0x0218);
packet(CMSG_BLACKSMITH_RANKS, 0x0217);
}
+// 20050530
+if (packetVersion >= 20050530)
+{
+ packet(CMSG_PK_RANKS, 0x0237);
+}
// 20150513
if (packetVersion >= 20150513)
{
packet(CMSG_SEARCHSTORE_CLICK, 0x0838);
packet(CMSG_BUYINGSTORE_CLOSE, 0x022d);
}
-#else
-// 0
-packet(CMSG_ALCHEMIST_RANKS, 0x0000);
-packet(CMSG_BLACKSMITH_RANKS, 0x0000);
#endif
// 20150513
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index f6e1a52b0..5cc6317a2 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -93,4 +93,12 @@ void SkillHandler::getBlacksmithRanks() const
}
}
+void SkillHandler::getPkRanks() const
+{
+ if (packetVersion >= 20050530)
+ {
+ createOutPacket(CMSG_PK_RANKS);
+ }
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index 09c863dae..77fc6dadb 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -53,6 +53,8 @@ class SkillHandler final : public Ea::SkillHandler
void getAlchemistRanks() const override final;
void getBlacksmithRanks() const override final;
+
+ void getPkRanks() const override final;
};
} // namespace EAthena
diff --git a/src/net/skillhandler.h b/src/net/skillhandler.h
index 9d076abb1..b8acb7ccb 100644
--- a/src/net/skillhandler.h
+++ b/src/net/skillhandler.h
@@ -55,6 +55,8 @@ class SkillHandler notfinal
virtual void getAlchemistRanks() const = 0;
virtual void getBlacksmithRanks() const = 0;
+
+ virtual void getPkRanks() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp
index 056f4a5b8..074961437 100644
--- a/src/net/tmwa/skillhandler.cpp
+++ b/src/net/tmwa/skillhandler.cpp
@@ -84,4 +84,8 @@ void SkillHandler::getBlacksmithRanks() const
{
}
+void SkillHandler::getPkRanks() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/skillhandler.h b/src/net/tmwa/skillhandler.h
index 94c9878e4..ade623df2 100644
--- a/src/net/tmwa/skillhandler.h
+++ b/src/net/tmwa/skillhandler.h
@@ -53,6 +53,8 @@ class SkillHandler final : public Ea::SkillHandler
void getAlchemistRanks() const override final;
void getBlacksmithRanks() const override final;
+
+ void getPkRanks() const override final;
};
} // namespace TmwAthena