summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/eathena/inventoryrecv.cpp6
-rw-r--r--src/net/eathena/inventoryrecv.h1
-rw-r--r--src/net/eathena/packetsin.inc18
3 files changed, 25 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp
index dbf7b8610..45593aba1 100644
--- a/src/net/eathena/inventoryrecv.cpp
+++ b/src/net/eathena/inventoryrecv.cpp
@@ -26,6 +26,7 @@
#include "notifymanager.h"
#include "itemcolormanager.h"
#include "itemsoundmanager.h"
+#include "settings.h"
#include "being/localplayer.h"
@@ -1506,4 +1507,9 @@ void InventoryRecv::processItemMoveFailed(Net::MessageIn &msg)
}
}
+void InventoryRecv::processOverWeightPercent(Net::MessageIn &msg)
+{
+ settings.overweightPercent = msg.readUInt32("parcent");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/inventoryrecv.h b/src/net/eathena/inventoryrecv.h
index b019643fe..31080935f 100644
--- a/src/net/eathena/inventoryrecv.h
+++ b/src/net/eathena/inventoryrecv.h
@@ -75,6 +75,7 @@ namespace EAthena
void processMergeItemResponse(Net::MessageIn &msg);
void processPlayerInventoryUse(Net::MessageIn &msg);
void processItemMoveFailed(Net::MessageIn &msg);
+ void processOverWeightPercent(Net::MessageIn &msg);
int getSlot(const int eAthenaSlot) A_WARN_UNUSED;
} // namespace InventoryRecv
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index e736a7156..f292dc276 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -1131,6 +1131,24 @@ if (packets_zero == true)
packet(SMSG_GUILD_LEAVE2, 0x0a83, 46, &GuildRecv::processGuildLeave2, 20171018);
}
+// 20171019 zero
+if (packetVersionZero >= 20171019)
+{
+ packet(SMSG_OVERWEIGHT_PERCENT, 0x0ade, 6, &InventoryRecv::processOverWeightPercent, 20171019);
+}
+
+// 20171025 re
+if (packetVersionRe >= 20171025)
+{
+ packet(SMSG_OVERWEIGHT_PERCENT, 0x0ade, 6, &InventoryRecv::processOverWeightPercent, 20171025);
+}
+
+// 20171108 main
+if (packetVersionMain >= 20171108)
+{
+ packet(SMSG_OVERWEIGHT_PERCENT, 0x0ade, 6, &InventoryRecv::processOverWeightPercent, 20171108);
+}
+
// 20171207
if (packetVersion >= 20171207)
{