summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-19 22:47:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-19 23:39:53 +0300
commit0f4c817e7b234c9be9dce9ff27e98a1dd0209ad1 (patch)
treee8b733e6ea9b780c67433ab9e1fd0e9f787e423f
parent881a0789997f64c6e3da0525ddca012de72b7201 (diff)
downloadmanaverse-0f4c817e7b234c9be9dce9ff27e98a1dd0209ad1.tar.gz
manaverse-0f4c817e7b234c9be9dce9ff27e98a1dd0209ad1.tar.bz2
manaverse-0f4c817e7b234c9be9dce9ff27e98a1dd0209ad1.tar.xz
manaverse-0f4c817e7b234c9be9dce9ff27e98a1dd0209ad1.zip
Add packet CMSG_SKILL_FEEL_SAVE_OK 0x0254
-rw-r--r--src/net/eathena/packetsout.inc7
-rw-r--r--src/net/eathena/skillhandler.cpp11
-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, 28 insertions, 0 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index ceae04c94..032f9f3ab 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -287,6 +287,7 @@ packet(CMSG_BUYINGSTORE_OPEN, 0x0000, 0, nullptr);
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);
#else
// 20040726
if (packetVersion >= 20040726)
@@ -326,6 +327,12 @@ if (packetVersion >= 20050530)
packet(CMSG_PK_RANKS, 0x0237, 2, clif->pRankingPk);
}
+// 20050817
+if (packetVersion >= 20050817)
+{
+ packet(CMSG_SKILL_FEEL_SAVE_OK, 0x0254, 3, clif->pFeelSaveOk);
+}
+
// 20090603
if (packetVersion >= 20090603)
{
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 5cc6317a2..70988efd1 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -22,6 +22,7 @@
#include "net/eathena/skillhandler.h"
+#include "net/eathena/menu.h"
#include "net/eathena/messageout.h"
#include "net/eathena/protocolout.h"
@@ -101,4 +102,14 @@ void SkillHandler::getPkRanks() const
}
}
+void SkillHandler::feelSaveOk(const int which) const
+{
+ if (packetVersion >= 20050817)
+ {
+ createOutPacket(CMSG_SKILL_FEEL_SAVE_OK);
+ outMsg.writeInt8(CAST_S8(which), "which");
+ menu = MenuType::Unknown;
+ }
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index 77fc6dadb..5ef9c77d1 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -55,6 +55,8 @@ class SkillHandler final : public Ea::SkillHandler
void getBlacksmithRanks() const override final;
void getPkRanks() const override final;
+
+ void feelSaveOk(const int which) const override final;
};
} // namespace EAthena
diff --git a/src/net/skillhandler.h b/src/net/skillhandler.h
index b8acb7ccb..29e46a2ff 100644
--- a/src/net/skillhandler.h
+++ b/src/net/skillhandler.h
@@ -57,6 +57,8 @@ class SkillHandler notfinal
virtual void getBlacksmithRanks() const = 0;
virtual void getPkRanks() const = 0;
+
+ virtual void feelSaveOk(const int which) const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp
index 074961437..3faeeb718 100644
--- a/src/net/tmwa/skillhandler.cpp
+++ b/src/net/tmwa/skillhandler.cpp
@@ -88,4 +88,8 @@ void SkillHandler::getPkRanks() const
{
}
+void SkillHandler::feelSaveOk(const int which A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/skillhandler.h b/src/net/tmwa/skillhandler.h
index ade623df2..a63633ec1 100644
--- a/src/net/tmwa/skillhandler.h
+++ b/src/net/tmwa/skillhandler.h
@@ -55,6 +55,8 @@ class SkillHandler final : public Ea::SkillHandler
void getBlacksmithRanks() const override final;
void getPkRanks() const override final;
+
+ void feelSaveOk(const int which) const override final;
};
} // namespace TmwAthena