summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorAnnieRuru <jeankof@ymail.com>2015-10-29 17:12:02 +0800
committerAnnieRuru <jeankof@ymail.com>2015-10-29 17:12:02 +0800
commit1be5817fdbefb0ad9bb760f1bc7eecdc2a7bb961 (patch)
tree18874c88ef96d35bfac78220783303ed76147710 /src/map/npc.c
parent6abd0fb8b1bbfe2101cc68503897b0449027fb3d (diff)
downloadhercules-1be5817fdbefb0ad9bb760f1bc7eecdc2a7bb961.tar.gz
hercules-1be5817fdbefb0ad9bb760f1bc7eecdc2a7bb961.tar.bz2
hercules-1be5817fdbefb0ad9bb760f1bc7eecdc2a7bb961.tar.xz
hercules-1be5817fdbefb0ad9bb760f1bc7eecdc2a7bb961.zip
Add new config to allow player vend/chat room nearby hidden npc (#834)
credit to Emistry for the idea
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 7044fefcf..017d60fff 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -137,6 +137,9 @@ int npc_isnear_sub(struct block_list* bl, va_list args) {
if( nd->option & (OPTION_HIDE|OPTION_INVISIBLE) )
return 0;
+ if( battle_config.vendchat_near_hiddennpc && ( nd->class_ == -1 || nd->class_ == 139 ) )
+ return 0;
+
return 1;
}