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/itemdb.h | |
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/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index d2d3b6c73..5344a7cd6 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -472,6 +472,7 @@ struct item_data { int view_id; int matk; int elvmax;/* maximum level for this item */ + int dropeffectmode; int delay; uint64 class_base[3]; ///< Specifies if the base can wear this item (split in 3 indexes per type: 1-1, 2-1, 2-2) @@ -495,6 +496,7 @@ struct item_data { unsigned force_serial : 1; unsigned no_options: 1; // < disallows use of item options on the item. (non-equippable items are automatically flagged) [Smokexyz] unsigned drop_announce : 1; // Official Drop Announce [Jedzkie] + unsigned showdropeffect: 1; // < Allow showing effect on item drop [Asheraf] } flag; struct {// item stacking limitation unsigned short amount; @@ -538,6 +540,8 @@ struct item_data { #define itemdb_value_sell(n) (itemdb->search(n)->value_sell) #define itemdb_canrefine(n) (!itemdb->search(n)->flag.no_refine) #define itemdb_allowoption(n) (!itemdb->search(n)->flag.no_options) +#define itemdb_showdropeffect(n) (itemdb->search(n)->flag.showdropeffect) +#define itemdb_dropeffectmode(n) (itemdb->search(n)->dropeffectmode) #define itemdb_is_element(n) ((n) >= ITEMID_SCARLET_PTS && (n) <= ITEMID_LIME_GREEN_PTS) #define itemdb_is_spellbook(n) ((n) >= ITEMID_MAGIC_BOOK_FB && (n) <= ITEMID_MAGIC_BOOK_DL) |