From c9433013925e52857a85a30a29e1265081091e14 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 19 Apr 2016 23:50:53 +0300 Subject: Add packet CMSG_PLAYER_LESS_EFFECTS 0x021d. --- src/net/eathena/packetsout.inc | 7 +++++++ src/net/eathena/skillhandler.cpp | 9 +++++++++ src/net/eathena/skillhandler.h | 2 ++ src/net/skillhandler.h | 2 ++ src/net/tmwa/skillhandler.cpp | 4 ++++ src/net/tmwa/skillhandler.h | 2 ++ 6 files changed, 26 insertions(+) (limited to 'src/net') diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 032f9f3ab..889179353 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -288,6 +288,7 @@ packet(CMSG_SEARCHSTORE_NEXT_PAGE, 0x0000, 0, nullptr); packet(CMSG_QUICK_IDENTIFY_ITEM, 0x0000, 0, nullptr); packet(CMSG_PARTY_INVITE2, 0x0000, 0, nullptr); packet(CMSG_SKILL_FEEL_SAVE_OK, 0x0000, 0, nullptr); +packet(CMSG_PLAYER_LESS_EFFECTS, 0x0000, 0, nullptr); #else // 20040726 if (packetVersion >= 20040726) @@ -308,6 +309,12 @@ if (packetVersion >= 20041108) packet(CMSG_BLACKSMITH_RANKS, 0x0217, 2, clif->pBlacksmith); } +// 20041115 +if (packetVersion >= 20041115) +{ + packet(CMSG_PLAYER_LESS_EFFECTS, 0x021d, 6, clif->pLessEffect); +} + // 20041129 if (packetVersion >= 20041129) { diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 70988efd1..3957527b1 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -112,4 +112,13 @@ void SkillHandler::feelSaveOk(const int which) const } } +void SkillHandler::lessEffects(const bool isLess) const +{ + if (packetVersion >= 20041115) + { + createOutPacket(CMSG_PLAYER_LESS_EFFECTS); + outMsg.writeInt32(isLess ? 1 : 0, "state"); + } +} + } // namespace EAthena diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h index 5ef9c77d1..5333ed22c 100644 --- a/src/net/eathena/skillhandler.h +++ b/src/net/eathena/skillhandler.h @@ -57,6 +57,8 @@ class SkillHandler final : public Ea::SkillHandler void getPkRanks() const override final; void feelSaveOk(const int which) const override final; + + void lessEffects(const bool isLess) const override final; }; } // namespace EAthena diff --git a/src/net/skillhandler.h b/src/net/skillhandler.h index 29e46a2ff..4bc542ccb 100644 --- a/src/net/skillhandler.h +++ b/src/net/skillhandler.h @@ -59,6 +59,8 @@ class SkillHandler notfinal virtual void getPkRanks() const = 0; virtual void feelSaveOk(const int which) const = 0; + + virtual void lessEffects(const bool isLess) const = 0; }; } // namespace Net diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp index 3faeeb718..d52841b63 100644 --- a/src/net/tmwa/skillhandler.cpp +++ b/src/net/tmwa/skillhandler.cpp @@ -92,4 +92,8 @@ void SkillHandler::feelSaveOk(const int which A_UNUSED) const { } +void SkillHandler::lessEffects(const bool isLess A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/skillhandler.h b/src/net/tmwa/skillhandler.h index a63633ec1..addc25091 100644 --- a/src/net/tmwa/skillhandler.h +++ b/src/net/tmwa/skillhandler.h @@ -57,6 +57,8 @@ class SkillHandler final : public Ea::SkillHandler void getPkRanks() const override final; void feelSaveOk(const int which) const override final; + + void lessEffects(const bool isLess) const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2