summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-13 20:08:55 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-13 20:30:34 +0300
commitf7cce6ac2d1c010af4865212dc6ddc2a7aea66a4 (patch)
tree7d65ea2e1bd9fb9379157dce324c1d601d0518e9 /src/emap/init.c
parent5b49e94e000d31299e9e97e339e7ad273cdfa032 (diff)
downloadplugin-f7cce6ac2d1c010af4865212dc6ddc2a7aea66a4.tar.gz
plugin-f7cce6ac2d1c010af4865212dc6ddc2a7aea66a4.tar.bz2
plugin-f7cce6ac2d1c010af4865212dc6ddc2a7aea66a4.tar.xz
plugin-f7cce6ac2d1c010af4865212dc6ddc2a7aea66a4.zip
Add support for drop script for items dropped by player.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 049402a..1259ce8 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -156,6 +156,7 @@ HPExport void plugin_init (void)
addHookPre("pc->validate_levels", epc_validate_levels);
addHookPre("pc->check_job_name", epc_check_job_name);
addHookPre("pc->delitem", epc_delitem_pre);
+ addHookPre("pc->dropitem", epc_dropitem_pre);
addHookPre("mob->deleteslave_sub", emob_deleteslave_sub);
addHookPre("mob->read_db_additional_fields", emob_read_db_additional_fields);
addHookPre("npc->parse_unknown_mapflag", enpc_parse_unknown_mapflag);
@@ -175,6 +176,7 @@ HPExport void plugin_init (void)
addHookPre("clif->pLoadEndAck", eclif_parse_LoadEndAck_pre);
addHookPre("itemdb->is_item_usable", eitemdb_is_item_usable);
addHookPre("itemdb->readdb_additional_fields", eitemdb_readdb_additional_fields);
+ addHookPre("itemdb->destroy_item_data", edestroy_item_data);
addHookPre("unit->can_move", eunit_can_move);
addHookPre("unit->walktoxy", eunit_walktoxy);
addHookPre("mail->invalid_operation", email_invalid_operation);
@@ -212,6 +214,7 @@ HPExport void plugin_init (void)
addHookPost("pc->unequipitem", epc_unequipitem_post);
addHookPost("pc->setnewpc", epc_setnewpc_post);
addHookPost("pc->delitem", epc_delitem_post);
+ addHookPost("pc->dropitem", epc_dropitem_post);
addHookPost("pc->can_insert_card_into", epc_can_insert_card_into_post);
langScriptId = script->add_str("Lang");