summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/eathena/itemrecv.cpp7
-rw-r--r--src/net/eathena/network.cpp1
-rw-r--r--src/net/eathena/packetsin.inc6
3 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/itemrecv.cpp b/src/net/eathena/itemrecv.cpp
index 6fbabb675..96c4245c8 100644
--- a/src/net/eathena/itemrecv.cpp
+++ b/src/net/eathena/itemrecv.cpp
@@ -32,6 +32,8 @@
#include "debug.h"
+extern bool packets_zero;
+
namespace EAthena
{
@@ -49,6 +51,11 @@ void ItemRecv::processItemDropped(Net::MessageIn &msg)
const int subX = CAST_S32(msg.readInt8("subx"));
const int subY = CAST_S32(msg.readInt8("suby"));
const int amount = msg.readInt16("count");
+ if (packets_zero)
+ {
+ msg.readUInt8("show drop effect");
+ msg.readInt16("show effect mode");
+ }
if (actorManager != nullptr)
{
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp
index 89dd9b702..a3236af4a 100644
--- a/src/net/eathena/network.cpp
+++ b/src/net/eathena/network.cpp
@@ -89,6 +89,7 @@
extern int packetVersion;
extern int serverVersion;
extern int evolPacketOffset;
+extern bool packets_zero;
namespace EAthena
{
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index c51d4b975..ad6c63b6a 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -981,6 +981,12 @@ if (packetVersion >= 20170502)
packet(SMSG_PLAYER_STAT_UPDATE_7, 0x0acb, 12, &PlayerRecv::processPlayerStatUpdate7, 20170830);
packet(SMSG_PLAYER_GET_EXP2, 0x0acc, 18, &PlayerRecv::processPlayerGetExp2, 20170830);
+// zero 20171018
+if (packets_zero == true)
+{
+ packet(SMSG_ITEM_DROPPED, 0x0add, 22, &ItemRecv::processItemDropped, 20171018);
+}
+
// 0
// evol always packets
packet(SMSG_SERVER_VERSION_RESPONSE, 0x7531, -1, &LoginRecv::processServerVersion, 0);