summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-25 12:45:13 -0200
committershennetsind <ind@henn.et>2013-10-25 12:45:13 -0200
commit8629562655cfcbd6aef97307e3e0c078235619ff (patch)
tree6de8f57077d52fe52c306adee05d6043c5675584 /src/map/npc.c
parent259fe1930d2307248327bd5737f4909fd77e72ad (diff)
downloadhercules-8629562655cfcbd6aef97307e3e0c078235619ff.tar.gz
hercules-8629562655cfcbd6aef97307e3e0c078235619ff.tar.bz2
hercules-8629562655cfcbd6aef97307e3e0c078235619ff.tar.xz
hercules-8629562655cfcbd6aef97307e3e0c078235619ff.zip
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 <ind@henn.et>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 2 insertions, 0 deletions
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));