RynthSuite as of 2026-12-02 (internal 152e13d): release 2026.12.1.1
This commit is contained in:
parent
e8e4228d15
commit
6b5a9c7e99
65 changed files with 3920 additions and 237 deletions
|
|
@ -17,7 +17,7 @@ namespace RynthCore.Plugin.RynthAi;
|
|||
/// names and syntax read from UtilityBelt.dll's CommandPattern/Usage attributes):
|
||||
/// delay, count, date/dateutc, id, pos, vitae, portal/portalp, playsound,
|
||||
/// setmotion/getmotion/clearmotion, autostack, autocram, opt, help, simplejump,
|
||||
/// dumpskills, quests, translateroute.
|
||||
/// dumpskills, quests, translateroute. equip and autosalvage: UtilityBeltInventoryCommands.cs.
|
||||
/// </summary>
|
||||
public sealed partial class RynthAiPlugin
|
||||
{
|
||||
|
|
@ -29,6 +29,7 @@ public sealed partial class RynthAiPlugin
|
|||
/// <summary>Runs /ub delay commands that are due. Called every tick.</summary>
|
||||
private void TickDelayedCommands()
|
||||
{
|
||||
TickUbInventoryJobs(); // /ub equip load|test, /ub autosalvage
|
||||
// Out of world, OnChatBarEnter ignores the line and it went raw to AC's chat
|
||||
// parser at character select. TeardownSession empties the queue at logout.
|
||||
if (_delayedCommands.Count == 0 || !_loginComplete) return;
|
||||
|
|
@ -100,6 +101,11 @@ public sealed partial class RynthAiPlugin
|
|||
case "dumpskills": UbDumpSkills(); return true;
|
||||
case "quests": UbQuests(args); return true;
|
||||
case "translateroute": UbTranslateRoute(args); return true;
|
||||
// Equipment profiles and AutoSalvage by a loot profile (UtilityBeltInventoryCommands.cs,
|
||||
// 2026-12-01 command audit): equip went on to /mt equip ("Item not found: load ..."),
|
||||
// autosalvage was accepted and ignored. "/ub equip <item name>" still wields by name (/mt equip).
|
||||
case "equip" when UbEquipOwns(args): UbEquip(args); return true;
|
||||
case "autosalvage": UbAutoSalvage(args); return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -149,8 +155,16 @@ public sealed partial class RynthAiPlugin
|
|||
}
|
||||
case "profile":
|
||||
{
|
||||
// Read for the count only: TryLoadLootProfile also made it the profile looting uses, so a meta
|
||||
// counting against another profile switched what it looted (2026-12-01 command audit).
|
||||
string path = ResolveLootProfilePath(what);
|
||||
if (path.Length == 0 || !TryLoadLootProfile(path, out VTankLootProfile profile, out _)) { ReplyFail($"[RynthAi] count: loot profile not found: {what}"); return; }
|
||||
VTankLootProfile profile;
|
||||
try
|
||||
{
|
||||
if (path.Length == 0 || !File.Exists(path)) { ReplyFail($"[RynthAi] count: loot profile not found: {what}"); return; }
|
||||
profile = VTankLootParser.Load(path);
|
||||
}
|
||||
catch (Exception ex) { ReplyFail($"[RynthAi] count: couldn't read {Path.GetFileName(path)}: {ex.Message}"); return; }
|
||||
var ctx = new VTankLootContext(Host, _playerId) { Cache = _objectCache };
|
||||
int n = 0;
|
||||
foreach (var wo in inv)
|
||||
|
|
@ -307,7 +321,9 @@ public sealed partial class RynthAiPlugin
|
|||
case "toggle" when w.Length >= 2:
|
||||
foreach (string name in w.Skip(1))
|
||||
{
|
||||
if (!map.TryGetValue(name, out var tg)) { ReplyFail($"[RynthAi] No option '{name}'."); continue; }
|
||||
// UtilityBelt's names (InventoryManager.AutoCram ...) through the /ub opt map (2026-12-01 command audit).
|
||||
string key = MtOptionMap.TryGetValue(name, out string? mapped) ? mapped : name;
|
||||
if (!map.TryGetValue(key, out var tg)) { ReplyFail($"[RynthAi] No option '{name}'."); continue; }
|
||||
tg.Set(tg.Get() is "0" or "" or "False" ? "1" : "0");
|
||||
ReplyOk($"[RynthAi] {name} = {tg.Get()}");
|
||||
}
|
||||
|
|
@ -323,7 +339,7 @@ public sealed partial class RynthAiPlugin
|
|||
{
|
||||
ChatLine("[RynthAi] /ub commands: use[i][l][p], give[p], ig[p], select, face, fellow, equip, combatstate, close, quit, logout, " +
|
||||
"follow[p], mexec, myquests, list[g|p]vars, propertydump, jump[swzxc], simplejump, closestportal, portal[p], " +
|
||||
"autovendor, vendor, autotrade, autostack, autocram, delay, count, date[utc], id, pos, vitae, playsound, " +
|
||||
"autovendor, vendor, autotrade, autostack, autocram, autosalvage, delay, count, date[utc], id, pos, vitae, playsound, " +
|
||||
"setmotion, getmotion, clearmotion, opt, dumpskills, quests, translateroute, clearbugged.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue