From 6b1e40e08d0d42abad80cc8bad1b848091bf0b30 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 1 Jun 2008 08:14:47 +0000 Subject: Added Ai4rei's "gm can view all players' equips" feature (topic:186519). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12751 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 1 + src/map/battle.h | 1 + src/map/clif.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/battle.c b/src/map/battle.c index cb6d95b2a..c767891a0 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3698,6 +3698,7 @@ static const struct _battle_data { { "ksprotection", &battle_config.ksprotection, 5000, 0, INT_MAX, }, { "auction_feeperhour", &battle_config.auction_feeperhour, 12000, 0, INT_MAX, }, { "auction_maximumprice", &battle_config.auction_maximumprice, 500000000, 0, MAX_ZENY, }, + { "gm_viewequip_min_lv", &battle_config.gm_viewequip_min_lv, 0, 0, 99, }, }; diff --git a/src/map/battle.h b/src/map/battle.h index 4b272c85f..93ead772d 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -451,6 +451,7 @@ extern struct Battle_Config int ksprotection; int auction_feeperhour; int auction_maximumprice; + int gm_viewequip_min_lv; } battle_config; void do_init_battle(void); diff --git a/src/map/clif.c b/src/map/clif.c index 5b9b3cfc1..5f807a86f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -12158,7 +12158,7 @@ void clif_parse_ViewPlayerEquip(int fd, struct map_session_data* sd) if (!tsd) return; - if( tsd->status.show_equip ) + if( tsd->status.show_equip || (battle_config.gm_viewequip_min_lv && pc_isGM(sd) >= battle_config.gm_viewequip_min_lv) ) clif_viewequip_ack(sd, tsd); else clif_viewequip_fail(sd); -- cgit v1.2.3-70-g09d2