diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-06 15:08:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-06 15:08:12 +0300 |
commit | 008424242578ca993a03b911a3c737e1faa6141e (patch) | |
tree | b1f7e6c2c191ffa4b3c9922dbde3058c4847b9db /src/net/eathena/skillhandler.cpp | |
parent | e9086c7379bced3f95fe73bb0de12655470e56c9 (diff) | |
download | manaverse-008424242578ca993a03b911a3c737e1faa6141e.tar.gz manaverse-008424242578ca993a03b911a3c737e1faa6141e.tar.bz2 manaverse-008424242578ca993a03b911a3c737e1faa6141e.tar.xz manaverse-008424242578ca993a03b911a3c737e1faa6141e.zip |
Add packet CMSG_BLACKSMITH_RANKS 0x0217.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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 |