diff options
author | AnnieRuru <jeankof@ymail.com> | 2015-10-29 17:12:02 +0800 |
---|---|---|
committer | AnnieRuru <jeankof@ymail.com> | 2015-10-29 17:12:02 +0800 |
commit | 1be5817fdbefb0ad9bb760f1bc7eecdc2a7bb961 (patch) | |
tree | 18874c88ef96d35bfac78220783303ed76147710 /src/map/npc.c | |
parent | 6abd0fb8b1bbfe2101cc68503897b0449027fb3d (diff) | |
download | hercules-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.c | 3 |
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; } |