diff options
author | Asheraf <acheraf1998@gmail.com> | 2017-12-23 01:32:35 +0000 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2017-12-23 02:37:10 +0000 |
commit | fce05b62b79221fbed2f64d8d32d6f97cee8b00f (patch) | |
tree | 233ef693f9400a632f0bc434d981b1a0a721fbc6 /src/map/clif.c | |
parent | 99c34eb5637fc48eba2998e304697b96ad6e89bf (diff) | |
download | hercules-fce05b62b79221fbed2f64d8d32d6f97cee8b00f.tar.gz hercules-fce05b62b79221fbed2f64d8d32d6f97cee8b00f.tar.bz2 hercules-fce05b62b79221fbed2f64d8d32d6f97cee8b00f.tar.xz hercules-fce05b62b79221fbed2f64d8d32d6f97cee8b00f.zip |
Add support for new drop packet 0xadd for zero clients
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 7edc1ec5a..6629eb500 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); } |