diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-17 12:15:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-17 12:15:34 +0300 |
commit | 707ccaa19fa60aab91dec2b2394b4ff588e01f4e (patch) | |
tree | 43113cef54430fca78bc7a1bd3face9b6dba0e7a /src/map/init.c | |
parent | 0259ea31939be1ec56a47980256d67837158b3f2 (diff) | |
download | plugin-707ccaa19fa60aab91dec2b2394b4ff588e01f4e.tar.gz plugin-707ccaa19fa60aab91dec2b2394b4ff588e01f4e.tar.bz2 plugin-707ccaa19fa60aab91dec2b2394b4ff588e01f4e.tar.xz plugin-707ccaa19fa60aab91dec2b2394b4ff588e01f4e.zip |
Allow "use" pet eggs.
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 f78d4d2..67a36dc 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -35,6 +35,7 @@ #include "common/init.h" #include "map/clif.h" +#include "map/itemdb.h" #include "map/lang.h" #include "map/npc.h" #include "map/parse.h" @@ -109,6 +110,7 @@ HPExport void plugin_init (void) addHookPre("clif->send", eclif_send); addHookPre("clif->set_unit_idle", eclif_set_unit_idle); addHookPre("clif->send_actual", eclif_send_actual); + addHookPre("itemdb->is_item_usable", eitemdb_is_item_usable); addHookPost("clif->getareachar_unit", eclif_getareachar_unit_post); addHookPost("clif->authok", eclif_authok_post); |