From 48c489a2561f7853844994a8c48bf47d4c0c2e0d Mon Sep 17 00:00:00 2001 From: WarrentyExpired Date: Tue, 25 Aug 2026 19:50:48 -0400 Subject: [PATCH] #W# Added AntiMacro setting in Settings.cs --- Scripts/Misc/SkillCheck.cs | 2 +- Scripts/Settings.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/Misc/SkillCheck.cs b/Scripts/Misc/SkillCheck.cs index c126b6d..efbc115 100644 --- a/Scripts/Misc/SkillCheck.cs +++ b/Scripts/Misc/SkillCheck.cs @@ -7,7 +7,7 @@ namespace Server.Misc { public class SkillCheck { - private static readonly bool AntiMacroCode = !Core.ML; //Change this to false to disable anti-macro code + private static readonly bool AntiMacroCode = Settings.S_NoMacroing; //Change this to false to disable anti-macro code public static TimeSpan AntiMacroExpire = TimeSpan.FromMinutes( 5.0 ); //How long do we remember targets/locations? public const int Allowance = 3; //How many times may we use the same location/target for gain diff --git a/Scripts/Settings.cs b/Scripts/Settings.cs index 0907b1e..b9ee42d 100644 --- a/Scripts/Settings.cs +++ b/Scripts/Settings.cs @@ -23,5 +23,6 @@ namespace Server public static double S_FarmSpawnTimer = 15.0; public static int S_HarvestRange = 1; public static int S_HousesPerAccount = 1; + public static bool S_NoMacroing = false; } }