mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 15:52:26 +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_CATEGORY(Command)
|
||||||
RULE_BOOL(Command, DyeCommandRequiresDyes, false, "Enable this to require a Prismatic Dye (32557) each time someone uses #dye.")
|
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_END()
|
||||||
|
|
||||||
RULE_CATEGORY(Doors)
|
RULE_CATEGORY(Doors)
|
||||||
|
|||||||
@ -3388,9 +3388,10 @@ void Client::SetHideMe(bool gm_hide_me)
|
|||||||
CreateDespawnPacket(&app, false);
|
CreateDespawnPacket(&app, false);
|
||||||
entity_list.RemoveFromTargets(this);
|
entity_list.RemoveFromTargets(this);
|
||||||
trackable = false;
|
trackable = false;
|
||||||
tellsoff = true;
|
if (RuleB(Command, HideMeCommandDisablesTells)) {
|
||||||
}
|
tellsoff = true;
|
||||||
else {
|
}
|
||||||
|
} else {
|
||||||
database.SetHideMe(AccountID(), false);
|
database.SetHideMe(AccountID(), false);
|
||||||
CreateSpawnPacket(&app);
|
CreateSpawnPacket(&app);
|
||||||
trackable = true;
|
trackable = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user