summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-01-14 15:22:13 +0100
committerGitHub <noreply@github.com>2018-01-14 15:22:13 +0100
commitadaebd02567d3034f88acda3a99c56358e1adc13 (patch)
tree2e379dc9a740a5c453aa845fc9387e95f1d10747 /src/map/clif.c
parentbe6b748363717519019cd606d2013868ae6d9378 (diff)
parent6612f0bb52d11c2a097f80174cbbb2e98e2ff4aa (diff)
downloadhercules-adaebd02567d3034f88acda3a99c56358e1adc13.tar.gz
hercules-adaebd02567d3034f88acda3a99c56358e1adc13.tar.bz2
hercules-adaebd02567d3034f88acda3a99c56358e1adc13.tar.xz
hercules-adaebd02567d3034f88acda3a99c56358e1adc13.zip
Merge pull request #1939 from Asheraf/zero_drop_packet
Add support for new drop packet 0xadd for zero clients
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 3d125571d..c79a4a1c6 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -796,7 +796,15 @@ void clif_dropflooritem(struct flooritem_data* fitem) {
p.subX = fitem->subx;
p.subY = fitem->suby;
p.count = fitem->item_data.amount;
-
+#ifdef PACKETVER_ZERO
+ if (fitem->showdropeffect) {
+ p.showdropeffect = itemdb_showdropeffect(fitem->item_data.nameid);
+ p.dropeffectmode = itemdb_dropeffectmode(fitem->item_data.nameid);
+ } else {
+ p.showdropeffect = 0;
+ p.dropeffectmode = 0;
+ }
+#endif
clif->send(&p, sizeof(p), &fitem->bl, AREA);
}