From 8ee7759dec5fe2159756a676a9c14c22b84c9e57 Mon Sep 17 00:00:00 2001 From: Kinglykrab <89047260+Kinglykrab@users.noreply.github.com> Date: Thu, 4 Aug 2022 16:41:36 -0400 Subject: [PATCH] [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. --- common/ruletypes.h | 1 + zone/client.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common/ruletypes.h b/common/ruletypes.h index 8a2f1f30d..1a2dfa0fb 100644 --- a/common/ruletypes.h +++ b/common/ruletypes.h @@ -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) diff --git a/zone/client.cpp b/zone/client.cpp index f1986b7f0..74d0aea73 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -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;