mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-21 11:53:53 +00:00
[Rules] Add Rule to Enable Tells with #hideme (#2358)
With the recent changes to #hideme as of #2328, tells are disabled to hidden GMs, meaning a GM must show themselves in order to receive tells.
This commit is contained in:
parent
5ec18709a6
commit
8ee7759dec
@ -809,6 +809,7 @@ RULE_CATEGORY_END()
|
||||
|
||||
RULE_CATEGORY(Command)
|
||||
RULE_BOOL(Command, DyeCommandRequiresDyes, false, "Enable this to require a Prismatic Dye (32557) each time someone uses #dye.")
|
||||
RULE_BOOL(Command, HideMeCommandDisablesTells, true, "Disable this to allow tells to be received when using #hideme.")
|
||||
RULE_CATEGORY_END()
|
||||
|
||||
RULE_CATEGORY(Doors)
|
||||
|
||||
@ -3388,9 +3388,10 @@ void Client::SetHideMe(bool gm_hide_me)
|
||||
CreateDespawnPacket(&app, false);
|
||||
entity_list.RemoveFromTargets(this);
|
||||
trackable = false;
|
||||
tellsoff = true;
|
||||
}
|
||||
else {
|
||||
if (RuleB(Command, HideMeCommandDisablesTells)) {
|
||||
tellsoff = true;
|
||||
}
|
||||
} else {
|
||||
database.SetHideMe(AccountID(), false);
|
||||
CreateSpawnPacket(&app);
|
||||
trackable = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user