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 --- db/const.txt | 2 ++ db/pre-re/map_zone_db.conf | 7 ++++++- db/re/map_zone_db.conf | 7 ++++++- 3 files changed, 14 insertions(+), 2 deletions(-) (limited to 'db') diff --git a/db/const.txt b/db/const.txt index af3dedbc5..6ecae2177 100644 --- a/db/const.txt +++ b/db/const.txt @@ -365,6 +365,8 @@ mf_monster_noteleport 49 mf_pvp_nocalcrank 50 mf_battleground 51 mf_reset 52 +mf_notomb 53 +mf_nocashshop 54 cell_walkable 0 cell_shootable 1 diff --git a/db/pre-re/map_zone_db.conf b/db/pre-re/map_zone_db.conf index 384384fec..3bc0fd95e 100644 --- a/db/pre-re/map_zone_db.conf +++ b/db/pre-re/map_zone_db.conf @@ -87,6 +87,9 @@ zones: ( disabled_items: { Greed_Scroll: true } + + mapflags: ( "nocashshop" ) + }, { /* PK Mode zone is only used when server is on pk_mode (battle.conf), @@ -157,7 +160,9 @@ zones: ( "magic_damage_rate 60", "misc_damage_rate 60", "long_damage_rate 80", - "short_damage_rate 80" ) + "short_damage_rate 80", + "nocashshop" + ) }, { diff --git a/db/re/map_zone_db.conf b/db/re/map_zone_db.conf index 384384fec..7a8331216 100644 --- a/db/re/map_zone_db.conf +++ b/db/re/map_zone_db.conf @@ -87,6 +87,9 @@ zones: ( disabled_items: { Greed_Scroll: true } + + /* cashshop disabled in pvp maps */ + mapflags: ( "nocashshop" ) }, { /* PK Mode zone is only used when server is on pk_mode (battle.conf), @@ -157,7 +160,9 @@ zones: ( "magic_damage_rate 60", "misc_damage_rate 60", "long_damage_rate 80", - "short_damage_rate 80" ) + "short_damage_rate 80", + "nocashshop" + ) }, { -- cgit v1.2.3-60-g2f50