diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-08 01:31:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-08 11:54:49 +0300 |
commit | 48f6d35d2c293a17a863bb540e686b1c780b9005 (patch) | |
tree | 46780b62e99e408247d7e844309505c5e3e11857 /src/map/itemdb.c | |
parent | 6916a2defdf884cceb67e6699bd9b4cfaeba0279 (diff) | |
download | evol-hercules-48f6d35d2c293a17a863bb540e686b1c780b9005.tar.gz evol-hercules-48f6d35d2c293a17a863bb540e686b1c780b9005.tar.bz2 evol-hercules-48f6d35d2c293a17a863bb540e686b1c780b9005.tar.xz evol-hercules-48f6d35d2c293a17a863bb540e686b1c780b9005.zip |
Add to item_db.conf item attributes for equip/unequip effects.
New attributes:
UnequipEffect - send this effect to client if unequip item was success
UnequipFailEffect - send this effect to client if unequip item was fail
For equip events used same attributes like for use.
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 182c38b..13c56cf 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -74,14 +74,18 @@ void eitemdb_readdb_additional_fields(int *itemid, data->requiredMAtkMin = i32; if (libconfig->setting_lookup_int(it, "RequiredMAtkMax", &i32) && i32 >= 0) data->requiredMAtkMax = i32; - if (libconfig->setting_lookup_int(it, "requiredDef", &i32) && i32 >= 0) + if (libconfig->setting_lookup_int(it, "RequiredDef", &i32) && i32 >= 0) data->requiredDef = i32; - if (libconfig->setting_lookup_int(it, "requiredMDef", &i32) && i32 >= 0) + if (libconfig->setting_lookup_int(it, "RequiredMDef", &i32) && i32 >= 0) data->requiredMDef = i32; - if (itemdb->lookup_const(it, "useEffect", &i32)) + if (itemdb->lookup_const(it, "UseEffect", &i32)) data->useEffect = i32; - if (itemdb->lookup_const(it, "useFailEffect", &i32)) + if (itemdb->lookup_const(it, "UseFailEffect", &i32)) data->useFailEffect = i32; + if (itemdb->lookup_const(it, "UnequipEffect", &i32)) + data->unequipEffect = i32; + if (itemdb->lookup_const(it, "UnequipFailEffect", &i32)) + data->unequipFailEffect = i32; hookStop(); } |