[Rules] Gate /tgb, /autofire and /melody (#1679)

* Rules to negate /tgb, /autofire, and /melody

Created new rules to negate server and client side effects of commands: /tgb, /autofire, and /melody. These commands are enabled by default and can be disabled to enforce a classic EQ experience if using progression style play for example.

Rules
--------------
RULE_BOOL(Character, EnableBardMelody, true, "Enable Bard /melody by default, to disable change to false for a classic experience.")
RULE_BOOL(Character, EnableRangerAutoFire, true, "Enable Ranger /autofire by default, to disable change to false for a classic experience.")
RULE_BOOL(Character, EnableTGB, true, "Enable /tgb (Target Group Buff) by default, to disable change to false for a classic experience.")

* Removed sql query for rules per Mackal recommendation.
This commit is contained in:
cybernine186 authored and GitHub committed 2021-11-11 19:41:03 -06:00
1 parent e4bd6f5bd2
commit 65197ac027
4 files changed
+13 -1

No files matched your search

+5
View File
@@ -1026,6 +1026,11 @@ void Client::OPTGB(const EQApplicationPacket *app)
{
if(!app) return;
if(!app->pBuffer) return;
if(!RuleB(Character, EnableTGB))
{
return;
}
uint32 tgb_flag = *(uint32 *)app->pBuffer;
if(tgb_flag == 2)