summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-19 23:50:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-19 23:50:53 +0300
commitc9433013925e52857a85a30a29e1265081091e14 (patch)
treeb3300a86fcc6ce06b820b390e5fd36778ce97b0e
parent0f4c817e7b234c9be9dce9ff27e98a1dd0209ad1 (diff)
downloadmv-c9433013925e52857a85a30a29e1265081091e14.tar.gz
mv-c9433013925e52857a85a30a29e1265081091e14.tar.bz2
mv-c9433013925e52857a85a30a29e1265081091e14.tar.xz
mv-c9433013925e52857a85a30a29e1265081091e14.zip
Add packet CMSG_PLAYER_LESS_EFFECTS 0x021d.
-rw-r--r--src/net/eathena/packetsout.inc7
-rw-r--r--src/net/eathena/skillhandler.cpp9
-rw-r--r--src/net/eathena/skillhandler.h2
-rw-r--r--src/net/skillhandler.h2
-rw-r--r--src/net/tmwa/skillhandler.cpp4
-rw-r--r--src/net/tmwa/skillhandler.h2
6 files changed, 26 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
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