diff --git a/Projects/Server/Network/Packets/OutgoingMobilePackets.cs b/Projects/Server/Network/Packets/OutgoingMobilePackets.cs index f32e89ad4..36a7a61ef 100644 --- a/Projects/Server/Network/Packets/OutgoingMobilePackets.cs +++ b/Projects/Server/Network/Packets/OutgoingMobilePackets.cs @@ -37,6 +37,13 @@ namespace Server.Network public const int MobileStatusCompactLength = 43; public const int MobileStatusMaxLength = 121; + public static bool ExtendedStatus { get; set; } + + public static void Initialize() + { + ExtendedStatus = ServerConfiguration.GetOrUpdateSetting("extendedStatus", false); + } + public static void CreateBondedStatus(Span buffer, Serial serial, bool bonded) { if (buffer[0] != 0) @@ -462,7 +469,11 @@ namespace Server.Network } else if (Core.ML && ns.SupportsExpansion(Expansion.ML)) { - version = 5; + /* + * For the ML era, the version value must be 5 if the original UO distribution + * is used and the client is not lower than version 5 + */ + version = ExtendedStatus ? 6 : 5; } else {