diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/init.c | 1 | ||||
-rw-r--r-- | src/map/npc.c | 22 | ||||
-rw-r--r-- | src/map/npc.h | 2 |
3 files changed, 0 insertions, 25 deletions
diff --git a/src/map/init.c b/src/map/init.c index b73427f..397be52 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -104,7 +104,6 @@ HPExport void plugin_init (void) 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); addHookPre("clif->quest_add", eclif_quest_add); diff --git a/src/map/npc.c b/src/map/npc.c index 0fc5c33..7b15491 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -20,28 +20,6 @@ #include "map/struct/npcdext.h" #include "map/npc.h" -struct npc_data* enpc_checknear(struct map_session_data* sd, struct block_list* bl) -{ - struct npc_data *nd; - - if (!sd) - return NULL; - - if (bl == NULL) - return NULL; - if (bl->type != BL_NPC) - return NULL; - nd = (TBL_NPC*)bl; - - if (sd->npc_id == bl->id) - { - hookStop(); - return nd; - } - - return nd; -} - void enpc_parse_unknown_mapflag(const char *name, char *w3, char *w4, const char* start, const char* buffer, const char* filepath, int *retval) { diff --git a/src/map/npc.h b/src/map/npc.h index e3cb31a..54685b2 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -4,8 +4,6 @@ #ifndef EVOL_MAP_NPC #define EVOL_MAP_NPC -struct npc_data* enpc_checknear(struct map_session_data* sd, struct block_list* bl); - void enpc_parse_unknown_mapflag(const char *name, char *w3, char *w4, const char* start, const char* buffer, const char* filepath, int *retval); |