Added Ai4rei's "gm can view all players' equips" feature (topic:186519).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12751 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage 2008-06-01 08:14:47 +00:00
parent 7e73522c65
commit 37ddd1c503
6 changed files with 11 additions and 1 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2008/06/01
* Added Ai4rei's "gm can view all players' equips" feature [ultramage]
2008/05/31 2008/05/31
* Crashfix to attach/detach timers, thanks to Konard (fixed recent crashes) [Lupus] * Crashfix to attach/detach timers, thanks to Konard (fixed recent crashes) [Lupus]
2008/05/28 2008/05/28

View File

@ -1,5 +1,7 @@
Date Added Date Added
2008/06/01
* Added gm_viewequip_min_lv to gm.conf [ultramage]
2008/05/28 2008/05/28
* Rev. r12736 Added new maps related to episode 13.1. [L0ne_W0lf] * Rev. r12736 Added new maps related to episode 13.1. [L0ne_W0lf]
2008/04/28 2008/04/28

View File

@ -87,6 +87,10 @@ gm_cant_drop_max_lv: 0
// no/0 can be used to disable it. // no/0 can be used to disable it.
disp_hpmeter: 0 disp_hpmeter: 0
// Minimum GM level to view players equip regardless of their setting.
// (Default: 0 = Disabled).
gm_viewequip_min_lv: 0
// Players Titles (check msg_athena.conf for title strings) // Players Titles (check msg_athena.conf for title strings)
// You may assign different titles for your Players and GMs // You may assign different titles for your Players and GMs
title_lvl1: 1 title_lvl1: 1

View File

@ -3698,6 +3698,7 @@ static const struct _battle_data {
{ "ksprotection", &battle_config.ksprotection, 5000, 0, INT_MAX, }, { "ksprotection", &battle_config.ksprotection, 5000, 0, INT_MAX, },
{ "auction_feeperhour", &battle_config.auction_feeperhour, 12000, 0, INT_MAX, }, { "auction_feeperhour", &battle_config.auction_feeperhour, 12000, 0, INT_MAX, },
{ "auction_maximumprice", &battle_config.auction_maximumprice, 500000000, 0, MAX_ZENY, }, { "auction_maximumprice", &battle_config.auction_maximumprice, 500000000, 0, MAX_ZENY, },
{ "gm_viewequip_min_lv", &battle_config.gm_viewequip_min_lv, 0, 0, 99, },
}; };

View File

@ -451,6 +451,7 @@ extern struct Battle_Config
int ksprotection; int ksprotection;
int auction_feeperhour; int auction_feeperhour;
int auction_maximumprice; int auction_maximumprice;
int gm_viewequip_min_lv;
} battle_config; } battle_config;
void do_init_battle(void); void do_init_battle(void);

View File

@ -12158,7 +12158,7 @@ void clif_parse_ViewPlayerEquip(int fd, struct map_session_data* sd)
if (!tsd) if (!tsd)
return; 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); clif_viewequip_ack(sd, tsd);
else else
clif_viewequip_fail(sd); clif_viewequip_fail(sd);