summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/packetsout.inc2
-rw-r--r--src/net/eathena/skillhandler.cpp14
-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, 1 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index c99561406..17bb98078 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -279,6 +279,7 @@ packet(CMSG_SELECT_CART, 0x0980);
if (packetVersion >= 20041108)
{
packet(CMSG_ALCHEMIST_RANKS, 0x0218);
+ packet(CMSG_BLACKSMITH_RANKS, 0x0217);
}
// 20150513
if (packetVersion >= 20150513)
@@ -289,6 +290,7 @@ if (packetVersion >= 20150513)
#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 7cc681c6b..f6e1a52b0 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -28,6 +28,7 @@
#include "debug.h"
extern Net::SkillHandler *skillHandler;
+extern int packetVersion;
namespace EAthena
{
@@ -78,7 +79,18 @@ void SkillHandler::useMap(const int id, const std::string &map) const
void SkillHandler::getAlchemistRanks() const
{
- createOutPacket(CMSG_ALCHEMIST_RANKS);
+ if (packetVersion >= 20041108)
+ {
+ createOutPacket(CMSG_ALCHEMIST_RANKS);
+ }
+}
+
+void SkillHandler::getBlacksmithRanks() const
+{
+ if (packetVersion >= 20041108)
+ {
+ createOutPacket(CMSG_BLACKSMITH_RANKS);
+ }
}
} // namespace EAthena
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index 9e609488e..09c863dae 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -51,6 +51,8 @@ class SkillHandler final : public Ea::SkillHandler
void useMap(const int id, const std::string &map) const override final;
void getAlchemistRanks() const override final;
+
+ void getBlacksmithRanks() const override final;
};
} // namespace EAthena
diff --git a/src/net/skillhandler.h b/src/net/skillhandler.h
index cd03cbf73..9d076abb1 100644
--- a/src/net/skillhandler.h
+++ b/src/net/skillhandler.h
@@ -53,6 +53,8 @@ class SkillHandler notfinal
virtual void useMap(const int id, const std::string &map) const = 0;
virtual void getAlchemistRanks() const = 0;
+
+ virtual void getBlacksmithRanks() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp
index e0ef8d3ad..056f4a5b8 100644
--- a/src/net/tmwa/skillhandler.cpp
+++ b/src/net/tmwa/skillhandler.cpp
@@ -80,4 +80,8 @@ void SkillHandler::getAlchemistRanks() const
{
}
+void SkillHandler::getBlacksmithRanks() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/skillhandler.h b/src/net/tmwa/skillhandler.h
index 1a6bae414..94c9878e4 100644
--- a/src/net/tmwa/skillhandler.h
+++ b/src/net/tmwa/skillhandler.h
@@ -51,6 +51,8 @@ class SkillHandler final : public Ea::SkillHandler
void useMap(const int id, const std::string &map) const override final;
void getAlchemistRanks() const override final;
+
+ void getBlacksmithRanks() const override final;
};
} // namespace TmwAthena