diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-06 02:13:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-06 02:13:59 +0300 |
commit | 50761110424580f88f96f0682b6007f531508aec (patch) | |
tree | 2a8e09498e207054012560ce24e711559d94af3a /src/net | |
parent | 06ff9c9d685dafdb11ec4ea121016eb8c40fdd6a (diff) | |
download | manaverse-50761110424580f88f96f0682b6007f531508aec.tar.gz manaverse-50761110424580f88f96f0682b6007f531508aec.tar.bz2 manaverse-50761110424580f88f96f0682b6007f531508aec.tar.xz manaverse-50761110424580f88f96f0682b6007f531508aec.zip |
Impliment packet CMSG_ALCHEMIST_RANKS 0x0218.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/packetsout.inc | 12 | ||||
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/skillhandler.h | 2 | ||||
-rw-r--r-- | src/net/skillhandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/skillhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/skillhandler.h | 2 |
6 files changed, 25 insertions, 2 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index ee5d35ba5..5d06b5953 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -275,12 +275,20 @@ packet(CMSG_ONLINE_LIST, 0x0b0f); packet(CMSG_SELECT_CART, 0x0980); #ifdef PACKETS_UPDATE +// 20041108 +if (packetVersion >= 20041108) +{ + packet(CMSG_ALCHEMIST_RANKS, 0x0218); +} // 20150513 if (packetVersion >= 20150513) { - packet(CMSG_SEARCHSTORE_CLICK, 0x0838); - packet(CMSG_BUYINGSTORE_CLOSE, 0x022d); + packet(CMSG_SEARCHSTORE_CLICK, 0x0838); + packet(CMSG_BUYINGSTORE_CLOSE, 0x022d); } +#else +// 0 +packet(CMSG_ALCHEMIST_RANKS, 0x0000); #endif // 20150513 diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index fb56fae4b..7cc681c6b 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -76,4 +76,9 @@ void SkillHandler::useMap(const int id, const std::string &map) const outMsg.writeString(map, 16, "map name"); } +void SkillHandler::getAlchemistRanks() const +{ + createOutPacket(CMSG_ALCHEMIST_RANKS); +} + } // namespace EAthena diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h index d6344ab9f..9e609488e 100644 --- a/src/net/eathena/skillhandler.h +++ b/src/net/eathena/skillhandler.h @@ -49,6 +49,8 @@ class SkillHandler final : public Ea::SkillHandler const std::string &text) const override final; void useMap(const int id, const std::string &map) const override final; + + void getAlchemistRanks() const override final; }; } // namespace EAthena diff --git a/src/net/skillhandler.h b/src/net/skillhandler.h index 73b977797..cd03cbf73 100644 --- a/src/net/skillhandler.h +++ b/src/net/skillhandler.h @@ -51,6 +51,8 @@ class SkillHandler notfinal const std::string &text) const = 0; virtual void useMap(const int id, const std::string &map) const = 0; + + virtual void getAlchemistRanks() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp index 87dc0e189..e0ef8d3ad 100644 --- a/src/net/tmwa/skillhandler.cpp +++ b/src/net/tmwa/skillhandler.cpp @@ -76,4 +76,8 @@ void SkillHandler::useMap(const int id, const std::string &map) const outMsg.writeString(map, 16, "map name"); } +void SkillHandler::getAlchemistRanks() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/skillhandler.h b/src/net/tmwa/skillhandler.h index 0fd7c2a13..1a6bae414 100644 --- a/src/net/tmwa/skillhandler.h +++ b/src/net/tmwa/skillhandler.h @@ -49,6 +49,8 @@ class SkillHandler final : public Ea::SkillHandler const std::string &text) const override final; void useMap(const int id, const std::string &map) const override final; + + void getAlchemistRanks() const override final; }; } // namespace TmwAthena |