diff --git a/Projects/UOContent/Mobiles/Vendors/BaseVendor.cs b/Projects/UOContent/Mobiles/Vendors/BaseVendor.cs index 1dffeb30d..f260de694 100644 --- a/Projects/UOContent/Mobiles/Vendors/BaseVendor.cs +++ b/Projects/UOContent/Mobiles/Vendors/BaseVendor.cs @@ -30,6 +30,17 @@ namespace Server.Mobiles private readonly List _buyInfo = new(); private readonly List _sellInfo = new(); + private static bool EnableVendorBuyOPL; + + public static void Configure() + { + // Turn off to remove tooltips while buying items + // CUO is not compatible with this turned off + // Also items may require a string description for their name to show up properly. + // See SBAnimalTrainer for an example + EnableVendorBuyOPL = ServerConfiguration.GetSetting("opl.enableForVendorBuy", true); + } + public static void Initialize() { // This is technically more work than making timers, but we don't to deplete the timer pool immediately. @@ -865,9 +876,7 @@ namespace Server.Mobiles var list = new List(buyInfo.Length); var cont = BuyPack; - // If OPL is disabled and the item being purchased has the wrong name, then you must specify the name manually. - // Check SBAnimalTrainer for an example. - var opls = ObjectPropertyList.Enabled ? new List(buyInfo.Length) : null; + var opls = EnableVendorBuyOPL ? new List(buyInfo.Length) : null; for (var idx = 0; idx < buyInfo.Length; idx++) {