mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-21 11:53:53 +00:00
Add GM:MinStatusToLevelTarget rule, which determines the GM status needed to use the #level command on your target.
This commit is contained in:
parent
8681d0acf7
commit
6a31af81ee
@ -205,6 +205,7 @@ RULE_CATEGORY_END()
|
||||
RULE_CATEGORY(GM)
|
||||
RULE_INT(GM, MinStatusToSummonItem, 250)
|
||||
RULE_INT(GM, MinStatusToZoneAnywhere, 250)
|
||||
RULE_INT(GM, MinStatusToLevelTarget, 100)
|
||||
RULE_CATEGORY_END()
|
||||
|
||||
RULE_CATEGORY(World)
|
||||
|
||||
@ -2784,7 +2784,7 @@ void command_level(Client *c, const Seperator *sep)
|
||||
if ((level <= 0) || ((level > RuleI(Character, MaxLevel)) && (c->Admin() < commandLevelAboveCap))) {
|
||||
c->Message(0, "Error: #Level: Invalid Level");
|
||||
}
|
||||
else if (c->Admin() < 100) {
|
||||
else if (c->Admin() < RuleI(GM, MinStatusToLevelTarget)) {
|
||||
c->SetLevel(level, true);
|
||||
#ifdef BOTS
|
||||
if(RuleB(Bots, BotLevelsWithOwner))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user