RynthSuite as of 2026-09-27 (internal 1816d05): AutoVendor (UtilityBelt port), missile/magic facing and arc line of sight, nav waypoint skipping, rebuff batch and item-enchant fixes, crafting fallback, Loot Editor AutoVendor folder and command-line open, release 2026.9.27.2

This commit is contained in:
Tom Bohar 2026-09-27 20:25:46 -04:00
commit d55ffda4ed
33 changed files with 4364 additions and 207 deletions

View file

@ -23,6 +23,9 @@ internal sealed class LegacyAdvancedSettingsUi
public void SetMissileCraftingManager(MissileCraftingManager mgr) => _missileCraftingManager = mgr;
private Func<string>? _autoVendorStatus;
public void SetAutoVendorStatusProvider(Func<string> status) => _autoVendorStatus = status;
public string MissileCraftingState => _missileCraftingManager?.State.ToString() ?? string.Empty;
public bool MissileCraftingActive => _missileCraftingManager?.IsCrafting ?? false;
public string MissileCraftingStatus => _missileCraftingManager?.StatusMessage ?? string.Empty;
@ -60,6 +63,51 @@ internal sealed class LegacyAdvancedSettingsUi
ImGui.End();
}
private void RenderVendoring()
{
ImGui.Text("AutoVendor (UtilityBelt)");
ImGui.Separator();
ImGui.Spacing();
string status = _autoVendorStatus?.Invoke() ?? "Not logged in";
ImGui.TextDisabled($"Status: {status}");
ImGui.Spacing();
ImGui.Checkbox("Enabled##AV", ref _settings.AutoVendorEnabled);
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Buy and sell by a loot profile when a vendor opens (and allow /ub autovendor).\n" +
"Profiles: <Vendor Name>.utl or default.utl in your character's AutoVendor\n" +
"folder, the server folder, or " + Vendor.AutoVendorManager.MainProfileDir + ".");
ImGui.Checkbox("Test Mode (only print what it would do)##AV", ref _settings.AutoVendorTestMode);
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Lists what would be bought and sold without trading. Leave this on until\n" +
"the list looks right: selling can't be undone.");
ImGui.Checkbox("Buy##AV", ref _settings.AutoVendorEnableBuying);
ImGui.SameLine();
ImGui.Checkbox("Sell##AV", ref _settings.AutoVendorEnableSelling);
ImGui.Checkbox("Only Sell From Main Pack##AV", ref _settings.AutoVendorOnlyFromMainPack);
ImGui.Checkbox("Show Merchant Info##AV", ref _settings.AutoVendorShowMerchantInfo);
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Print the vendor's buy/sell rates and max value when it opens.");
ImGui.Checkbox("Think When Finished##AV", ref _settings.AutoVendorThink);
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Send 'AutoVendor finished: <vendor>' (and failures) as a /tell to yourself,\n" +
"so a meta's chat condition can wait for it.");
ImGui.Spacing();
ImGui.Text("/ub vendor open");
ImGui.SetNextItemWidth(120);
if (ImGui.InputInt("Tries##AV", ref _settings.AutoVendorTries))
_settings.AutoVendorTries = Math.Clamp(_settings.AutoVendorTries, 1, 20);
ImGui.SetNextItemWidth(120);
if (ImGui.InputInt("Time Between Tries (ms)##AV", ref _settings.AutoVendorTriesTime, 250))
_settings.AutoVendorTriesTime = Math.Clamp(_settings.AutoVendorTriesTime, 500, 30000);
ImGui.Spacing();
ImGui.TextDisabled("Never sold: equipped, attuned, bonded, retained, tinkered, imbued,");
ImGui.TextDisabled("inscribed, rare, zero value, packs, or anything a Keep rule could match.");
}
private void RenderTabContent(int tabIndex)
{
if (tabIndex < 0 || tabIndex >= _settings.AdvancedTabs.Length)
@ -147,10 +195,15 @@ internal sealed class LegacyAdvancedSettingsUi
ImGui.Spacing();
ImGui.Text("Missile Arc Velocities (m/s)");
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Per-weapon projectile speed used for line-of-sight arc checks.\nLower velocity = higher arc. Tune until LoS matches in-game hits.\nDungeons always use linear checks to avoid false ceiling blocks.");
ImGui.SetTooltip("Per-weapon launch speed used for line-of-sight arc checks.\n" +
"Lower velocity = higher arc. Tune until LoS matches in-game hits\n" +
"(/ra lostest bow on a selected mob shows the arc and where it hits).\n" +
"Indoors the arc is checked against ceilings too.");
ImGui.Checkbox("Use Arcs for Missile LoS", ref _settings.UseArcs);
if (ImGui.IsItemHovered())
ImGui.SetTooltip("When off, all missile LoS checks are linear (eye-to-eye).");
ImGui.SetTooltip("On: a missile target must pass the straight line AND the arc the\n" +
"missile flies (checked against ceilings in dungeons).\n" +
"Off: all missile LoS checks are a straight line (eye-to-eye).");
if (_settings.UseArcs)
{
ImGui.Indent();
@ -162,8 +215,18 @@ internal sealed class LegacyAdvancedSettingsUi
ImGui.SliderFloat("Atlatl", ref _settings.AtlatlArcVelocity, 10.0f, 60.0f, "%.1f");
ImGui.SetNextItemWidth(150);
ImGui.SliderFloat("Magic Arc", ref _settings.MagicArcVelocity, 10.0f, 60.0f, "%.1f");
ImGui.SetNextItemWidth(150);
ImGui.SliderFloat("Arc Clearance (m)", ref _settings.MissileArcClearance, 0.0f, 3.0f, "%.1f");
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Extra headroom the arc must have at mid-flight. Raise it if shots\n" +
"still hit ceilings; lower it if mobs the arrows can reach are skipped.\n" +
"Default 0.5.");
ImGui.Unindent();
}
ImGui.Checkbox("LoS Debug Log", ref _settings.LosDebugLog);
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Log each in-range mob's LoS verdict ([LOS] lines: straight line or arc,\n" +
"how high the arc rises, where it hits, distance and cells). For tuning.");
ImGui.Separator();
ImGui.Spacing();
@ -490,6 +553,12 @@ internal sealed class LegacyAdvancedSettingsUi
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Within this distance of a waypoint, blend the aim point toward the next one to cut corners smoothly. 0 = off (aim straight at each waypoint).");
ImGui.SetNextItemWidth(80);
ImGui.InputFloat("Shortcut Tolerance (yd)", ref _settings.NavShortcutYards, 0.5f, 1f, "%.1f");
_settings.NavShortcutYards = Math.Clamp(_settings.NavShortcutYards, 0f, 10f);
if (ImGui.IsItemHovered())
ImGui.SetTooltip("On reaching a waypoint, skip ahead only while the straight line to a later waypoint passes within this distance of every waypoint skipped. Lower keeps closer to the route; 0 = visit every waypoint.");
ImGui.SetNextItemWidth(80);
ImGui.InputFloat("Turn Rate (deg/s)", ref _settings.NavTurnRateDegPerSec, 15f, 45f, "%.0f");
if (ImGui.IsItemHovered())
@ -541,6 +610,15 @@ internal sealed class LegacyAdvancedSettingsUi
"values (<60s) risk a gap between the old buff dropping and the new one\n" +
"landing.");
ImGui.SetNextItemWidth(180);
ImGui.SliderInt("Also Refresh Under (seconds left)", ref _settings.RebuffTopOffSecondsRemaining, 30, 3600);
if (ImGui.IsItemHovered())
ImGui.SetTooltip(
"When a buff is due, also recast every other buff with less than this\n" +
"much time left, so they land together. Buffs with more time are left\n" +
"alone. Default 1200 (20 minutes). At or below 'Rebuff With', only the\n" +
"expiring buff is recast.");
ImGui.Spacing();
ImGui.Separator();
ImGui.Text("Buff Difficulty (Min Buffed Skill)");
@ -667,6 +745,10 @@ internal sealed class LegacyAdvancedSettingsUi
}
break;
case "Vendoring":
RenderVendoring();
break;
default:
ImGui.Text($"Settings for {tabName} are currently under development.");
break;

View file

@ -280,6 +280,12 @@ internal sealed class LegacyDashboardRenderer
public void SetWorldFilter(WorldObjectCache cache) => _weaponsUi.SetWorldFilter(cache);
public void SetMissileCraftingManager(MissileCraftingManager mgr) => _advancedSettingsUi.SetMissileCraftingManager(mgr);
public void SetAutoVendorStatusProvider(Func<string> status) => _advancedSettingsUi.SetAutoVendorStatusProvider(status);
// The open vendor's AutoVendor profile path (null when no vendor is open), for the
// dashboard snapshot's vendorProfilePath.
private Func<string?>? _vendorProfilePath;
public void SetVendorProfilePathProvider(Func<string?> path) => _vendorProfilePath = path;
public void SetRaycast(Raycasting.MainLogic raycast)
{
@ -766,6 +772,8 @@ internal sealed class LegacyDashboardRenderer
CrossbowArcVelocity = s.CrossbowArcVelocity,
AtlatlArcVelocity = s.AtlatlArcVelocity,
MagicArcVelocity = s.MagicArcVelocity,
MissileArcClearance = s.MissileArcClearance,
LosDebugLog = s.LosDebugLog,
BlacklistAttempts = s.BlacklistAttempts,
BlacklistTimeoutSec = s.BlacklistTimeoutSec,
BlacklistCastSettleMs = s.BlacklistCastSettleMs,
@ -827,6 +835,7 @@ internal sealed class LegacyDashboardRenderer
NavDeadZone = s.NavDeadZone,
NavSweepMult = s.NavSweepMult,
NavLookaheadYards = s.NavLookaheadYards,
NavShortcutYards = s.NavShortcutYards,
NavTurnRateDegPerSec = s.NavTurnRateDegPerSec,
NavTier1TurnSpeed = s.NavTier1TurnSpeed,
PostPortalDelaySec = s.PostPortalDelaySec,
@ -840,6 +849,7 @@ internal sealed class LegacyDashboardRenderer
EnableBuffing = s.EnableBuffing,
RebuffWhenIdle = s.RebuffWhenIdle,
RebuffSecondsRemaining = s.RebuffSecondsRemaining,
RebuffTopOffSecondsRemaining = s.RebuffTopOffSecondsRemaining,
BuffMinSkillLevelTier1 = s.BuffMinSkillLevelTier1,
BuffMinSkillLevelTier2 = s.BuffMinSkillLevelTier2,
BuffMinSkillLevelTier3 = s.BuffMinSkillLevelTier3,
@ -878,6 +888,16 @@ internal sealed class LegacyDashboardRenderer
SalvageSalvageDelayMs = s.SalvageSalvageDelayMs,
SalvageResultDelayFirstMs = s.SalvageResultDelayFirstMs,
SalvageResultDelayFastMs = s.SalvageResultDelayFastMs,
// Vendoring (AutoVendor)
AutoVendorEnabled = s.AutoVendorEnabled,
AutoVendorEnableBuying = s.AutoVendorEnableBuying,
AutoVendorEnableSelling = s.AutoVendorEnableSelling,
AutoVendorTestMode = s.AutoVendorTestMode,
AutoVendorThink = s.AutoVendorThink,
AutoVendorShowMerchantInfo = s.AutoVendorShowMerchantInfo,
AutoVendorOnlyFromMainPack = s.AutoVendorOnlyFromMainPack,
AutoVendorTries = s.AutoVendorTries,
AutoVendorTriesTime = s.AutoVendorTriesTime,
};
return JsonSerializer.Serialize(payload, RynthAiJsonContext.Default.SettingsBridgePayload);
}
@ -892,7 +912,20 @@ internal sealed class LegacyDashboardRenderer
if (string.IsNullOrWhiteSpace(json)) return;
try
{
var p = JsonSerializer.Deserialize(json, RynthAiJsonContext.Default.SettingsBridgePayload);
// Lay the sent fields over the current settings, so a field the sender leaves
// out keeps its value instead of deserializing to 0 and being applied. The
// overlay's Settings panel keeps its own copy of this payload; when that copy
// lacked BlacklistCastSettleMs/MonsterDisengageRange, every click zeroed them.
var merged = System.Text.Json.Nodes.JsonNode.Parse(BuildSettingsJson(),
new System.Text.Json.Nodes.JsonNodeOptions { PropertyNameCaseInsensitive = true })?.AsObject();
if (merged == null) return;
using (var sent = JsonDocument.Parse(json))
{
if (sent.RootElement.ValueKind != JsonValueKind.Object) return;
foreach (var prop in sent.RootElement.EnumerateObject())
merged[prop.Name] = System.Text.Json.Nodes.JsonNode.Parse(prop.Value.GetRawText());
}
var p = JsonSerializer.Deserialize(merged.ToJsonString(), RynthAiJsonContext.Default.SettingsBridgePayload);
if (p == null) return;
var s = _settings;
// Display
@ -918,9 +951,13 @@ internal sealed class LegacyDashboardRenderer
s.CrossbowArcVelocity = p.CrossbowArcVelocity;
s.AtlatlArcVelocity = p.AtlatlArcVelocity;
s.MagicArcVelocity = p.MagicArcVelocity;
if (p.MissileArcClearance >= 0f) s.MissileArcClearance = Math.Min(p.MissileArcClearance, 3f);
s.LosDebugLog = p.LosDebugLog;
s.BlacklistAttempts = p.BlacklistAttempts;
s.BlacklistTimeoutSec = p.BlacklistTimeoutSec;
s.BlacklistCastSettleMs = p.BlacklistCastSettleMs;
// -1 = not sent. 0 is never meant (it judges a cast before its damage can land)
// and is what the bug saved into profiles, so it keeps the default too.
if (p.BlacklistCastSettleMs > 0) s.BlacklistCastSettleMs = p.BlacklistCastSettleMs;
s.TargetNoProgressTimeoutSec = p.TargetNoProgressTimeoutSec;
s.GiveQueueIntervalMs = p.GiveQueueIntervalMs;
// Recharge
@ -957,7 +994,7 @@ internal sealed class LegacyDashboardRenderer
s.MinSkillLevelTier8 = p.MinSkillLevelTier8;
// Ranges
s.MonsterRange = p.MonsterRange;
s.MonsterDisengageRange = p.MonsterDisengageRange;
if (p.MonsterDisengageRange >= 0) s.MonsterDisengageRange = p.MonsterDisengageRange; // -1 = not sent
s.RingRange = p.RingRange;
s.ApproachRange = p.ApproachRange;
s.CorpseApproachRangeMax = p.CorpseApproachRangeMax;
@ -979,6 +1016,7 @@ internal sealed class LegacyDashboardRenderer
s.NavDeadZone = p.NavDeadZone;
s.NavSweepMult = p.NavSweepMult;
s.NavLookaheadYards = p.NavLookaheadYards;
s.NavShortcutYards = p.NavShortcutYards;
s.NavTurnRateDegPerSec = p.NavTurnRateDegPerSec;
s.NavTier1TurnSpeed = p.NavTier1TurnSpeed;
s.PostPortalDelaySec = p.PostPortalDelaySec;
@ -992,6 +1030,7 @@ internal sealed class LegacyDashboardRenderer
s.EnableBuffing = p.EnableBuffing;
s.RebuffWhenIdle = p.RebuffWhenIdle;
s.RebuffSecondsRemaining = p.RebuffSecondsRemaining;
if (p.RebuffTopOffSecondsRemaining > 0) s.RebuffTopOffSecondsRemaining = p.RebuffTopOffSecondsRemaining;
s.BuffMinSkillLevelTier1 = p.BuffMinSkillLevelTier1;
s.BuffMinSkillLevelTier2 = p.BuffMinSkillLevelTier2;
s.BuffMinSkillLevelTier3 = p.BuffMinSkillLevelTier3;
@ -1027,6 +1066,16 @@ internal sealed class LegacyDashboardRenderer
s.SalvageSalvageDelayMs = p.SalvageSalvageDelayMs;
s.SalvageResultDelayFirstMs = p.SalvageResultDelayFirstMs;
s.SalvageResultDelayFastMs = p.SalvageResultDelayFastMs;
// Vendoring: only fields the sender actually included (older panels omit them)
if (p.AutoVendorEnabled is bool avOn) s.AutoVendorEnabled = avOn;
if (p.AutoVendorEnableBuying is bool avBuy) s.AutoVendorEnableBuying = avBuy;
if (p.AutoVendorEnableSelling is bool avSell) s.AutoVendorEnableSelling = avSell;
if (p.AutoVendorTestMode is bool avTest) s.AutoVendorTestMode = avTest;
if (p.AutoVendorThink is bool avThink) s.AutoVendorThink = avThink;
if (p.AutoVendorShowMerchantInfo is bool avInfo) s.AutoVendorShowMerchantInfo = avInfo;
if (p.AutoVendorOnlyFromMainPack is bool avMain) s.AutoVendorOnlyFromMainPack = avMain;
if (p.AutoVendorTries is int avTries) s.AutoVendorTries = Math.Clamp(avTries, 1, 20);
if (p.AutoVendorTriesTime is int avTime) s.AutoVendorTriesTime = Math.Clamp(avTime, 500, 30000);
SaveSettings();
}
catch { }
@ -1302,6 +1351,7 @@ internal sealed class LegacyDashboardRenderer
dst.NavDeadZone = tmp.NavDeadZone;
dst.NavSweepMult = tmp.NavSweepMult;
dst.NavLookaheadYards = tmp.NavLookaheadYards;
dst.NavShortcutYards = tmp.NavShortcutYards;
dst.NavTurnRateDegPerSec = tmp.NavTurnRateDegPerSec;
dst.NavTier1TurnSpeed = tmp.NavTier1TurnSpeed;
dst.PostPortalDelaySec = tmp.PostPortalDelaySec;
@ -1384,9 +1434,12 @@ internal sealed class LegacyDashboardRenderer
dst.PeaceModeWhenIdle = tmp.PeaceModeWhenIdle;
dst.RebuffWhenIdle = tmp.RebuffWhenIdle;
dst.RebuffSecondsRemaining = tmp.RebuffSecondsRemaining;
dst.RebuffTopOffSecondsRemaining = tmp.RebuffTopOffSecondsRemaining;
dst.BlacklistAttempts = tmp.BlacklistAttempts;
dst.BlacklistTimeoutSec = tmp.BlacklistTimeoutSec;
dst.BlacklistCastSettleMs = tmp.BlacklistCastSettleMs;
// 0 is never meant (every UI floors it at 250+) and is what the Settings-panel bug
// saved into profiles: it judges each cast before its damage can land.
dst.BlacklistCastSettleMs = tmp.BlacklistCastSettleMs > 0 ? tmp.BlacklistCastSettleMs : 1500;
dst.TargetNoProgressTimeoutSec = tmp.TargetNoProgressTimeoutSec;
dst.MeleeAttackPower = tmp.MeleeAttackPower;
dst.MissileAttackPower = tmp.MissileAttackPower;
@ -1399,6 +1452,8 @@ internal sealed class LegacyDashboardRenderer
dst.CrossbowArcVelocity = tmp.CrossbowArcVelocity;
dst.AtlatlArcVelocity = tmp.AtlatlArcVelocity;
dst.MagicArcVelocity = tmp.MagicArcVelocity;
dst.MissileArcClearance = tmp.MissileArcClearance >= 0f ? Math.Min(tmp.MissileArcClearance, 3f) : 0.5f;
dst.LosDebugLog = tmp.LosDebugLog;
dst.EnableFPSLimit = tmp.EnableFPSLimit;
dst.TargetFPSFocused = tmp.TargetFPSFocused;
dst.TargetFPSBackground = tmp.TargetFPSBackground;
@ -1453,6 +1508,15 @@ internal sealed class LegacyDashboardRenderer
dst.EnableManaTapping = tmp.EnableManaTapping;
dst.ManaTapMinMana = tmp.ManaTapMinMana;
dst.ManaStoneKeepCount = tmp.ManaStoneKeepCount;
dst.AutoVendorEnabled = tmp.AutoVendorEnabled;
dst.AutoVendorEnableBuying = tmp.AutoVendorEnableBuying;
dst.AutoVendorEnableSelling = tmp.AutoVendorEnableSelling;
dst.AutoVendorTestMode = tmp.AutoVendorTestMode;
dst.AutoVendorThink = tmp.AutoVendorThink;
dst.AutoVendorShowMerchantInfo = tmp.AutoVendorShowMerchantInfo;
dst.AutoVendorOnlyFromMainPack = tmp.AutoVendorOnlyFromMainPack;
dst.AutoVendorTries = tmp.AutoVendorTries;
dst.AutoVendorTriesTime = tmp.AutoVendorTriesTime;
dst.MetaDebug = tmp.MetaDebug;
dst.StartMacroOnLogin = tmp.StartMacroOnLogin;
dst.PatrolOnLogin = tmp.PatrolOnLogin;
@ -2542,6 +2606,9 @@ internal sealed class LegacyDashboardRenderer
string.IsNullOrEmpty(_settings.CurrentNavPath) ? "None" : Path.GetFileNameWithoutExtension(_settings.CurrentNavPath)); sb.Append(',');
AppendString(sb, "currentLootName",
string.IsNullOrEmpty(_settings.CurrentLootPath) ? "None" : Path.GetFileNameWithoutExtension(_settings.CurrentLootPath)); sb.Append(',');
// Full paths for the dashboard's Edit (✎) button, which opens the Loot Editor.
AppendString(sb, "currentLootPath", _settings.CurrentLootPath ?? string.Empty); sb.Append(',');
AppendString(sb, "vendorProfilePath", _vendorProfilePath?.Invoke() ?? string.Empty); sb.Append(',');
AppendString(sb, "currentMetaName",
string.IsNullOrEmpty(_settings.CurrentMetaPath) ? "None" : Path.GetFileNameWithoutExtension(_settings.CurrentMetaPath)); sb.Append(',');
AppendInt(sb, "selectedNavIdx", _selectedNavIdx); sb.Append(',');

View file

@ -40,6 +40,7 @@ public sealed class LegacyUiSettings
public float NavDeadZone = 4f;
public float NavSweepMult = 2.5f;
public float NavLookaheadYards = 4.0f; // distance to start blending the aim point toward the next waypoint (0 = off)
public float NavShortcutYards = 1.0f; // on arrival, skip waypoints only while the straight run to a later one stays within this of every skipped point (0 = visit every point)
public float NavTurnRateDegPerSec = 270f; // mode 0 (heading servo) max turn rate
public float NavTier1TurnSpeed = 3.0f; // mode 1 (CM_Movement) DoMovement turn-command speed (magnitude of CMotionInterp turn_speed; 1.0 = native keyboard rate)
public float PostPortalDelaySec = 4.0f;
@ -149,6 +150,13 @@ public sealed class LegacyUiSettings
/// landing.
/// </summary>
public int RebuffSecondsRemaining = 300;
/// <summary>
/// When a buff falls under RebuffSecondsRemaining, also refresh every other buff
/// with less than this many seconds left, so they land together instead of each
/// interrupting the fight on its own. Buffs with more time are left alone. At or
/// below RebuffSecondsRemaining only the expiring buff is recast.
/// </summary>
public int RebuffTopOffSecondsRemaining = 1200;
public bool StartMacroOnLogin;
public bool PatrolOnLogin;
@ -225,6 +233,20 @@ public sealed class LegacyUiSettings
public float CrossbowArcVelocity = 40.0f;
public float AtlatlArcVelocity = 22.0f;
public float MagicArcVelocity = 25.0f;
/// <summary>
/// Extra headroom (meters) a missile's arc must have at mid-flight for LoS to pass,
/// on top of the modelled flight path (launch speed above, AC gravity 9.8). Covers
/// what the model can't know exactly: launch height, the real launch speed, the
/// projectile's size. Raise it if shots still hit ceilings, lower it if targets
/// under a ceiling the arrows clear are skipped. Only used with UseArcs.
/// </summary>
public float MissileArcClearance = 0.5f;
/// <summary>
/// Log each in-range target's LoS verdict (straight line / arc, how high the arc
/// rises, where it hits) and the missile weapon's known launch speed. For tuning
/// the arc settings; off by default (a few lines a second in a crowd).
/// </summary>
public bool LosDebugLog;
public bool EnableFPSLimit = true;
public int TargetFPSFocused = 60;
@ -256,6 +278,23 @@ public sealed class LegacyUiSettings
public int ManaTapMinMana = 2500;
public int ManaStoneKeepCount = 5;
// ── AutoVendor (UtilityBelt AutoVendor; /ub autovendor, /ub vendor) ────────
/// <summary>Run AutoVendor when a vendor opens (and allow /ub autovendor). UB defaults this on;
/// RynthAi defaults it off because the plugin auto-updates and selling can't be undone.</summary>
public bool AutoVendorEnabled = false;
public bool AutoVendorEnableBuying = true;
public bool AutoVendorEnableSelling = true;
/// <summary>Only print what would be bought and sold. On by default in RynthAi (UB: off).</summary>
public bool AutoVendorTestMode = true;
/// <summary>Send "AutoVendor finished: ..." (and fatal/failed lines) as a /tell to yourself, for metas.</summary>
public bool AutoVendorThink = false;
public bool AutoVendorShowMerchantInfo = true;
public bool AutoVendorOnlyFromMainPack = false;
/// <summary>Attempts to open a vendor on /ub vendor open[p].</summary>
public int AutoVendorTries = 4;
/// <summary>Milliseconds between /ub vendor open attempts.</summary>
public int AutoVendorTriesTime = 5000;
public List<MonsterRule> MonsterRules { get; set; } = new();
public List<ItemRule> ItemRules { get; set; } = new();
public List<ConsumableRule> ConsumableRules { get; set; } = new();
@ -372,7 +411,7 @@ public sealed class LegacyUiSettings
public readonly string[] AdvancedTabs =
{
"Display", "UI", "Misc", "Recharge", "Melee Combat", "Spell Combat",
"Ranges", "Navigation", "Buffing", "Crafting", "Looting"
"Ranges", "Navigation", "Buffing", "Crafting", "Looting", "Vendoring"
};
[JsonIgnore]
@ -571,9 +610,13 @@ public sealed class SettingsBridgePayload
public float CrossbowArcVelocity { get; set; }
public float AtlatlArcVelocity { get; set; }
public float MagicArcVelocity { get; set; }
public float MissileArcClearance { get; set; } = 0.5f; // absent in older payloads
public bool LosDebugLog { get; set; }
public int BlacklistAttempts { get; set; }
public int BlacklistTimeoutSec { get; set; }
public int BlacklistCastSettleMs { get; set; }
// -1 = absent from the payload: the overlay's Settings panel didn't send it, and
// applying the missing 0 made every panel click zero the setting (2026-09-27).
public int BlacklistCastSettleMs { get; set; } = -1;
public int TargetNoProgressTimeoutSec { get; set; }
public int GiveQueueIntervalMs { get; set; }
@ -614,7 +657,7 @@ public sealed class SettingsBridgePayload
// Ranges
public int MonsterRange { get; set; }
public int MonsterDisengageRange { get; set; }
public int MonsterDisengageRange { get; set; } = -1; // -1 = absent, see BlacklistCastSettleMs
public int RingRange { get; set; }
public int ApproachRange { get; set; }
public double CorpseApproachRangeMax { get; set; }
@ -637,6 +680,7 @@ public sealed class SettingsBridgePayload
public float NavDeadZone { get; set; }
public float NavSweepMult { get; set; }
public float NavLookaheadYards { get; set; }
public float NavShortcutYards { get; set; }
public float NavTurnRateDegPerSec { get; set; }
public float NavTier1TurnSpeed { get; set; }
public float PostPortalDelaySec { get; set; }
@ -651,6 +695,7 @@ public sealed class SettingsBridgePayload
public bool EnableBuffing { get; set; }
public bool RebuffWhenIdle { get; set; }
public int RebuffSecondsRemaining { get; set; }
public int RebuffTopOffSecondsRemaining { get; set; } = 1200; // absent in older files
public int BuffMinSkillLevelTier1 { get; set; }
public int BuffMinSkillLevelTier2 { get; set; }
public int BuffMinSkillLevelTier3 { get; set; }
@ -691,6 +736,17 @@ public sealed class SettingsBridgePayload
public int SalvageSalvageDelayMs { get; set; }
public int SalvageResultDelayFirstMs { get; set; }
public int SalvageResultDelayFastMs { get; set; }
// AutoVendor. Nullable so a settings panel that doesn't know these fields yet
// leaves the character's values alone instead of resetting them.
public bool? AutoVendorEnabled { get; set; }
public bool? AutoVendorEnableBuying { get; set; }
public bool? AutoVendorEnableSelling { get; set; }
public bool? AutoVendorTestMode { get; set; }
public bool? AutoVendorThink { get; set; }
public bool? AutoVendorShowMerchantInfo { get; set; }
public bool? AutoVendorOnlyFromMainPack { get; set; }
public int? AutoVendorTries { get; set; }
public int? AutoVendorTriesTime { get; set; }
}
public enum MetaConditionType