summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/packetsout.inc7
-rw-r--r--src/net/eathena/skillhandler.cpp9
-rw-r--r--src/net/eathena/skillhandler.h2
3 files changed, 18 insertions, 0 deletions
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