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/init.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/init.c')
-rw-r--r-- | src/map/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c index e8ac062..98623d6 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -159,6 +159,8 @@ HPExport void plugin_init (void) addHookPost("pc->isequip", epc_isuseequip_post); addHookPost("pc->isUseitem", epc_isuseequip_post); addHookPost("pc->useitem", epc_useitem_post); + addHookPost("pc->equipitem", epc_equipitem_post); + addHookPost("pc->unequipitem", epc_unequipitem_post); langScriptId = script->add_str("Lang"); } |