From 8629562655cfcbd6aef97307e3e0c078235619ff Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 25 Oct 2013 12:45:13 -0200 Subject: nocashshop mapflag As requested by the community in http://hercules.ws/board/topic/1477-mapflag-for-cash-shop/ and http://hercules.ws/board/topic/1476-disable-cashshop-in-pvp-woe/ 'nocashshop' mapflag disables the usage of the cashshop button as well as any attempts to purchase (in case the flag is turned on after someone gets the shop open). Signed-off-by: shennetsind --- src/map/npc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index c536dc856..2b6d807cb 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -3441,6 +3441,8 @@ const char* npc_parse_mapflag(char* w1, char* w2, char* w3, char* w4, const char map->list[m].long_damage_rate = (state) ? atoi(w4) : 100; } else if ( !strcmpi(w3,"src4instance") ) { map->list[m].flag.src4instance = (state) ? 1 : 0; + } else if ( !strcmpi(w3,"nocashshop") ) { + map->list[m].flag.nocashshop = (state) ? 1 : 0; } else ShowError("npc_parse_mapflag: unrecognized mapflag '%s' (file '%s', line '%d').\n", w3, filepath, strline(buffer,start-buffer)); -- cgit v1.2.3-60-g2f50