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/eathena | |
parent | 06ff9c9d685dafdb11ec4ea121016eb8c40fdd6a (diff) | |
download | plus-50761110424580f88f96f0682b6007f531508aec.tar.gz plus-50761110424580f88f96f0682b6007f531508aec.tar.bz2 plus-50761110424580f88f96f0682b6007f531508aec.tar.xz plus-50761110424580f88f96f0682b6007f531508aec.zip |
Impliment packet CMSG_ALCHEMIST_RANKS 0x0218.
Diffstat (limited to 'src/net/eathena')
-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 |
3 files changed, 17 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 |