diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-01-16 21:40:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-01-16 21:40:04 +0300 |
commit | 4f8a0f6e11f32b17c45cb4214fbb83e9a1c8cd1e (patch) | |
tree | 27dc645ef6b4b5fd33cdeaf72f5ba78453b1ecc4 /src/net | |
parent | 5c4c66c0873e2b21d87929ab7e3389883c4ee074 (diff) | |
download | mv-4f8a0f6e11f32b17c45cb4214fbb83e9a1c8cd1e.tar.gz mv-4f8a0f6e11f32b17c45cb4214fbb83e9a1c8cd1e.tar.bz2 mv-4f8a0f6e11f32b17c45cb4214fbb83e9a1c8cd1e.tar.xz mv-4f8a0f6e11f32b17c45cb4214fbb83e9a1c8cd1e.zip |
Add packet SMSG_ITEM_DROPPED 0x0add for zero clients.s20180116
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/itemrecv.cpp | 7 | ||||
-rw-r--r-- | src/net/eathena/network.cpp | 1 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 6 |
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); |