From dc7c6e13e5535e4fe78bb84f9920347880022327 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 Jan 2015 16:52:15 +0300 Subject: map: allow use npc with any id in allowed range. --- src/map/npc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index aba7288..9ccca29 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -111,3 +111,9 @@ int enpc_buysellsel(struct map_session_data* sd, int *id, int *type) return 0; } +bool enpc_db_checkid(int *idPtr) +{ + const int id = *idPtr; + hookStop(); + return ((id >= 46 && id < MAX_NPC_CLASS) || id == HIDDEN_WARP_CLASS || id == INVISIBLE_CLASS || (id > MAX_NPC_CLASS2_START && id < MAX_NPC_CLASS2_END)); +} -- cgit v1.2.3-70-g09d2