diff options
author | Asheraf <acheraf1998@gmail.com> | 2018-04-18 05:53:48 +0100 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-04-18 06:29:10 +0100 |
commit | 4686ff6cfcc579f6a1f1700407bbf63318edd2c9 (patch) | |
tree | fe314bcc0c04ce8d77b929669946e85e7fcf3bc6 | |
parent | 7b097da8b433ea3b768b6c306c12801f7ddef0a5 (diff) | |
download | hercules-4686ff6cfcc579f6a1f1700407bbf63318edd2c9.tar.gz hercules-4686ff6cfcc579f6a1f1700407bbf63318edd2c9.tar.bz2 hercules-4686ff6cfcc579f6a1f1700407bbf63318edd2c9.tar.xz hercules-4686ff6cfcc579f6a1f1700407bbf63318edd2c9.zip |
Enable new drop packet for PACKETVER >= 20180418
-rw-r--r-- | doc/item_db.txt | 4 | ||||
-rw-r--r-- | src/map/clif.c | 2 | ||||
-rw-r--r-- | src/map/packets_struct.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/doc/item_db.txt b/doc/item_db.txt index 16eca2e23..4ada106c7 100644 --- a/doc/item_db.txt +++ b/doc/item_db.txt @@ -371,8 +371,8 @@ Inherit: This can be used only in item_db2.conf, and if set to true, and the item already exists in item_db.conf, all the missing fields will be inherited from there rather than using their default values. -ShowDropEffect: Allow showing an effect when the item dropped by a monster. [ZERO client only] -DropEffectMode: Set attribute for ShowDropEffect. [ZERO client only] +ShowDropEffect: Allow showing an effect when the item dropped by a monster. [ZERO client or PACKETVER >= 20180418] +DropEffectMode: Set attribute for ShowDropEffect. [ZERO client or PACKETVER >= 20180418] 0 - Client Based (itemInfo EffectID) 1 - White effect 2 - Blue effect diff --git a/src/map/clif.c b/src/map/clif.c index 60f4b18c0..448b0639d 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -819,7 +819,7 @@ 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 defined(PACKETVER_ZERO) || PACKETVER >= 20180418 if (fitem->showdropeffect) { p.showdropeffect = itemdb_showdropeffect(fitem->item_data.nameid); p.dropeffectmode = itemdb_dropeffectmode(fitem->item_data.nameid); diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 438084778..5b9a4344a 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -191,7 +191,7 @@ enum packet_headers { skill_entryType = 0x9ca, #endif graffiti_entryType = 0x1c9, -#ifdef PACKETVER_ZERO +#if defined(PACKETVER_ZERO) || PACKETVER >= 20180418 dropflooritemType = 0xadd, #elif PACKETVER > 20130000 /* not sure date */ dropflooritemType = 0x84b, @@ -530,7 +530,7 @@ struct packet_dropflooritem { uint8 subX; uint8 subY; int16 count; -#ifdef PACKETVER_ZERO +#if defined(PACKETVER_ZERO) || PACKETVER >= 20180418 int8 showdropeffect; int16 dropeffectmode; #endif |