From 50a97b0ef2a8365d87a8a57047caccb0c050c56b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 30 Nov 2014 19:27:14 +0300 Subject: add map flag what prevent from attacking mobs. New map flag: nopve --- src/map/init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/init.c') diff --git a/src/map/init.c b/src/map/init.c index a67ddba..c8f2ad3 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -102,6 +102,7 @@ HPExport void plugin_init (void) addHookPre("pc->setregistry", epc_setregistry); addHookPre("pc->equipitem_pos", epc_equipitem_pos); addHookPre("pc->unequipitem_pos", epc_unequipitem_pos); + addHookPre("pc->can_attack", epc_can_attack); addHookPre("npc->checknear", enpc_checknear); addHookPre("npc->parse_unknown_mapflag", enpc_parse_unknown_mapflag); addHookPre("clif->quest_send_list", eclif_quest_send_list); -- cgit v1.2.3-70-g09d2