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/map.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/map.c')
-rw-r--r-- | src/map/map.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index 5a647625f..306f3a99d 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1694,8 +1694,9 @@ bool map_closest_freecell(int16 m, const struct block_list *bl, int16 *x, int16 * @m, @x, @y mapid,x,y * @first_charid, @second_charid, @third_charid, looting priority * @flag: &1 MVP item. &2 do stacking check. + * @showdropeffect: show effect when the item is dropped. *------------------------------------------*/ -int map_addflooritem(const struct block_list *bl, struct item *item_data, int amount, int16 m, int16 x, int16 y, int first_charid, int second_charid, int third_charid, int flags) +int map_addflooritem(const struct block_list *bl, struct item *item_data, int amount, int16 m, int16 x, int16 y, int first_charid, int second_charid, int third_charid, int flags, bool showdropeffect) { int r; struct flooritem_data *fitem=NULL; @@ -1714,6 +1715,7 @@ int map_addflooritem(const struct block_list *bl, struct item *item_data, int am fitem->bl.x = x; fitem->bl.y = y; fitem->bl.id = map->get_new_object_id(); + fitem->showdropeffect = showdropeffect; if(fitem->bl.id==0){ ers_free(map->flooritem_ers, fitem); return 0; |