diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-07 23:22:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-08 11:54:23 +0300 |
commit | 6916a2defdf884cceb67e6699bd9b4cfaeba0279 (patch) | |
tree | ba28b30664670182a96fea73f95a8b184144c062 /src/map/init.c | |
parent | fd83c8bda2a4508ddf734e00c57b5699d4ea9cb7 (diff) | |
download | plugin-6916a2defdf884cceb67e6699bd9b4cfaeba0279.tar.gz plugin-6916a2defdf884cceb67e6699bd9b4cfaeba0279.tar.bz2 plugin-6916a2defdf884cceb67e6699bd9b4cfaeba0279.tar.xz plugin-6916a2defdf884cceb67e6699bd9b4cfaeba0279.zip |
Add to item_db.conf item attributes for use effects.
New attributes:
useEffect - send this effect to client if use item was success
useFailEffect - send this effect to client if use item was fail
Diffstat (limited to 'src/map/init.c')
-rw-r--r-- | src/map/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c index ffb6033..e8ac062 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -158,6 +158,7 @@ HPExport void plugin_init (void) addHookPost("skill->check_condition_castend", eskill_check_condition_castend_post); addHookPost("pc->isequip", epc_isuseequip_post); addHookPost("pc->isUseitem", epc_isuseequip_post); + addHookPost("pc->useitem", epc_useitem_post); langScriptId = script->add_str("Lang"); } |