feat: port SK test branch (2026.10.18.24) onto sk
Squash of test/hotbuild-2026-10-16 as merged onto aelrynth main 2026.10.17.1, matching the 2026.10.18.24 test installer. The test branch wins where both changed the same lines; sk-only changes kept; duplicate features cut to the test branch's copy. RynthAi HandWrittenVersion stays 0.5.0-legacy-ui on sk. Highlights: RynthOracle 0.6.0 (Legendary, Markers, Dynamic Stamps and Temple guardians merged into the Quests list, RynthNav Go to), RynthILT 0.2.20 (ub-IT auto-chunk rules, rating level, RynthILT.Data v3), RynthAi ub-IT /ub and VT/MT meta compatibility and the loot attribute checklist, RynthNav destination alternatives. Changelog/2026-10-18-sk-port-test-branch-2026.10.18.24.md.
This commit is contained in:
parent
23efcfee87
commit
7797901d69
287 changed files with 22602 additions and 1090 deletions
152
Plugins/RynthCore.Plugin.RynthOracle/Data/DynamicStamps.cs
Normal file
152
Plugins/RynthCore.Plugin.RynthOracle/Data/DynamicStamps.cs
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Data;
|
||||
|
||||
/// <summary>
|
||||
/// One Infinite Leaftide Dynamic Stamp (dynstamps.csv): an NPC hand-in that puts a
|
||||
/// "Dynamic_N_..." quest flag on the character. List from the players' "ExtraDyn" sheet
|
||||
/// (10.13.2026, one sheet per area, the wiki's Dynamic Stamps page); NPCs that give no stamp
|
||||
/// are left out. A stamp is a one-time flag: having it in /myquests means it's done.
|
||||
/// </summary>
|
||||
internal sealed class DynamicStamp
|
||||
{
|
||||
public string Area = "";
|
||||
/// <summary>Where in the area (a town, a dungeon, coordinates), or "".</summary>
|
||||
public string Place = "";
|
||||
public string Npc = "";
|
||||
/// <summary>What the NPC gives back (the sheet's "X gives you Y"), or "".</summary>
|
||||
public string Reward = "";
|
||||
/// <summary>The quest flag, lower case (as QuestFlagStore keys it).</summary>
|
||||
public string Stamp = "";
|
||||
public string Note = "";
|
||||
|
||||
/// <summary>The NPC, else the place (a few sheet rows only name the spot).</summary>
|
||||
public string Label => Npc.Length > 0 ? Npc : Place;
|
||||
|
||||
/// <summary>
|
||||
/// The flag this character has for the stamp, or null. The sheet has a few stamps copied
|
||||
/// without their closing "!" or cut short: those also match with "!" added and, when at
|
||||
/// least <see cref="MinPrefixLength"/> long, the one Dynamic flag on the character starting
|
||||
/// with them.
|
||||
/// </summary>
|
||||
public string? MatchedFlag(QuestFlagStore flags)
|
||||
{
|
||||
if (flags.TryGet(Stamp, out _)) return Stamp;
|
||||
if (Stamp.EndsWith('!')) return null;
|
||||
if (flags.TryGet(Stamp + "!", out _)) return Stamp + "!";
|
||||
if (Stamp.Length < MinPrefixLength) return null;
|
||||
string? only = null;
|
||||
foreach (string key in flags.Flags.Keys)
|
||||
{
|
||||
if (!key.StartsWith(Stamp, StringComparison.OrdinalIgnoreCase)) continue;
|
||||
if (only != null) return null; // more than one: can't tell which
|
||||
only = key;
|
||||
}
|
||||
return only;
|
||||
}
|
||||
|
||||
public bool Have(QuestFlagStore flags) => MatchedFlag(flags) != null;
|
||||
|
||||
// Sheet areas that are groupings, not places on the map.
|
||||
private static readonly HashSet<string> NotPlaces = new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
"Looking Around", "Odd Stamps", "Odd Stamps 2",
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Where RynthNav should go for this stamp, best first (RynthNav takes the first that is on its
|
||||
/// map): the coordinates in the note or the place, the place and its parts ("Mhoire Castle -
|
||||
/// Great Hall" also tries "Mhoire Castle"), the NPC, then the area. Empty when there is nothing.
|
||||
/// </summary>
|
||||
public List<string> NavCandidates()
|
||||
{
|
||||
var list = new List<string>();
|
||||
void Add(string s)
|
||||
{
|
||||
s = s.Trim().Trim('.', ',', ';', ':').Trim();
|
||||
if (s.Length >= 4 && !char.IsDigit(s[0]) && !list.Contains(s, StringComparer.OrdinalIgnoreCase)) list.Add(s);
|
||||
}
|
||||
|
||||
foreach (string text in new[] { Note, Place })
|
||||
if (NavTargets.FirstCoords(text) is string c && !list.Contains(c)) list.Add(c);
|
||||
|
||||
string place = NavTargets.WithoutCoords(Place);
|
||||
place = System.Text.RegularExpressions.Regex.Replace(place, @"\b(at|in the|nearby)\b", " ", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
|
||||
place = System.Text.RegularExpressions.Regex.Replace(place, @"\s+", " ").Trim();
|
||||
Add(place);
|
||||
foreach (string part in place.Split(new[] { " - ", " / ", "(", ")" }, StringSplitOptions.RemoveEmptyEntries))
|
||||
Add(part);
|
||||
Add(Npc);
|
||||
if (!NotPlaces.Contains(Area)) Add(Area);
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>A truncated stamp shorter than this is matched exactly only (too many flags share a short stem).</summary>
|
||||
public const int MinPrefixLength = 14;
|
||||
}
|
||||
|
||||
internal static class DynamicStampList
|
||||
{
|
||||
/// <summary>Dynamic stamp quest flags start with this (lower case).</summary>
|
||||
public const string FlagPrefix = "dynamic_";
|
||||
|
||||
public static List<DynamicStamp> All { get; } = Load();
|
||||
|
||||
/// <summary>The areas in list order (Facility Hub, Looking Around, ...).</summary>
|
||||
public static List<string> Areas { get; } = BuildAreas();
|
||||
|
||||
/// <summary>
|
||||
/// Dynamic stamps on this character that the list doesn't have (new or unlisted NPCs), so the
|
||||
/// tab can show them and the count isn't only what the sheet knows.
|
||||
/// </summary>
|
||||
public static List<string> Unlisted(QuestFlagStore flags)
|
||||
{
|
||||
var matched = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||
foreach (DynamicStamp s in All)
|
||||
if (s.MatchedFlag(flags) is string f) matched.Add(f);
|
||||
var extra = new List<string>();
|
||||
foreach (string key in flags.Flags.Keys)
|
||||
if (key.StartsWith(FlagPrefix, StringComparison.OrdinalIgnoreCase) && !matched.Contains(key))
|
||||
extra.Add(key);
|
||||
extra.Sort(StringComparer.OrdinalIgnoreCase);
|
||||
return extra;
|
||||
}
|
||||
|
||||
private static List<DynamicStamp> Load()
|
||||
{
|
||||
var list = new List<DynamicStamp>();
|
||||
using StreamReader r = Csv.OpenEmbedded("dynstamps.csv");
|
||||
Dictionary<string, int> col = Csv.MapColumns(r.ReadLine() ?? "");
|
||||
int cArea = Csv.Column(col, "Area"), cPlace = Csv.Column(col, "Place"), cNpc = Csv.Column(col, "Npc"),
|
||||
cReward = Csv.Column(col, "Reward"), cStamp = Csv.Column(col, "Stamp"), cNote = Csv.Column(col, "Note");
|
||||
var seen = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||
while (r.ReadLine() is string line)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(line)) continue;
|
||||
string[] f = Csv.ParseLine(line);
|
||||
string stamp = Csv.Field(f, cStamp).Trim().ToLowerInvariant();
|
||||
if (!stamp.StartsWith(FlagPrefix, StringComparison.Ordinal) || !seen.Add(stamp)) continue;
|
||||
list.Add(new DynamicStamp
|
||||
{
|
||||
Area = Csv.Field(f, cArea),
|
||||
Place = Csv.Field(f, cPlace),
|
||||
Npc = Csv.Field(f, cNpc),
|
||||
Reward = Csv.Field(f, cReward),
|
||||
Stamp = stamp,
|
||||
Note = Csv.Field(f, cNote),
|
||||
});
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
private static List<string> BuildAreas()
|
||||
{
|
||||
var areas = new List<string>();
|
||||
foreach (DynamicStamp s in All)
|
||||
if (!areas.Contains(s.Area)) areas.Add(s.Area);
|
||||
return areas;
|
||||
}
|
||||
}
|
||||
117
Plugins/RynthCore.Plugin.RynthOracle/Data/Legendary.cs
Normal file
117
Plugins/RynthCore.Plugin.RynthOracle/Data/Legendary.cs
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Data;
|
||||
|
||||
/// <summary>
|
||||
/// One Legendary Key quest (legendary.csv; list and notes from the "Arwic John Route" sheet).
|
||||
/// The quest's own /myquests flags say whether it was ever done and when it can be run again:
|
||||
/// the first flag is its completion stamp, any others only add their repeat timers (a key pickup
|
||||
/// timer, say). John in Arwic counts 30 different ones (legendaryquestcounter_0913).
|
||||
/// </summary>
|
||||
internal sealed class LegendaryQuest
|
||||
{
|
||||
public string Group = "";
|
||||
public string Name = "";
|
||||
/// <summary>The short name players use ("RTW", "HMD"), or "".</summary>
|
||||
public string CommonName = "";
|
||||
public int Luminance;
|
||||
public string[] Flags = Array.Empty<string>();
|
||||
public string Url = "";
|
||||
public string Note = "";
|
||||
public string Video = "";
|
||||
|
||||
/// <summary>The short name when the sheet has one, else the quest name.</summary>
|
||||
public string Label => CommonName.Length > 0 ? $"{Name} ({CommonName})" : Name;
|
||||
|
||||
/// <summary>Done at least once: any of its flags is on this character.</summary>
|
||||
public bool Have(QuestFlagStore flags)
|
||||
{
|
||||
foreach (string f in Flags)
|
||||
if (flags.TryGet(f, out _)) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Time until it can be run again: the longest wait among its flags that have a repeat timer;
|
||||
/// zero when every timer is up (or it has none). Null when it was never done.
|
||||
/// </summary>
|
||||
public TimeSpan? TimeLeft(QuestFlagStore flags, DateTime utcNow)
|
||||
{
|
||||
bool any = false;
|
||||
TimeSpan left = TimeSpan.Zero;
|
||||
foreach (string f in Flags)
|
||||
{
|
||||
if (!flags.TryGet(f, out QuestFlag q)) continue;
|
||||
any = true;
|
||||
if (q.RepeatTime <= TimeSpan.Zero || q.CompletedOnUtc == DateTime.MinValue) continue;
|
||||
TimeSpan d = q.NextAvailableTime(utcNow);
|
||||
if (d > left) left = d;
|
||||
}
|
||||
return any ? left : null;
|
||||
}
|
||||
|
||||
/// <summary>"missing", "ready" or the time left ("14h 3m").</summary>
|
||||
public string Status(QuestFlagStore flags, DateTime utcNow)
|
||||
{
|
||||
TimeSpan? left = TimeLeft(flags, utcNow);
|
||||
if (left == null) return "missing";
|
||||
return left.Value.TotalSeconds > 0 ? TimeText.Friendly(left.Value) : "ready";
|
||||
}
|
||||
}
|
||||
|
||||
internal static class LegendaryList
|
||||
{
|
||||
/// <summary>John's count of different Legendary Key quests done (needs 30).</summary>
|
||||
public const string CounterFlag = "legendaryquestcounter_0913";
|
||||
/// <summary>Legendary Key quests John asks for.</summary>
|
||||
public const int JohnTarget = 30;
|
||||
|
||||
public static List<LegendaryQuest> All { get; } = Load();
|
||||
|
||||
/// <summary>The groups in list order (Graveyard, Rynthid, ...).</summary>
|
||||
public static List<string> Groups { get; } = BuildGroups();
|
||||
|
||||
/// <summary>John's counter for this character; null when /myquests doesn't have it (not started).</summary>
|
||||
public static int? JohnCount(QuestFlagStore flags) =>
|
||||
flags.TryGet(CounterFlag, out QuestFlag q) ? q.Solves : null;
|
||||
|
||||
private static List<LegendaryQuest> Load()
|
||||
{
|
||||
var list = new List<LegendaryQuest>();
|
||||
using StreamReader r = Csv.OpenEmbedded("legendary.csv");
|
||||
Dictionary<string, int> col = Csv.MapColumns(r.ReadLine() ?? "");
|
||||
int cGroup = Csv.Column(col, "Group"), cName = Csv.Column(col, "Quest"), cCommon = Csv.Column(col, "CommonName"),
|
||||
cLum = Csv.Column(col, "Luminance"), cFlags = Csv.Column(col, "Flags"), cUrl = Csv.Column(col, "Url"),
|
||||
cNote = Csv.Column(col, "Note"), cVideo = Csv.Column(col, "Video");
|
||||
while (r.ReadLine() is string line)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(line)) continue;
|
||||
string[] f = Csv.ParseLine(line);
|
||||
string name = Csv.Field(f, cName);
|
||||
if (name.Length == 0) continue;
|
||||
list.Add(new LegendaryQuest
|
||||
{
|
||||
Group = Csv.Field(f, cGroup),
|
||||
Name = name,
|
||||
CommonName = Csv.Field(f, cCommon),
|
||||
Luminance = int.TryParse(Csv.Field(f, cLum), out int lum) ? lum : 0,
|
||||
Flags = Csv.Field(f, cFlags).ToLowerInvariant()
|
||||
.Split(';', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries),
|
||||
Url = Csv.Field(f, cUrl),
|
||||
Note = Csv.Field(f, cNote),
|
||||
Video = Csv.Field(f, cVideo),
|
||||
});
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
private static List<string> BuildGroups()
|
||||
{
|
||||
var groups = new List<string>();
|
||||
foreach (LegendaryQuest q in All)
|
||||
if (!groups.Contains(q.Group)) groups.Add(q.Group);
|
||||
return groups;
|
||||
}
|
||||
}
|
||||
86
Plugins/RynthCore.Plugin.RynthOracle/Data/NavTargets.cs
Normal file
86
Plugins/RynthCore.Plugin.RynthOracle/Data/NavTargets.cs
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Coordinates in Oracle's text (quest walkthroughs, Dynamic Stamp notes) as RynthNav targets.
|
||||
/// The lists write them every which way: "59.6S 88.0W", "8.8S, 53.1E", "42.6n 62.4e".
|
||||
/// </summary>
|
||||
internal static class NavTargets
|
||||
{
|
||||
private static readonly Regex CoordsRx = new(
|
||||
@"(?<ns>\d+(?:\.\d+)?)\s*(?<nsc>[NnSs])[\s,]*(?<ew>\d+(?:\.\d+)?)\s*(?<ewc>[EeWw])\b",
|
||||
RegexOptions.CultureInvariant);
|
||||
|
||||
/// <summary>One place to go: what the text calls it (may be empty) and its coordinates ("59.6S, 88.0W").</summary>
|
||||
internal readonly record struct Stop(string Label, string Coords)
|
||||
{
|
||||
/// <summary>The RynthNav target: the coordinates, then the label (RynthNav uses an Atlas
|
||||
/// place of that name there, e.g. a dungeon's entrance).</summary>
|
||||
public string Target => Label.Length > 0 ? Coords + " " + Label : Coords;
|
||||
|
||||
/// <summary>How a picker shows it: "Kill Mukkir Progenitor - 86.5N, 57.3E".</summary>
|
||||
public string Display => Label.Length > 0 ? Label + " - " + Coords : Coords;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A named place with no coordinates (an exploration marker's location): its name is the whole
|
||||
/// RynthNav target, and RynthNav finds it on its Atlas.
|
||||
/// </summary>
|
||||
public static Stop Place(string name) => new("", name.Trim());
|
||||
|
||||
/// <summary>The first coordinates in <paramref name="text"/>, written "8.8S, 53.1E", or null.</summary>
|
||||
public static string? FirstCoords(string? text)
|
||||
{
|
||||
if (string.IsNullOrEmpty(text)) return null;
|
||||
Match m = CoordsRx.Match(text);
|
||||
return m.Success ? Format(m) : null;
|
||||
}
|
||||
|
||||
/// <summary><paramref name="text"/> with its coordinates taken out.</summary>
|
||||
public static string WithoutCoords(string? text) => string.IsNullOrEmpty(text) ? "" : CoordsRx.Replace(text, " ");
|
||||
|
||||
/// <summary>
|
||||
/// Every coordinate pair in <paramref name="text"/>, in order, each labelled with the words just
|
||||
/// before it in its step (walkthroughs separate steps with " - "): "Speak with Hoshar ibn Jalaq
|
||||
/// 59.6S 88.0W - Kill Mukkir Progenitor 86.5N 57.3E" gives two stops. The same coordinates
|
||||
/// twice are one stop.
|
||||
/// </summary>
|
||||
public static List<Stop> Stops(string? text)
|
||||
{
|
||||
var stops = new List<Stop>();
|
||||
if (string.IsNullOrEmpty(text)) return stops;
|
||||
foreach (Match m in CoordsRx.Matches(text))
|
||||
{
|
||||
string coords = Format(m);
|
||||
if (stops.Exists(s => s.Coords == coords)) continue;
|
||||
stops.Add(new Stop(LabelBefore(text, m.Index), coords));
|
||||
}
|
||||
return stops;
|
||||
}
|
||||
|
||||
/// <summary>The words between the previous step break (" - ", ". ", "; ", "|") or coordinates and <paramref name="at"/>.</summary>
|
||||
private static string LabelBefore(string text, int at)
|
||||
{
|
||||
int from = 0;
|
||||
foreach (string sep in new[] { " - ", ". ", "; ", "|", "(" })
|
||||
{
|
||||
int i = text.LastIndexOf(sep, Math.Max(0, at - 1), StringComparison.Ordinal);
|
||||
if (i >= 0 && i + sep.Length <= at) from = Math.Max(from, i + sep.Length);
|
||||
}
|
||||
// Not back past the previous coordinates ("Cragstone 26.0N 47.0E Speak with ...").
|
||||
foreach (Match m in CoordsRx.Matches(text.Substring(0, at)))
|
||||
from = Math.Max(from, m.Index + m.Length);
|
||||
string label = text.Substring(from, at - from).Trim(' ', ',', ':', '-', '.', '(', ')');
|
||||
// "at 42.1N ..." and "Meet at 42.1N ...": the little words around the coordinates aren't the place.
|
||||
label = Regex.Replace(label, @"^(at|in|near|to)\s+|\s+(at|in|near|to)$", "", RegexOptions.IgnoreCase).Trim();
|
||||
return label.Length > 60 ? label.Substring(0, 60).TrimEnd() : label;
|
||||
}
|
||||
|
||||
private static string Format(Match m) =>
|
||||
string.Create(CultureInfo.InvariantCulture,
|
||||
$"{m.Groups["ns"].Value}{char.ToUpperInvariant(m.Groups["nsc"].Value[0])}, {m.Groups["ew"].Value}{char.ToUpperInvariant(m.Groups["ewc"].Value[0])}");
|
||||
}
|
||||
|
|
@ -33,7 +33,7 @@ internal sealed class QuestFlag
|
|||
}
|
||||
|
||||
/// <summary>What one chat line is, as far as /myquests goes.</summary>
|
||||
internal enum MyQuestsLine { None, Quest, Empty, Disabled }
|
||||
internal enum MyQuestsLine { None, Quest, Empty, Disabled, Throttled }
|
||||
|
||||
/// <summary>
|
||||
/// The character's quest flags, read from the server's /myquests reply (ACE: one Broadcast line
|
||||
|
|
@ -55,10 +55,21 @@ internal sealed class QuestFlagStore
|
|||
|
||||
public const string EmptyText = "Quest list is empty.";
|
||||
public const string DisabledText = "The command \"myquests\" is not currently enabled on this server.";
|
||||
/// <summary>ACECustom's per-session throttle reply ("... may only be run once every 60 seconds.").</summary>
|
||||
public const string ThrottledText = "[MyQuests] This command may only be run once every";
|
||||
|
||||
private const int QuietMs = 1500; // a reply is complete once no line came for this long
|
||||
private const int RequestTimeoutMs = 10_000;
|
||||
private const int MinRequestGapMs = 5_000;
|
||||
/// <summary>ACECustom answers one /myquests a minute per session (whoever sent the last one).</summary>
|
||||
private const int ServerThrottleMs = 60_000;
|
||||
/// <summary>
|
||||
/// A reply this much smaller than the flags already held is taken as cut short (chat lines
|
||||
/// dropped before they reached the plugin), so it updates the flags instead of replacing them.
|
||||
/// </summary>
|
||||
private const double PartialReplyRatio = 0.8;
|
||||
/// <summary>Below this many flags held, a smaller reply always replaces (nothing much to lose).</summary>
|
||||
private const int PartialReplyMinHeld = 20;
|
||||
|
||||
public Dictionary<string, QuestFlag> Flags { get; private set; } = new(StringComparer.OrdinalIgnoreCase);
|
||||
private Dictionary<string, QuestFlag>? _pending;
|
||||
|
|
@ -66,6 +77,15 @@ internal sealed class QuestFlagStore
|
|||
|
||||
public DateTime LastReadUtc { get; private set; } = DateTime.MinValue;
|
||||
public bool ServerDisabled { get; private set; }
|
||||
/// <summary>The server refused the last /myquests (its once-a-minute limit) until this tick.</summary>
|
||||
public long ThrottledUntilMs { get; private set; } = long.MinValue / 2;
|
||||
/// <summary>This server has shown its throttle line this session, so every reply starts its minute.</summary>
|
||||
private bool _serverThrottles;
|
||||
/// <summary>
|
||||
/// Set when the last reply looked cut short and was merged into the held flags (lines in the
|
||||
/// reply, flags held before it). The plugin logs it once and clears it.
|
||||
/// </summary>
|
||||
public (int Got, int Had)? LastPartialReply { get; set; }
|
||||
/// <summary>Bumps whenever the flags change (views rebuild their caches on it).</summary>
|
||||
public int Revision { get; private set; }
|
||||
|
||||
|
|
@ -77,10 +97,16 @@ internal sealed class QuestFlagStore
|
|||
|
||||
public bool Loading => _pending != null || AwaitingOurs;
|
||||
|
||||
/// <summary>Seconds left on the server's /myquests limit (0 when a request would be answered).</summary>
|
||||
public int ThrottleSecondsLeft(long nowMs) =>
|
||||
nowMs < ThrottledUntilMs ? (int)((ThrottledUntilMs - nowMs + 999) / 1000) : 0;
|
||||
|
||||
/// <summary>Sends /myquests unless one went out moments ago. Returns false if nothing was sent.</summary>
|
||||
public bool Request(Func<string, bool> invokeChat, long nowMs)
|
||||
{
|
||||
if (nowMs - _requestedMs < MinRequestGapMs) return false;
|
||||
// The server would only answer with its throttle line; don't spend the request.
|
||||
if (nowMs < ThrottledUntilMs) return false;
|
||||
_requestedMs = nowMs;
|
||||
Interlocked.Increment(ref _selfSends);
|
||||
if (!invokeChat("/myquests"))
|
||||
|
|
@ -120,6 +146,16 @@ internal sealed class QuestFlagStore
|
|||
Revision++;
|
||||
return MyQuestsLine.Disabled;
|
||||
}
|
||||
if (line.Contains(ThrottledText, StringComparison.Ordinal))
|
||||
{
|
||||
// No reply is coming: stop "Reading..." and keep the flags already held. The minute
|
||||
// really started at the last answered request; a full minute from now is the safe side.
|
||||
_serverThrottles = true;
|
||||
ThrottledUntilMs = nowMs + ServerThrottleMs;
|
||||
AwaitingOurs = false;
|
||||
Revision++;
|
||||
return MyQuestsLine.Throttled;
|
||||
}
|
||||
if (line.IndexOf(" solves (", StringComparison.Ordinal) < 0) return MyQuestsLine.None;
|
||||
|
||||
QuestFlag? flag = Parse(line);
|
||||
|
|
@ -139,9 +175,27 @@ internal sealed class QuestFlagStore
|
|||
|
||||
if (_pending != null && nowMs - _lastLineMs >= QuietMs)
|
||||
{
|
||||
Flags = _pending;
|
||||
Dictionary<string, QuestFlag> reply = _pending;
|
||||
_pending = null;
|
||||
int had = Flags.Count;
|
||||
// A full reply replaces the list (a flag the server dropped goes away). One much
|
||||
// smaller than what is held lost lines on the way (the engine's chat queue drops the
|
||||
// oldest of a long burst): update what came and keep the rest, rather than blanking.
|
||||
if (had >= PartialReplyMinHeld && reply.Count > 0 && reply.Count < had * PartialReplyRatio)
|
||||
{
|
||||
var merged = new Dictionary<string, QuestFlag>(Flags, StringComparer.OrdinalIgnoreCase);
|
||||
foreach (KeyValuePair<string, QuestFlag> kv in reply) merged[kv.Key] = kv.Value;
|
||||
Flags = merged;
|
||||
LastPartialReply = (reply.Count, had);
|
||||
}
|
||||
else
|
||||
{
|
||||
Flags = reply;
|
||||
}
|
||||
LastReadUtc = DateTime.UtcNow;
|
||||
// On a throttling server any reply (ours, the player's, RynthAi's poll) starts its minute.
|
||||
if (_serverThrottles)
|
||||
ThrottledUntilMs = nowMs + ServerThrottleMs - QuietMs;
|
||||
AwaitingOurs = false;
|
||||
Revision++;
|
||||
}
|
||||
|
|
@ -158,6 +212,9 @@ internal sealed class QuestFlagStore
|
|||
AwaitingOurs = false;
|
||||
LastReadUtc = DateTime.MinValue;
|
||||
ServerDisabled = false;
|
||||
ThrottledUntilMs = long.MinValue / 2;
|
||||
_serverThrottles = false;
|
||||
LastPartialReply = null;
|
||||
Revision++;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,14 @@ internal sealed class OracleContext
|
|||
|
||||
/// <summary>Set by the plugin: sends a verb to RynthILT's breeding tracker (RynthIltDataApi PetBreedingCommand).</summary>
|
||||
public Func<string, bool> BreedingCommand = _ => false;
|
||||
/// <summary>RynthILT's Temple guardians (None without RynthILT 0.2.20+); read while the Quests tab shows on Infinite Leaftide.</summary>
|
||||
public RynthCore.Plugin.Shared.IltGuardianView Guardian = RynthCore.Plugin.Shared.IltGuardianView.None;
|
||||
/// <summary>Goes up each time <see cref="Guardian"/> changes, so the Quests list rebuilds its guardian rows.</summary>
|
||||
public int GuardianRevision;
|
||||
/// <summary>The last guardian button's outcome, shown under the guardian controls.</summary>
|
||||
public string GuardianMessage = "";
|
||||
/// <summary>Set by the plugin: sends a verb to RynthILT's guardians (RynthIltDataApi GuardianCommand).</summary>
|
||||
public Func<string, bool> GuardianCommand = _ => false;
|
||||
/// <summary>RynthCore's server list (API v86) and the active server owner's settings; State null on older engines.</summary>
|
||||
public readonly RynthCore.Plugin.Shared.ServerStateClient ServerState = new();
|
||||
/// <summary>ConquestAC-only data (tag Conquest); fed only while on ConquestAC.</summary>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public static unsafe class PluginExports
|
|||
public static IntPtr GetVersion()
|
||||
{
|
||||
// Keep in step with RynthOraclePlugin.Version (a u8 literal can't be built from a const string).
|
||||
try { return LiteralPointer("0.3.1"u8); }
|
||||
try { return LiteralPointer("0.4.0"u8); }
|
||||
catch { return IntPtr.Zero; }
|
||||
}
|
||||
|
||||
|
|
|
|||
244
Plugins/RynthCore.Plugin.RynthOracle/Resources/dynstamps.csv
Normal file
244
Plugins/RynthCore.Plugin.RynthOracle/Resources/dynstamps.csv
Normal file
|
|
@ -0,0 +1,244 @@
|
|||
Area,Place,Npc,Reward,Stamp,Note
|
||||
"Facility Hub","Folthid Cellar","Raxanza Folthid","O-Yoroi Leggings","Dynamic_1_Aq2hMsFmW!",""
|
||||
"Facility Hub","Folthid Cellar","Felscuda","Healing Rabbit Pie","Dynamic_1_&9jiyTB!","8.8S, 53.1E"
|
||||
"Facility Hub","Folthid Cellar","Mi Krau-Li","examines your Parchment","Dynamic_1_WAuFukcRLoL5!",""
|
||||
"Looking Around","","Le-Ai Rea","Blue Molly","Dynamic_1_XH!!nh#^NaRp!","75.9S 57.3E"
|
||||
"Looking Around","Frost Haven","Robert","Greater Celdon Shadow Sleeves","Dynamic_1_HLq&!",""
|
||||
"Looking Around","Frost Haven","Elijah","Homemade Stout","Dynamic_1_MpBeVDU!",""
|
||||
"Looking Around","Frost Haven","Emma","Frost Slingshot","Dynamic_1_bEt6H5ECwGb2!",""
|
||||
"Looking Around","Frost Haven","Chef Pleist","Stone Mace","Dynamic_1_HgaUKA#hxa!",""
|
||||
"Looking Around","Frost Haven","The Mayor","Fried Egg","Dynamic_1_MRfxp5!g!",""
|
||||
"Looking Around","Frost Haven","Numb","Perfect Coruscating Isparian Mace","Dynamic_1_z8LpGZpe4rq!",""
|
||||
"Looking Around","Land Bridge Staging Complex","Director's Majordomo","Spitter Trochanter Metamorphi","Dynamic_1_FZYLYrAW1Zb!",""
|
||||
"Looking Around","Frost Haven","Mossy Chamber","Broken Virindi","Dynamic_1_ANND",""
|
||||
"Looking Around","Freebooter","Jusad the Collector","Renegade Atlatl of the Mountains","Dynamic_1_!mqkm9M!",""
|
||||
"Looking Around","Lum Seer","Shade of Lady Adja","Frost Board with Nail","Dynamic_1_ps6iG^P!ndH!",""
|
||||
"Looking Around","Frost Haven","Ka'hiri","Hearty Spiced Applesauce","Dynamic_1_s5MAzDcP9!",""
|
||||
"Looking Around","Frost Haven","Liam of Gelid","Composite Crossbow with Handle","Dynamic_1_7cv3O^MTLLKzs&!",""
|
||||
"Looking Around","84.1N, 44.1E","Aerlinthe Node Golem","Silifi of Crimson Stars","Dynamic_1_D6YxLUyUIW!","84.1N, 44.1E"
|
||||
"Looking Around","62.0N, 18.0E","Esper Node Golem","Composite Bow with Handle","Dynamic_1_LE5V8SVHG!","62.0N, 18.0E"
|
||||
"Looking Around","93.8N, 67.4W","Halaetan Node Golem","Slashing Longbow","Dynamic_1_QfLhcZJ64Hkold!","93.8N, 67.4W"
|
||||
"Looking Around","64.8S, 59.3E","Linvak Node Golem","Greater Celdon Shadow Girth","Dynamic_1_V8&t5$!","64.8S, 59.3E"
|
||||
"Looking Around","Ulgrim Island","Ulgrim the Unappreciated","Applesauce","Dynamic_1_x!zs79y!",""
|
||||
"Looking Around","Fake Niffis Crate Quest","Chef Jonus","Fish","Dynamic_1_j&T!ZrQwKvo!",""
|
||||
"Looking Around","Frost Haven","Larnia","Acid Hand Axe","Dynamic_1_88P$YBwEl!",""
|
||||
"Looking Around","Tanada Chamber of Scroll / Fire","Tanada Han-Tu","Hearty Ice Cream","Dynamic_1_STjY86!0Iu8x!",""
|
||||
"Looking Around","Frost Haven","Tanada Hido","Acid Mace","Dynamic_1_3ZhBEF!",""
|
||||
"Looking Around","Frost Haven","Tanada Shouka","Pouch of Dried Meat","Dynamic_1_YgClBFy!",""
|
||||
"Looking Around","Gerent's Compound at 87.2S, 17.5W","Representative of the Singularity","Fish","Dynamic_1_qkU0b^i!","87.2S, 17.5W"
|
||||
"Odd Stamps","93.2N, 48.2W in the Shattered Outlands","Arialle du Bellenesse","Healing Holtburger","Dynamic_1_ADm5RsrDGCbT!","93.2N, 48.2W"
|
||||
"Odd Stamps","Crater","Silencia's Magma Golem","Slicing Royal Atlatl","Dynamic_1_fR730X5VsPULE5!",""
|
||||
"Odd Stamps","Colosseum","Master Arbitrator","Palenqual's Tewhate","Dynamic_1_XnFt&!",""
|
||||
"Odd Stamps","","Colosseum Ticket Vendor","Silifi of Crimson Stars","Dynamic_1_luguukhgZg!",""
|
||||
"Odd Stamps","Beach Fort","Suzuhara Sheshumi","Silifi of Crimson Stars","Dynamic_1_n5u2imCs!",""
|
||||
"Odd Stamps","Obsidian Plains","Varetha","Major Smoldering Atlan Bow","Dynamic_1_P1&xxk5!","44.3S, 62.5W"
|
||||
"Odd Stamps","Crystal Crag","Oorjit","Perfect Shimmering Isparian Bow","Dynamic_1_lPn&BaZ!",""
|
||||
"Odd Stamps","","Jyotsana","Cragstone Farms Mac&Cheese","Dynamic_1_YCGJJ7cA!",""
|
||||
"Odd Stamps","","Tokashi Ando","Perfect Dissolving Isparian Crossbow","Dynamic_1_R#HIf!",""
|
||||
"Odd Stamps","Ries Woron's Story","Thrungus","Expired Stamina Draught","Dynamic_1_eMJVhyPzaa$aGn!",""
|
||||
"Odd Stamps","Mite Maze","Roderick","Apple Pie","Dynamic_1_#C^p&w0gV$$!",""
|
||||
"Odd Stamps","Sawato","Ssavish","Composite Bow with Handle","Dynamic_1_NMlDXfx2t!",""
|
||||
"Odd Stamps","dryreach rescue","Dansha-Ki","Composite Bow with Handle","Dynamic_1_FnXoHWS&kaM!",""
|
||||
"Odd Stamps","Seat of Knorr","Arikas, Warden of Knorr","Hearty Healing Rabbit Noodle","Dynamic_1_aWOWTc30f4",""
|
||||
"Odd Stamps","Swamp Garden","Terese","Diforsa Bracers","Dynamic_1_PTy0kqqTLP1Dn^!",""
|
||||
"Odd Stamps","Dark Isle","Tyrina of Arwic","Major Shadow Gauntlets","Dynamic_1_zJNxGBc!","84.7n 58.7e"
|
||||
"Odd Stamps","Dark Isle","Francois di Terli","Habraeloi","Dynamic_1_3!Og!",""
|
||||
"Odd Stamps 2","Aun Settlement 82.7N 21.2E.","Aun Tikakhe","Good Chilling Isparian Mace","Dynamic_1_hafO$cQvbkg!","82.7N 21.2E"
|
||||
"Odd Stamps 2","","Aun Saritea","Health Tonic","Dynamic_1_7yW17JvMHKu!",""
|
||||
"Odd Stamps 2","","Aun Aulakhe","Mana Rabbit Pie","Dynamic_1_5xE2TM!",""
|
||||
"Odd Stamps 2","Lost Wish Cottages (Arwic) 42.6n 62.4e","Lartorus","Pants","Dynamic_1_$GB72K!","42.6n 62.4e"
|
||||
"Odd Stamps 2","Catacombs of Opposition","Ripper","Gladiatorial Tunic","Dynamic_1_69Rjbany2pKD!",""
|
||||
"Odd Stamps 2","","Rat Nose","Fine Atlan Staff","Dynamic_1_eBlku!",""
|
||||
"Odd Stamps 2","","Nanoc, Basher of Bugs","Mana Potion","Dynamic_1_XCTiy!",""
|
||||
"Odd Stamps 2","","Narg","Iron Rusted Mace","Dynamic_1_S!AhI!",""
|
||||
"Odd Stamps 2","","Scout Luzumin Abigwei","Alduressa Helm","Dynamic_1_NFf5!",""
|
||||
"Odd Stamps 2","","Teela","Orange Molly","Dynamic_1_Bl#Y!",""
|
||||
"Odd Stamps 2","","Scout Tel al-Arat","Envoy's Heaume","Dynamic_1_AJ3Wm9Bk!",""
|
||||
"Odd Stamps 2","","Pincer Danta","Olthoi Sollerets","Dynamic_1_VezOOBWbn43KU!!",""
|
||||
"Odd Stamps 2","Vissidal","Merwart Pelagurg","Superior Smoldering Atlan Staff","Dynamic_1_DOIC1!",""
|
||||
"Odd Stamps 2","Vissidal","Merwart Urglurg","Butter Knife of Slaying","Dynamic_1_&!iRR#RrhnGA!",""
|
||||
"Odd Stamps 2","Vissidal","Dayla Bint Kazm","Hearty Healing Chicken Pie","Dynamic_1_nDAXG!",""
|
||||
"Odd Stamps 2","Vissidal","Peng-Ya","Major Dissolving Isparian Crossbow","Dynamic_1_sx^9H^&Mnqp!",""
|
||||
"Odd Stamps 2","Vissidal","Colista Fluress","Lesser Amuli Shadow Leggings","Dynamic_1_Ej!Zz!",""
|
||||
"Odd Stamps 2","99.7S 96.7W","Surloshen Realaidain","Hammer of Lightning","Dynamic_1_tiiFC!","99.7S 96.7W"
|
||||
"Odd Stamps 2","Silyiun - 89.1N 47.6W","Fiun Gaya","Enhanced Shadow Gauntlets","Dynamic_1_hev0!","89.1N 47.6W"
|
||||
"Odd Stamps 2","Hermit - Thrungus Hole","Hermit","Scored Amuli Leggings","Dynamic_1_rDBG!",""
|
||||
"Odd Stamps 2","93.2N 48.2W - Eastwatch","Commander Rylane di Cinghalle","Acid Crossbow","Dynamic_1_pZpx41&!","93.2N 48.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Arbelests","Healing Carrot Soup","Dynamic_1_L3Hb3O!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Fists","Platemail Breastplate","Dynamic_1_xj&USOHNL9K&!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Bows","Tasty Stout","Dynamic_1_hw2LNdjT6!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Atlatls","Composite Crossbow with Handle","Dynamic_1_P6!!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Axes","Three Eyed Guppy","Dynamic_1_xX^IHjOo##J$8E!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Blades","Flaming Weeping Dagger","Dynamic_1_iFuvP!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Staves","Composite Crossbow","Dynamic_1_J$JV&VKf!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Orbs","Health Tincture","Dynamic_1_S&JMdWiBDy!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Maces","Wooden Scarecrow Guise","Dynamic_1_^pTx!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","32.0N, 43.2W - Virindi Crafters","Crafter of Knives","Scalemail Hauberk","Dynamic_1_6ZR$k^$Srwc3g!","32.0N, 43.2W"
|
||||
"Odd Stamps 2","83.4S 97.2E - Ithaenc","Abbess Zik'Lir","Hearty Fish Noodle","Dynamic_1_jmCfm1p5a!","83.4S 97.2E"
|
||||
"Odd Stamps 2","72.8N,25.0W - Stonehold nearby","Lord Pyrovor","Enhanced Shadow Greaves","Dynamic_1_Tw$7Zwmutan!","72.8N,25.0W"
|
||||
"Odd Stamps 2","VoD Encampment","Guard Alfric","Bowl of Rice","Dynamic_1_LZkvsu4Ln2$h!",""
|
||||
"Odd Stamps 2","VoD Encampment","Guard Taziq","Blackfire Shadow Sollerets","Dynamic_1_t9uxr!",""
|
||||
"Odd Stamps 2","VoD Encampment","Guard Q'alia","Ancient Relic Gauntlets","Dynamic_1_m1KeUXELMuH!",""
|
||||
"Odd Stamps 2","VoD Encampment","Guard Li","Frost Hatchet","Dynamic_1_XgrV$!",""
|
||||
"Odd Stamps 2","77.7S 97.0E Ithaenc","Shah-hi","Katar","Dynamic_1_G3N9HSXlowLT$!","77.7S 97.0E"
|
||||
"Odd Stamps 2","Releasing the Light - Reward Room","Calitoth","Fish","Dynamic_1_mu^91#T!",""
|
||||
"Odd Stamps 2","VoD Encampment","Guardian of the Forbidden","Princely Runed Dart Flinger","Dynamic_1_#BELoT72Ib!","Small Creepy Statue"
|
||||
"Odd Stamps 2","Shattered Outlands 94.0n 45.9w","Torgash","examines your Parchment","Dynamic_1_S","94.0n 45.9w"
|
||||
"Odd Stamps 2","Hoshino Must Die last room","Spirit of Bist'elle","Enhanced Shadow Breastplate","Dynamic_1_b!",""
|
||||
"Bandit Castle","","Karwin, the Lunatic","Chainmail Pauldrons","Dynamic_1_HIlMkY!",""
|
||||
"Bandit Castle","","Kiriel Shadowborn","Healing Apple Pie","Dynamic_1_WBzVFJpFUzHkC!",""
|
||||
"Bandit Castle","","Jourgensson","Hearty Healing Mushroom Pie","Dynamic_1_$W&Pl4!",""
|
||||
"Bandit Castle","","Gillian the Poacher","Peppermint Ice Cream","Dynamic_1_5oLp!",""
|
||||
"Bandit Castle","","Alison Dulane","Amuli Shadow Leggings","Dynamic_1_079u9!",""
|
||||
"Bandit Castle","","Arianna the Adept","Expired Stamina Draught","Dynamic_1_hZIsyYE!!OmcQ!",""
|
||||
"Bandit Castle","","Shanrek the Forger","Sparring Shirt","Dynamic_1_fbcmDRC!",""
|
||||
"Bandit Castle","","Neela Nashua","Perfect Dissolving Isparian Spear","Dynamic_1_4tXQFu&&o!",""
|
||||
"Bandit Castle","","Gwillim, the Apprentice","Lightning Flanged Mace","Dynamic_1_is#X6rBaprU!",""
|
||||
"Bur","","Drogur","Frost Yari","Dynamic_1_KS8e32dtk7t!",""
|
||||
"Bur","","Collector Golem","Upper Exoskeleton Metamorphi","Dynamic_1_4xdYA1QvaiDf^!",""
|
||||
"Bur","","Kuurak","Hearty Healing Chicken Noodle","Dynamic_1_Zapx!",""
|
||||
"Bur","","Furgal","Spitter Thorax Metamorphi","Dynamic_1_4rk&MTz!",""
|
||||
"Bur","","Tibik","Gear Crossbow","Dynamic_1_!Ce^d!",""
|
||||
"Bur","","Nimeruuk","Greater Celdon Shadow Sleeves","Dynamic_1_zIX1Sf6FJt!",""
|
||||
"Bur","","Kurket","Acidic Rejuvenation","Dynamic_1_snVaz#0Ze3R#4M!",""
|
||||
"Bur","","Brogosh","Lugian Morning Star","Dynamic_1_$9YdvC2jYTxWZ!",""
|
||||
"Bur","","Mohor","Quality Isparian Crossbow","Dynamic_1_qpXiWqwBTN4!",""
|
||||
"Bur","","Kushuk","Silifi of Crimson Stars","Dynamic_1_3ISBG!",""
|
||||
"Bur","","Borsh","Health Tonic","Dynamic_1_Jh4!",""
|
||||
"Bur","","Kuuru","Electric Compound Bow","Dynamic_1_vNktko1!",""
|
||||
"Bur","","Torgluuk, High Shaman of Kor-Gursha","Stout","Dynamic_1_2yxpXSMY!",""
|
||||
"Bur","","Scout Leader Tmauruk","Hood","Dynamic_1_fEiU!",""
|
||||
"Bur","","Gruuk'lar","Rynthid Tentacle Dagger","Dynamic_1_xFipmT1!",""
|
||||
"Gear Knight","Inner Sea Gearknight Invasion","Lieutenant Micham","Dabus","Dynamic_1_CQxkFJvoJrVx!",""
|
||||
"Gear Knight","Inner Sea Gearknight Invasion","Sir Oakley","Composite Crossbow with Handle","Dynamic_1_lh9wOaXR0!",""
|
||||
"Gear Knight","Inner Sea Gearknight Invasion","Lieutenant Faen","Blunt Bow","Dynamic_1_Vz#gp!",""
|
||||
"Gear Knight","Inner Sea Gearknight Invasion","Sir Stavitor","Red Tea","Dynamic_1_ogt05i!",""
|
||||
"Gear Knight","Inner Sea Gearknight Invasion","Dame Alistra","Superb Flaming Isparian Claw","Dynamic_1_y!",""
|
||||
"Gear Knight","Direland Gearknight Invasion","Sir Yanov","Major Shadow Greaves","Dynamic_1_BlAckAuHU#!",""
|
||||
"Gear Knight","Direland Gearknight Invasion","Sir Durnstad","Silifi of Crimson Stars","Dynamic_1_#Dfd!",""
|
||||
"Gear Knight","Direland Gearknight Invasion","Squire Tylaen","Good Coruscating Isparian Atlatl","Dynamic_1_i1Cxg8Bt!",""
|
||||
"Gear Knight","Direland Gearknight Invasion","Dame Trielle","Frost Yari","Dynamic_1_h^MdsKZ$6SSD!",""
|
||||
"Gear Knight","Direland Gearknight Invasion","T'ing Douzen","Panaq","Dynamic_1_p0BEy$e!",""
|
||||
"Gear Knight","Atamarr Tasks Dungeon","Bronze Gauntlet Knight-Commander","Frost Greataxe","Dynamic_1_REv&biyDw!",""
|
||||
"Gear Knight","Direland Gearknight Invasion","Copper Cog Craftsmaster","Greater Amuli Leggings of Frost","Dynamic_1_4uls5J!",""
|
||||
"Wai Jhou","","Kreavon","Skeleton Fish","Dynamic_1_KrPl9N5!",""
|
||||
"Wai Jhou","","Aun Teverea","Singularity Crossbow","Dynamic_1_Y9wg!RfKHoyL!",""
|
||||
"Wai Jhou","","Nona","Fish","Dynamic_1_JrzQr8U!",""
|
||||
"Wai Jhou","","Zho Heishan","Bandit Dagger","Dynamic_1_Abm8qK2!",""
|
||||
"Wai Jhou","","Sarkin Killcrane","Shadow Tassets","Dynamic_1_mb7NAtZEdBaz!",""
|
||||
"Wai Jhou","","Riordin Nightbane","Hafted Serpent Spear","Dynamic_1_cCzQdsl5JxLC!",""
|
||||
"Wai Jhou","","Lacarra Avanthi","Shou-jen Shozoku Trousers","Dynamic_1_ip&NsyQ!",""
|
||||
"Wai Jhou","","Xanda Har","Gold Fish","Dynamic_1_1CiKW8^x^$!",""
|
||||
"Rynthid","","Lohrn","Shreth Hide Shoes","Dynamic_1_cS!mivYZ^b!cAA!",""
|
||||
"Rynthid","","Rhys","Plate Leggings","Dynamic_1_A!!",""
|
||||
"Rynthid","","Morgethais","Silifi of Crimson Stars","Dynamic_1_wDTf#!",""
|
||||
"Rynthid","","Geilla","Audetaunga's Korua of the Mountains","Dynamic_1_&dNG5U4!",""
|
||||
"Rynthid","","Rinne Gorber","Brilliant Celdon Leggings","Dynamic_1_ln!Lx!",""
|
||||
"Rynthid","","Aun Ol'tra","Small Beer","Dynamic_1_&^3Hve4JXH^!",""
|
||||
"Rynthid","","Ranulf","Prismatic Celdon Sleeves","Dynamic_1_8n2l!",""
|
||||
"Rynthid","","Sylvanus","Ursuin Hide Coat","Dynamic_1_veaD!",""
|
||||
"Rynthid","","Marcus","Fish","Dynamic_1_bpNCu!rsf45Fk!",""
|
||||
"Rynthid","","Ilte Krongal","Hearty Mana Rabbit Noodle","Dynamic_1_AusVgDl!",""
|
||||
"Rynthid","","The Bringer of Light","Peppermint Hot Chocolate","Dynamic_1_LrpV!62!",""
|
||||
"Paradox Camp","Paradox Olthoi Camp","Ethan Wintermaine","Superb Flaming Isparian Bow","Dynamic_1_PPtO6!7dB!",""
|
||||
"Paradox Camp","","Adrien Swiftblade","Oak Stormwood Crossbow","Dynamic_1_R^1Uv!J8k!",""
|
||||
"Paradox Camp","","Alicia Swiftblade","Badlands Siraluun Dress","Dynamic_1_G0Rn1lOZKj7C!",""
|
||||
"Paradox Camp","","Tomihino","Dart Flinger","Dynamic_1_!$cc!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Peda's Assistant","examines your Parchment","Dynamic_1_3ddaHUzi!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Peda","examines your Parchment","Dynamic_1_1R9O85L$b!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Crusher","examines your Parchment","Dynamic_1_a&Z2!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Deena","examines your Parchment","Dynamic_1_cIZV2uDB6B!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Mac","examines your Parchment","Dynamic_1_5x^G2$X9!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Swift-Eye","examines your Parchment","Dynamic_1_o$yT7al7ZTxv!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Sasha","examines your Parchment","Dynamic_1_CvzZIz!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Dead-Eye","examines your Parchment","Dynamic_1_fP9y!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Lash","examines your Parchment","Dynamic_1_AniHdl4wtIuF0!",""
|
||||
"Paradox Camp","North Olthoi Burrow","Long-Shot","examines your Parchment","Dynamic_1_jJ^yEFc#m^M!",""
|
||||
"Graveyard","","Renata","Singularity Spear","Dynamic_1_1fDZO3!",""
|
||||
"Graveyard","","Yoite","Composite Bow with Handle","Dynamic_1_OG6jdId!",""
|
||||
"Graveyard","","Gadi","Scored Celdon Girth","Dynamic_1_ELgh#!",""
|
||||
"Graveyard","","Aethelswith","Leather Helm","Dynamic_1_cF!",""
|
||||
"Graveyard","","Mhoire Soldier","Superb Isparian Bow","Dynamic_1_VgB#WcZOIA!","North Soldier - Opposite side of bunker"
|
||||
"Graveyard","","Mhoire Soldier","Hafted Gromnie Banner with Crest","Dynamic_1_z$DX!","South Soldier - Opposite side of bunker"
|
||||
"Graveyard","","Apep-tek the Tolerant","Spectacular Lager","Dynamic_1_Y55^MqgC!","Above ground, outside bunker 65.3w 44.0w"
|
||||
"Graveyard","","Laylana","Stiletto","Dynamic_1_&SRgbH!","Above ground, outside bunker 65.2s 44.3w"
|
||||
"Graveyard","","Lo Shoen","Amateur Explorer Pants","Dynamic_1_102!pkgn8wAYSe!","Floating Platform - Level 50 req"
|
||||
"Graveyard","","Slubbley","Healing Cake","Dynamic_1_mDaEh7!",""
|
||||
"Graveyard","","Jailer","Good Shimmering Isparian Bow","Dynamic_1_2Hm6DL!","NE bunker aboveground 64.9s 44.1w"
|
||||
"Graveyard","","Kousu Temo","Fried Mushroom Rice Dough","Dynamic_1_QUXbn6!","EW Initiation guy, 64.2s 44.0w"
|
||||
"Graveyard","","Candrus Steady-Hand","Academy Mana Potion","Dynamic_1_BKq6N6nXoR!","CH Initiation guy, 65.8s 45.3w"
|
||||
"Graveyard","","Ancient Stones","Bandit Flaming Jambiya","Dynamic_1_xL!g4ZoCuv!H","Pile of stones at 66.5s 44.7w"
|
||||
"Graveyard","Mhoire Castle - Great Hall","Ancient Throne","Taiaha","Dynamic_1_&y4ettwcivZ5Nm!",""
|
||||
"Graveyard","Mhoire Castle - Great Hall","Shade of Antemy","Left Peg Leg","Dynamic_1_CphV&!",""
|
||||
"Graveyard","Mhoire Castle - Great Hall","Shade of Fordroth","Perfect Chilling Isparian Atlatl","Dynamic_1_M0u7js^$E!",""
|
||||
"Graveyard","Mhoire Castle - Great Hall","Shade of Terelev","Silifi of Crimson Stars","Dynamic_1_XPvw!",""
|
||||
"Graveyard","Mhoire Castle - Great Hall","Guliant","Celdon Girth of Acid","Dynamic_1_aCEEdQil42!",""
|
||||
"Neftet","","T'ing Setsuko","Flaming Broad Sword","Dynamic_1_JfmjJmY0O8r!",""
|
||||
"Neftet","","Nephthys","Red Tea","Dynamic_1_mnJCjm5QR$s&!",""
|
||||
"Neftet","","Fahneph","Gear Crossbow","Dynamic_1_owGS9WGJ1Q!",""
|
||||
"Neftet","","Nekshla","Mana Pumpkin Pie","Dynamic_1_AAQ1#!",""
|
||||
"Neftet","","Sir Hassim bin Tamarek","Enhanced Shadow Greaves","Dynamic_1_r7zID$U!",""
|
||||
"Neftet","","Sir Adarl","Bobo's Stout","Dynamic_1_SoBgM6JPckOY9!",""
|
||||
"Neftet","","Sir Ibreh bin Kassim","Expired Mana Tincture","Dynamic_1_aVMuY!",""
|
||||
"Neftet","","Sir Daeglan","Quality Coruscating Isparian Crossbow","Dynamic_1_n!",""
|
||||
"Neftet","","Bemeth the Gatherer","Lesser Koujia Breastplate of Acid","Dynamic_1_bda1WYoI!",""
|
||||
"Neftet","","Hammah al Rundik","Olthoi Greaves","Dynamic_1_9v^POv6ADt3r!",""
|
||||
"Neftet","22.2S 8.7E","Kaltus","Composite Bow with Handle","Dynamic_1_xWYS3fqIjPN!","22.2S 8.7E Not Dangerous run"
|
||||
"Frozen Valley","","Sir Donovan","Pickled Egg","Dynamic_1_ypu2L!",""
|
||||
"Frozen Valley","","Sir Learth","Royal Cabbage","Dynamic_1_xpAJDzm$!",""
|
||||
"Frozen Valley","","Lady Daenerah","Acid Spadone","Dynamic_1_$SDp1uWx8wq$!",""
|
||||
"Frozen Valley","","Gregoria, Gurog Destroyer","Chocolate Gromnie","Dynamic_1_!vr&1c1Ug1XI!",""
|
||||
"Frozen Valley","","Hunter","Hearty Healing Chicken Pie","Dynamic_1_Sy!9l0FAJFI!",""
|
||||
"Frozen Valley","","Leilah","Lightning Silifi","Dynamic_1_uyoL!",""
|
||||
"Frozen Valley","","Halvor","Noble Quarterstaff","Dynamic_1_LfLac!",""
|
||||
"Frozen Valley","","Kumiko","Expired Health Potion","Dynamic_1_TB!q!",""
|
||||
"Frozen Valley","","Archmage Ichihiri","Arbalest","Dynamic_1_HzvCs4B2!",""
|
||||
"Hoshino Tent","","Sergeant Trebuus","Soldier Pincer Metamorphi","Dynamic_1_GQIb1mF!",""
|
||||
"Hoshino Tent","","Sergeant Freng","Lightning War Axe","Dynamic_1_wVJm&#Lpz7AQ#F",""
|
||||
"Hoshino Tent","","Aun Kirtal","Arena Bow","Dynamic_1_V9ffGx!",""
|
||||
"Hoshino Tent","","Lieutenant Aurin","Enhanced Smoldering Atlan Sword","Dynamic_1_4qlVcAWbM!",""
|
||||
"Hoshino Tent","","Lord Eorlinde","Major Shadow Gauntlets","Dynamic_1_zkzTna!",""
|
||||
"Hoshino Tent","","Griffon","Mana Elixir","Dynamic_1_b4^F&M1^uG!",""
|
||||
"Hoshino Tent","","Hanamoto Aki'ko","Lightning Nekode","Dynamic_1_3Qlg!",""
|
||||
"Hoshino Tent","","Corporal Irashi","Lesser Koujia Shadow Leggings","Dynamic_1_2DBoreKEH!",""
|
||||
"Hoshino Tent","","Lieutenant Takamaki","Silifi of Crimson Stars","Dynamic_1_#hzL!",""
|
||||
"Hoshino Tent","","Lieutenant Roothe","Fried Rabbit","Dynamic_1_XuH!z7l!",""
|
||||
"Viridian Rise","","Brellegia","Greater Celdon Breastplate of Acid","Dynamic_1_mCyu9F!","Requires Viridian Rise Recall Gem"
|
||||
"Viridian Rise","","Summercrown","Tachi","Dynamic_1_R8H6nh!",""
|
||||
"Viridian Rise","","Aangesilus","Slashing Compound Bow","Dynamic_1_2LJyvGJL!",""
|
||||
"Viridian Rise","","Dridge","Greater Amuli Leggings of Flame","Dynamic_1_LP3Ee7tH!",""
|
||||
"Viridian Rise","","Kervim'telek","Ursuin Hide Coat","Dynamic_1_E5$S!",""
|
||||
"Viridian Rise","","Swift","Fried Chicken","Dynamic_1_hYVV!",""
|
||||
"Ayan","","Aludi al-Jaladh","Seasoned Explorer Gauntlets","Dynamic_1_7$I7bC!",""
|
||||
"Ayan","","Aun Javhalrea, the Game Warden","Frost Ono","Dynamic_1_UdRA9W!",""
|
||||
"Ayan","","Aun Khekierea","Rich Mocha","Dynamic_1_Yt1uiSkCgK!",""
|
||||
"Ayan","","Aun Aukherea","Chocolate Cookie","Dynamic_1_G$iqi763E!",""
|
||||
"Ayan","","Shuthoth","Silifi of Crimson Stars","Dynamic_1_CkuPj0IwP!",""
|
||||
"Ayan","","Yuan Hanzu","Acid Hatchet","Dynamic_1_t^CiJAt2TBz17!",""
|
||||
"Ayan","","Joku Shunja","Dho Life Apprentice Robe","Dynamic_1_&X4EDhy!",""
|
||||
"Ayan","","Aaminah","Upgraded Marksman's Robe","Dynamic_1_YlHC^cbS!",""
|
||||
"Ayan","","Anfram Mellow","Ulgrim's Bunny Slippers","Dynamic_1_$MJj0ytiSy0CKN!",""
|
||||
"Ayan","","Alishia bint Aldan","Lightning Hatchet","Dynamic_1_87z&&Ok2o&jo!",""
|
||||
"Ayan","","Vierana du Canamorra","Fine Shadow Atlan Mace","Dynamic_1_qtZdY0C!ae!",""
|
||||
"Ayan","","Qurakh al-Taal","Hearty Mana Beef Stew","Dynamic_1_Ug2snTqb44!",""
|
||||
"Ayan","","Laedron the Geomancer","Fine Stinging Atlan Spear","Dynamic_1_2lXQdqHWxPU!",""
|
||||
"Ayan","","Rohula bint Ludun","Arena Staff","Dynamic_1_SjjPqyCHNigY!",""
|
||||
"Ayan","","Guard Winterborn","Silifi of Crimson Stars","Dynamic_1_!fzudXFZV0Je3!",""
|
||||
"Ayan","","Ennio di Cinghalle","Perfect Chilling Isparian Claw","Dynamic_1_fYP!",""
|
||||
"Ayan","","Lydda","Pathwarden Scale Hauberk","Dynamic_1_neYBz15!",""
|
||||
"Ayan","","Gaston Shadowbound","Major Shadow Tassets","Dynamic_1_jdMT!",""
|
||||
"Ayan","","Harkwull the Discreet","Quality Flaming Isparian Crossbow","Dynamic_1_Bq7Brhg!",""
|
||||
"Ayan","","Tanami Kei","Souldrinker","Dynamic_1_en!",""
|
||||
"Ayan","","Lamorda Loschi","Major Shadow Sollerets","Dynamic_1_2xn4LwsUdh!",""
|
||||
"Ayan","","Soju Bo-Ki","Composite Crossbow with Handle","Dynamic_1_ADDKG!",""
|
||||
"Ayan","","Hoshar ibn Jalaq","High Balance Testing Coat","Dynamic_1_bZ4bc!",""
|
||||
"Ayan","","Guard Bey","Tasty Stout","Dynamic_1_&!4f5YlXZ!",""
|
||||
"Ayan","","Ishaq the Philosopher","Enhanced Skeletal Atlatl","Dynamic_1_H3UNETkRXTX!",""
|
||||
"Candeth Keep","","Morathe gives you","Superb Isparian Atlatl","Dynamic_1_g9M7bV3z3#S!",""
|
||||
"Candeth Keep","","Aun Autuorea gives you","Singularity Katar","Dynamic_1_5kEI0!",""
|
||||
"Candeth Keep","","Talira Dain","Composite Bow","Dynamic_1_5i1z1Mb!","No text about being given item, it just shows up in backpack"
|
||||
"Candeth Keep","","Dalius Kendmar gives you","Undead Guise","Dynamic_1_YFrw!",""
|
||||
"Candeth Keep","","Grania the Bold gives you","Composite Crossbow with Handle","Dynamic_1_DaevbVP!",""
|
||||
"Candeth Keep","","Yukara Miko the Collector","Acid Longbow","Dynamic_1_F1r^qTQ!",""
|
||||
"Candeth Keep","","Ryukai Hiro","Good Olthoi Pauldrons","Dynamic_1_HeucrAy6c!",""
|
||||
"Candeth Keep","","Garaena the Emissary","Seasoned Explorer Arbalest","Dynamic_1_es^0FY!","Aerlinthe Portal NPC"
|
||||
|
41
Plugins/RynthCore.Plugin.RynthOracle/Resources/legendary.csv
Normal file
41
Plugins/RynthCore.Plugin.RynthOracle/Resources/legendary.csv
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
Group,Quest,CommonName,Luminance,Flags,Url,Note,Video
|
||||
"Graveyard","Count Phainor's Amulet","",10000,"graverobbercompleted_0213","https://acportalstorm.com/wiki/Count_Phainor's_Amulet","Not too long, but long enough that its noot wworth 10k to do daily, but easy to do once in a while to get to 30 quests.","https://youtu.be/JRmFOlC-EFw"
|
||||
"Graveyard","Mhoire Castle","",15000,"cleansingthethronewaiting_1209","https://acportalstorm.com/wiki/Castle_of_Lord_Mhoire_Quest","DON'T RECOMMEND: Don't hand this in, do it and keep your Oubliette flag open. You need to only flag once in the 3 towers and then you can skip straight to the boss daily if you like (I wouldn't, but I'd do it to get to 30). Flagging is easy if you use a flame rare for the SE/SW towers UPDATE: this was bugged for me, it does lock you out of the castle and you need to re-do the flag each time to get in. This is more of a pain to use it now, but the only way to get to Oubliette","https://youtu.be/2ww40h-MUIE"
|
||||
"Graveyard","Oubliette of Mhoire Castle Quest","Oubliette",30000,"pickeduptokenoublietteboss_0112;startedoublietteboss_0112","https://acportalstorm.com/wiki/Oubliette_of_Mhoire_Castle_Quest","Time consuming but once you're flagged you can run it right after defeating the shade of Lord R in Mhoire castle, just need to collect so many of those stupid portal gems. UPDATE: Don't hand in Shade of Lord R for Mhoire castle and you can skip all that flagging and just run this each time, I recommend that, have to do Mhoire castle just the first time if done that way","https://youtu.be/HmskwQDBel0"
|
||||
"Rynthid","Defeating the Curator of Torment","RTW",90000,"rtwcompleted_1013","https://acportalstorm.com/wiki/Defeating_the_Curator_of_Torment","Done by the server daily at 8:30 PM EST. Also done like 30 more times throughout the day, just join in, or learn how to open and do it yourself :D","https://youtu.be/uqkV3clTne8"
|
||||
"Rynthid","Fear Factory Quest","",12000,"fearfactoryreleased_0813","https://acportalstorm.com/wiki/Fear_Factory_Quest","Small lum, so I wouldn't run it daily since its a bit out of the way, but its super easy. Run through rynthid talking to 5 shadows in a neat dungeon. One of the more unique dungeons.","https://youtu.be/rWa_8pngbWc"
|
||||
"Rynthid","Rynthid Foundry Quest","",10000,"changinggearscompleted_0813","https://acportalstorm.com/wiki/Rynthid_Foundry_Quest","Not worth 10k Lum, but soloable. Dont' alert the guards in the first 2 rooms, then destroy the door once you're through the first door you can run through and hand out your 3 oils in a linear path","https://youtu.be/bZEBCl9vztk"
|
||||
"Rynthid","Seed of Power","",15000,"visitors4completed_0713","https://acportalstorm.com/wiki/Seed_of_Power","Pain in the ass, 4 dungeons. Run through hitting switches, or doing jumps and finally following the lightning on the floor in a tedius walk through room. (There is a skip for this, search discord for Nan's youtube video showing the skip of the last room)",""
|
||||
"Rynthid","Rynthid Foothold","Rynthid Recall",27500,"genesiscompleted_0813","https://acportalstorm.com/wiki/Rynthid_Foothold","Rynth recall. If you want to solo it, bring a lightning rare and its simplified",""
|
||||
"Rynthid","Shroud of Emotion","",20000,"spiritedcompleted_0813","https://acportalstorm.com/wiki/Shroud_of_Emotion","Gives a great necklace, a bit too long to be a daily quest. Can easily be solo'd if you're able to navigate rynthid Virindi, if not you can easily get through with 1-2 friends.","https://youtu.be/n-75FEZXp-w"
|
||||
"Rynthid","Rynthid Training","",20000,"rynthidtrainingcompleted_1013","https://acportalstorm.com/wiki/Rynthid_Training","Incredibly easy, though a bit buggy and you may need to reset from time to time, hopefully it gets fixed. Either way, Easy as hell to run.","https://youtu.be/oMRiCPELW5g"
|
||||
"Rynthid","Lugian Assault","LA",20000,"lugianassaultcompleted_0913","https://acportalstorm.com/wiki/Lugian_Assault","Followed by Curator daily, also easy to solo.","https://youtu.be/BCqrQS2mloI"
|
||||
"Rynthid","End of Days","EoD",15000,"eodcompleted_1013","https://acportalstorm.com/wiki/End_of_Days","Followed by Lugian Assault daily, also easy to solo.","https://youtu.be/Pnw9QcFm_Ag"
|
||||
"Hoshino","Save Karul","",20000,"deconstructioncompleted_0213","https://acportalstorm.com/wiki/Save_Karul","Hosh quest, short dungeon, boss fight has a lot of tanky friends but with enough melee D they dont' really hit you. Bring a friend to make this fight go quicker.","https://youtu.be/U5GczhliqKg"
|
||||
"Hoshino","Ninja Academy","",15000,"ninjaacademyfinished_0812","https://acportalstorm.com/wiki/Ninja_Academy","More Hosh, this one I feel needed at least 1 other person, can be solo'd but the enemies hit so hard and the last room has a bit if you run too quickly through to it as it locks you in.","https://youtu.be/HfPZj2SUNss"
|
||||
"Hoshino","Tanada Intercept and Slaughter","",30000,"tanadaslaughterfinished_0912","https://acportalstorm.com/wiki/Tanada_Intercept","This is two quests but it only counts as 1, each give 15k lum each. One is collecting 6 items in the dungeon and the other is defeating the boss at the end of the dungeon, so do them together. Part of the Ninja academy quest chain and for some reason is easier than part 1","https://youtu.be/6MHFjofk55Y"
|
||||
"Hoshino","Nanjou Stockade","",15000,"nanjoustockadefinished_1012","https://acportalstorm.com/wiki/Nanjou_Stockade","Third part of the quest chain, still easier than part 1, lol. Just do them all together but I probably wouldn't do these daily but to get to 30.. yes","https://youtu.be/XjrU-tdHhXg"
|
||||
"Hoshino","Hoshino Must Die","HMD",100000,"defeathoshinokeicompleted_0113","https://acportalstorm.com/wiki/Defeat_Hoshino_Kei","Best done with a large group, don't see this run enough.",""
|
||||
"Hoshino","Hoshino Fortress Infiltration","HFI",48000,"hoshinotowercomplete_0812","https://acportalstorm.com/wiki/Hoshino_Fortress_Infiltration","Would love to see this done daily but it definitely needs a group. Okay people can solo this, but its better off with a group. Update: There is a nice wall jump skip you can see an ATW youtube video showing this, makes it easier to solo.",""
|
||||
"Frozen Valley","Halt Dericost Ritual Quest","Halt",40000,"ritualtimecompleted_0411","https://acportalstorm.com/wiki/Halt_Dericost_Ritual_Quest","UPDATE: Been seeing this run more often lately, flag for this quest and its an easy 40k lum and a good check on the john quests. Some people like to do this daily, I've only run it once at this point. Did it with 3 people, seemed like a solid number to do it with, the boss wave hits hard (4th wave)","https://youtu.be/AKRt1mST5zc"
|
||||
"Frozen Valley","Deewain's Dark Cavern","",30000,"deewaincompleted0211;deewainlegkeypickuptimer","https://acportalstorm.com/wiki/Deewain's_Dark_Cavern","Another good daily you should be doing if you're not learn the maze and the jumps and you can be through it quick for some nice lum.","https://youtu.be/PWfd9Hz7Yes"
|
||||
"Frozen Valley","Bloodstone Investigation","BS3",45000,"bloodstonefactorycompleted_0211","https://acportalstorm.com/wiki/Bloodstone_Investigation","Hoard bs3s in your inventory and do this one daily, best source of lum, a bit harder than the previous quests but easily soloable.","https://youtu.be/pdos-PebuiM"
|
||||
"Frozen Valley","Geraine's Study","",30000,"geraineslibrarycompleted0312","https://acportalstorm.com/wiki/Mhoire_Infiltration","I'd put this further down the list but its so convientent to do right after bs3, the exit of bs3 brings you right to study, getting the pages and the symbols are a pain and Geraine takes a while to go down. Bring a friend to make it tolerable","https://youtu.be/HzfzkEAP71M"
|
||||
"Frozen Valley","Gurog Creation","",10000,"gurogcreationcompleted_1110;journalnoteturninwait","https://acportalstorm.com/wiki/Gurog_Creation","Really easy, would be up higher if it was better than 10k lum, not worth the time to do daily but easy to throw in next time you're in FV and looking to get up to 30 quests.","https://youtu.be/46oPIQKfWdE"
|
||||
"Neftet","First Sister","Bulb of Mornings",21000,"firstsistercompleted_1012","https://acportalstorm.com/wiki/Harvesting_the_Bulb_of_Mornings","Do all 3 sister quests solo, as they each require you to pick up 10-15 items and hand to a bulb. First sisters, beware the reedsharks, they hit hard. Don't take them lightly.","https://youtu.be/VBYojr1vbns"
|
||||
"Neftet","Slave Master Quest","",30000,"neftetfreehatsheputwait;findmumiyahdevicewait","https://acportalstorm.com/wiki/Slave_Master_Quest","Soloable for sure, but I don't like this quest. Using the scrying rod is stupid, and it makes you do it twice. It also makes you clear out the entire dungeon worth of enemies to proceed, no skipping fights, bah",""
|
||||
"Neftet","Janthef's Release","Escape",20000,"escapecompleted_0213","https://acportalstorm.com/wiki/Janthef's_Release","Neftet recall, talk to NPC. Another daily, just be careful of the void statues.","https://youtu.be/Sx-10_oSt2o"
|
||||
"Neftet","Foundry of Izexi Quest","",15000,"foundryofizexicompleted_1212","https://acportalstorm.com/wiki/Foundry_of_Izexi_Quest","Newly added quest, worthy of being daily I might move this up the list with some more practice. 2 crystals to progress through the dungeon, just be careful of the spirits spamming war, don't get careless like me :D Update: I moved this below Janthef, do them together while at Neftet, might be worth doing daily just less lum than janthef","https://youtu.be/AF0XrmVtr9M"
|
||||
"Neftet","Four Corners of Dereth","",20000,"fourcornerscompleted_1113","https://acportalstorm.com/wiki/Four_Corners_of_Dereth","UPDATE: I moved this up the list. Tge first four dungeons is a flag for the final part in Neftet, do it once then you can do a fairly quick quest for 20k Lum. Not the fastest 20k lum quest but its 100% worth being one of your 30 now. Only reason its so low is it takes time, 4 dungeons on the corners of the map and then another dungeon with a boss room at the end. If you don't like jumping puzzles, you might skip this. Recommend doing this quest at least once though, its a fun one just long. First 4 dungeons are easy, last dungeon picks up the difficulty a little but all soloable","https://youtu.be/qtklyqjjHC8"
|
||||
"Random Locations","Third Sister","Bulb of Twilight",21000,"thirdsistercompleted_1212","https://acportalstorm.com/wiki/Harvesting_the_Bulb_of_Twilight","Needs to spawn more ore, be careful of the war spam in the ore collecting area. Not too bad, do it alone.","https://youtu.be/NTiCEE07MYI"
|
||||
"Random Locations","Second Sister","Bulb of Harvests",21000,"secondsistercompleted_1112","https://acportalstorm.com/wiki/Harvesting_the_Bulb_of_Harvests","Do this to unlock the 3rd sister, and do it as part of your 30 if you have high enough jump (600+) to do it each time. If not, use a jump rare the first time to unlock sister 3 and skip in the future.","https://youtu.be/MFLDhvg5WVQ"
|
||||
"Random Locations","Releasing the Light","",25000,"blessedcavecompleted_0912","https://acportalstorm.com/wiki/Releasing_the_Light","Out of the way quest, wouldn't run this daily. Extra 5k lum if you grab the book from an easy jump puzzle. Easy enough to be in the top 30. First quest in the 3 sister quest chain, follow up with 3 sisters.","https://youtu.be/qpRIxvvFy4M"
|
||||
"Random Locations","Dream Reaver Investigation","DRI",20000,"btmcompleted_0513","https://acportalstorm.com/wiki/Dream_Reaver_Investigation","A good daily, a lot of people wait until someone collects the keys then tags along. I did that too, but then I learned the keys and they're super simple, good daily quest.","https://youtu.be/phB-O5AQTQM"
|
||||
"Random Locations","Purging the Corruption","Purge",20000,"jtmcompleted_0613","https://acportalstorm.com/wiki/Purging_the_Corruption","Another good daily to do, a bit out of the way. Tie to tumerok caves on an alt and have a candeth portal (or get the recall) for quick turn in and it becomes a good daily","https://youtu.be/-eI7A5jBgG0"
|
||||
"Random Locations","Rescuing Mouf P","Mouf",17500,"moufreward","https://acportalstorm.com/wiki/Rescuing_Mouf_P","One of the first legendary quests you probably learned and most people can do with their eyes closed.","https://youtu.be/eqfBYpXbG7o"
|
||||
"Random Locations","Liberation of Uziz","",20000,"abductedcompleted_0313","https://acportalstorm.com/wiki/Liberation_of_Uziz","Another daily many people do, if you don't next time you see someone liberating uziz, tag along its quick and easy.","https://youtu.be/K8o_yoxqGyg"
|
||||
"Random Locations","Lost Lore","",18000,"lostlorepagecompleted_0712","https://acportalstorm.com/wiki/Lost_Lore","This is really easy, just a bit out of the way in my opinion. Honestly could be a decent daily.","https://youtu.be/bO1nOM00Unk"
|
||||
"Random Locations","Serpent Burial Grounds Quest","",18000,"serpentburialgroundsdone","https://acportalstorm.com/wiki/Serpent_Burial_Grounds_Quest","The dungeon is quick to get to, easy to navigate and the boss packs a mean punch. Bring someone who can debuff the boss and tugak his sclavus swarm, that'd be nice. The sclavus have high melee D and the boss hurts, debuff that sword. I recommend 2-3 people though it could be solo'd . UPDATE- I solo'd this, debuff his sword and its a pain in the ass but doable, took too long though solo.","https://youtu.be/h-NAwcVrrIQ"
|
||||
"Random Locations","Empyrean Rescue Quest","",35000,"empyreanrescuecompleted_1010;erqlegkeypickuptimer","https://acportalstorm.com/wiki/Empyrean_Rescue_Quest","The longest part of this was finding the portal in the first dungeon, once you find it and go through to the last dungeon, you can tie to the end and skip most of this quest, but you still have to deal with triangles of death and a boss that will instant kill you. Not TERRIBLe but I still don't care much for it",""
|
||||
"Random Locations","Geraine's Hosts","Hosts",70000,"gerainesbodiescompleted0412","https://acportalstorm.com/wiki/Geraine%27s_Hosts","I wanted to put this above slave master because fuck slave master, but collecting all 7 Geraine's books takes sooo long. I want to confirm you need all 7 and not just the first 1-4 hand in to get credit UPDATE: You only need to hand in books 1-4 for this to count, still time consuming",""
|
||||
"Random Locations","Hive Queen Assault","",40000,"idoqcompleted_0413","https://acportalstorm.com/wiki/Hive_Queen_Assault","Way too time consuming, not hard but dropping 5 forks is long enough as it is. One of last one's I'd do if ever.","https://youtu.be/bafe1w3NQUQ"
|
||||
|
|
|
@ -44,6 +44,10 @@
|
|||
<EmbeddedResource Include="Resources\society.csv" LogicalName="RynthOracle.society.csv" />
|
||||
<EmbeddedResource Include="Resources\titles.csv" LogicalName="RynthOracle.titles.csv" />
|
||||
<EmbeddedResource Include="Resources\markers.csv" LogicalName="RynthOracle.markers.csv" />
|
||||
<!-- Legendary Key quests for the Legendary tab (list and notes: the "Arwic John Route" sheet). -->
|
||||
<EmbeddedResource Include="Resources\legendary.csv" LogicalName="RynthOracle.legendary.csv" />
|
||||
<!-- Infinite Leaftide Dynamic Stamps (the players' ExtraDyn sheet, 10.13.2026): Data\DynamicStamps.cs. -->
|
||||
<EmbeddedResource Include="Resources\dynstamps.csv" LogicalName="RynthOracle.dynstamps.csv" />
|
||||
<EmbeddedResource Include="Resources\customquests.csv" LogicalName="RynthOracle.customquests.csv" />
|
||||
<!-- Spell names and durations: RynthAi's spell table, shared rather than copied. -->
|
||||
<EmbeddedResource Include="..\RynthCore.Plugin.RynthAi\Combat\SpellData.txt" LogicalName="RynthOracle.SpellData.txt" Link="Shared\SpellData.txt" />
|
||||
|
|
|
|||
|
|
@ -18,9 +18,8 @@ namespace RynthCore.Plugin.RynthOracle;
|
|||
/// </summary>
|
||||
public sealed class RynthOraclePlugin : RynthPluginBase
|
||||
{
|
||||
// Previous release: 0.2.5.
|
||||
// Previous release: 0.2.8.
|
||||
public const string Version = "0.3.1";
|
||||
// Previous release: 0.5.4.
|
||||
public const string Version = "0.6.0";
|
||||
|
||||
private const long QuestReadDelayMs = 6000; // after login, before the hidden /myquests
|
||||
private const long CharacterReadMs = 1000;
|
||||
|
|
@ -44,6 +43,8 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
private string _charmsJson = "";
|
||||
private long _nextBreedingMs;
|
||||
private string _breedingJson = "";
|
||||
private long _nextGuardianMs;
|
||||
private string _guardianJson = "";
|
||||
private bool _voidAutoDecided;
|
||||
private bool _dailyCheckStarted;
|
||||
private int _seenFlagRevision = -1, _seenCatalogRevision = -1, _seenVoidRevision = -1, _seenIltRevision = -1;
|
||||
|
|
@ -68,6 +69,7 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
Host.InvokeChatParser(tab < 0 ? "/rc oracle-skills off" : $"/rc oracle-skills {tab}");
|
||||
_c.ToggleCharm = ToggleCharm;
|
||||
_c.BreedingCommand = BreedingCommand;
|
||||
_c.GuardianCommand = GuardianCommand;
|
||||
_ui.Log = msg => Host.Log(msg);
|
||||
|
||||
_mainView = new OracleView(_c);
|
||||
|
|
@ -180,6 +182,10 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
_c.Breeding = Shared.IltBreedingView.None;
|
||||
_breedingJson = "";
|
||||
_c.BreedingMessage = "";
|
||||
_c.Guardian = Shared.IltGuardianView.None;
|
||||
_guardianJson = "";
|
||||
_c.GuardianRevision++;
|
||||
_c.GuardianMessage = "";
|
||||
_c.Session = default;
|
||||
_c.SessionKnown = false;
|
||||
_c.AiSession.Reset();
|
||||
|
|
@ -246,6 +252,44 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
_main.NeedsPass = true;
|
||||
}
|
||||
|
||||
/// <summary>The Quests tab's guardian controls: a verb for RynthILT's guardians, then a quick re-read.</summary>
|
||||
private bool GuardianCommand(string verb)
|
||||
{
|
||||
long now = Environment.TickCount64;
|
||||
bool ok = _c.InWorld && _c.IltData.GuardianCommand(Host, now, verb);
|
||||
_c.GuardianMessage = ok ? "" : "RynthILT didn't take that (not loaded, or older than 0.2.20).";
|
||||
_nextGuardianMs = now + 400;
|
||||
if (_main != null) _main.NeedsPass = true;
|
||||
return ok;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// While the Quests tab is on screen on Infinite Leaftide: RynthILT's Temple guardian JSON every
|
||||
/// <see cref="CharacterExtrasReadMs"/> (the guardian rows, switches and last answer). Nothing is
|
||||
/// read with the window closed, on another tab, or on another server.
|
||||
/// </summary>
|
||||
private void ReadGuardian(long now)
|
||||
{
|
||||
if (_main == null || _mainView == null || !_main.Visible || _mainView.Tab != OracleView.TabQuests) return;
|
||||
if (!_c.Server.Is(ServerTags.InfiniteLeaftide)) return;
|
||||
if (now < _nextGuardianMs) return;
|
||||
_nextGuardianMs = now + CharacterExtrasReadMs;
|
||||
string json = _c.IltData.ReadGuardian(Host, now);
|
||||
if (string.Equals(json, _guardianJson, StringComparison.Ordinal)) return;
|
||||
_guardianJson = json;
|
||||
_c.Guardian = Shared.IltGuardianView.Parse(json);
|
||||
_c.GuardianRevision++;
|
||||
_main.NeedsPass = true;
|
||||
}
|
||||
|
||||
/// <summary>The Quests tab filtered to the trackers (the old Legendary / Markers / Dynamic Stamps tabs' commands).</summary>
|
||||
private void ShowTrackers(QuestKind? kind)
|
||||
{
|
||||
_mainView?.ShowTrackers(kind);
|
||||
if (_main != null) { _main.Visible = true; _main.NeedsPass = true; }
|
||||
_nextGuardianMs = 0; // read at once
|
||||
}
|
||||
|
||||
/// <summary>Shows the main window on a tab (another plugin's link, or a /ro tab command).</summary>
|
||||
private void ShowTab(string tab)
|
||||
{
|
||||
|
|
@ -394,6 +438,37 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
// ILT progression planners (was Skills → Progression).
|
||||
ShowTab(OracleView.TabProgress);
|
||||
break;
|
||||
case "legendary":
|
||||
case "legend":
|
||||
case "john":
|
||||
// John's 30 Legendary Key quests: the Quests tab's Legendary rows (the old Legendary tab).
|
||||
ShowTrackers(QuestKind.Legendary);
|
||||
break;
|
||||
case "markers":
|
||||
case "marker":
|
||||
// The 100 exploration markers: the Quests tab's marker rows (the old Markers tab).
|
||||
ShowTrackers(QuestKind.Marker);
|
||||
break;
|
||||
case "trackers":
|
||||
// Every tracker this server has: Legendary, markers, and on Infinite Leaftide stamps and guardians.
|
||||
ShowTrackers(null);
|
||||
break;
|
||||
case "dynamic":
|
||||
case "dyn":
|
||||
case "dyno":
|
||||
case "stamps":
|
||||
case "guardian":
|
||||
case "guardians":
|
||||
// Infinite Leaftide's trackers: Dynamic Stamps (the old tab) and RynthILT's Temple guardians.
|
||||
bool guardians = arg is "guardian" or "guardians";
|
||||
if (!_c.Server.Is(ServerTags.InfiniteLeaftide))
|
||||
{
|
||||
_c.Print((guardians ? "The Temple guardians are" : "Dynamic stamps are")
|
||||
+ " an Infinite Leaftide quest line; this server isn't recognised as Infinite Leaftide.");
|
||||
ShowTrackers(null);
|
||||
}
|
||||
else ShowTrackers(guardians ? QuestKind.Guardian : QuestKind.Dynamic);
|
||||
break;
|
||||
case "breeding":
|
||||
case "breed":
|
||||
case "pets":
|
||||
|
|
@ -418,13 +493,16 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
_c.Print("Commands: /ro (window), /ro character (Character tab: status, session, charms), "
|
||||
+ "/ro skills|attrs|progress (raise/train and ILT planners), /ro void (Void window), "
|
||||
+ "/ro timers (Quest Timers window), /ro fellowship (Fellowship tab), /ro breeding (Pet Breeding tab, Infinite Leaftide), "
|
||||
+ "/ro trackers (Quests tab, trackers only), /ro legendary (John's 30 key quests), /ro markers, "
|
||||
+ "/ro dynamic and /ro guardians (Infinite Leaftide: NPC stamps, Temple guardians), "
|
||||
+ "/ro quests (read quest flags), /ro status, "
|
||||
+ "/ro about (About tab: settings, server features)");
|
||||
break;
|
||||
}
|
||||
if (arg is "" or "void" or "timers" or "timer" or "fellowship" or "fellow" or "fship" or "character" or "char" or "charms" or "charm"
|
||||
or "skills" or "skill" or "attrs" or "attributes" or "vitals" or "progress" or "progression"
|
||||
or "breeding" or "breed" or "pets" or "about" or "features" && !Host.HasUi && !_noUiLogged)
|
||||
or "breeding" or "breed" or "pets" or "legendary" or "legend" or "john" or "markers" or "marker" or "trackers"
|
||||
or "dynamic" or "dyn" or "dyno" or "stamps" or "guardian" or "guardians" or "about" or "features" && !Host.HasUi && !_noUiLogged)
|
||||
{
|
||||
_noUiLogged = true;
|
||||
_c.Print("This RynthCore engine can't show plugin windows (it needs script windows, API v71, with ImGui on). /ro status still works.");
|
||||
|
|
@ -434,8 +512,14 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
private void RequestQuests()
|
||||
{
|
||||
if (!_c.InWorld) return;
|
||||
if (!_c.Flags.Request(cmd => Host.InvokeChatParser(cmd), Environment.TickCount64))
|
||||
Host.Log("[RynthOracle] /myquests was sent moments ago; waiting for that reply.");
|
||||
long now = Environment.TickCount64;
|
||||
if (!_c.Flags.Request(cmd => Host.InvokeChatParser(cmd), now))
|
||||
{
|
||||
int wait = _c.Flags.ThrottleSecondsLeft(now);
|
||||
Host.Log(wait > 0
|
||||
? $"[RynthOracle] The server answers one /myquests a minute; try again in {wait}s (the flags shown are kept)."
|
||||
: "[RynthOracle] /myquests was sent moments ago; waiting for that reply.");
|
||||
}
|
||||
if (_main != null) _main.NeedsPass = true;
|
||||
}
|
||||
|
||||
|
|
@ -474,6 +558,11 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
private void TickData(long now)
|
||||
{
|
||||
_c.Flags.Tick(now);
|
||||
if (_c.Flags.LastPartialReply is { } partial)
|
||||
{
|
||||
_c.Flags.LastPartialReply = null;
|
||||
Host.Log($"[RynthOracle] /myquests reply looked cut short ({partial.Got} lines, {partial.Had} flags held): merged it instead of replacing the list.");
|
||||
}
|
||||
if (_c.Flags.Revision != _seenFlagRevision)
|
||||
{
|
||||
_seenFlagRevision = _c.Flags.Revision;
|
||||
|
|
@ -519,6 +608,7 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
|
||||
ReadCharacterExtras(now);
|
||||
ReadBreeding(now);
|
||||
ReadGuardian(now);
|
||||
|
||||
// RynthCore's server list (every 2 s): a new pick or override applies now, not at the next character read.
|
||||
_c.ServerState.Poll(Host, now);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ internal sealed partial class OracleView
|
|||
? $"RynthCore: {es.ActiveName} ({es.Active}){(es.Picked ? ", picked by hand" : "")}; settings from {(es.ActivePlugin.Length > 0 ? es.ActivePlugin : "no plugin")}"
|
||||
: "RynthCore: no server active" + (es.Picked ? " (picked by hand)" : ""));
|
||||
if (RynthCore.Plugin.Shared.ServerProfileView.Parse(st.ProfileJson) is { } prof)
|
||||
w.TextDisabled($"{st.ProfilePlugin} ({RynthCore.Plugin.Shared.RynthServerProfileApiV1.InterfaceName}): {prof.Summary()}");
|
||||
w.TextDisabled($"{st.ProfilePlugin} ({st.ProfileInterface}): {prof.Summary()}");
|
||||
else if (es.ActivePlugin.Length > 0)
|
||||
w.TextDisabled($"{es.ActivePlugin} hasn't sent its server settings (an older plugin?).");
|
||||
w.TextDisabled("Change the server: RynthCore Options > Diagnostics > Server, or /rc server pick <id>|auto.");
|
||||
|
|
@ -45,6 +45,8 @@ internal sealed partial class OracleView
|
|||
w.TextDisabled($"This engine is API v{_c.Host.Version}; v86 lets RynthOracle follow RynthCore's server pick and overrides.");
|
||||
if (_c.Host.Version < 75) w.TextDisabled($"This engine is API v{_c.Host.Version}; v75 adds a surer server check and the titles you hold.");
|
||||
|
||||
DrawServerFeatures(w);
|
||||
|
||||
w.SeparatorText("Quest list");
|
||||
QuestCatalog cat = _c.Catalog;
|
||||
w.Text($"{cat.RetailCount} retail quests from the {cat.Source}" +
|
||||
|
|
@ -63,19 +65,81 @@ internal sealed partial class OracleView
|
|||
|
||||
w.SeparatorText("Commands");
|
||||
w.BulletText("/ro open or close this window");
|
||||
w.BulletText("/ro character the Character tab (status, session)");
|
||||
w.BulletText("/ro character the Character tab (status, session, charms)");
|
||||
w.BulletText("/ro skills raise and train skills");
|
||||
w.BulletText("/ro attrs attributes and vitals");
|
||||
w.BulletText("/ro progress ILT progression planners");
|
||||
w.BulletText("/ro timers open or close the Quest Timers window");
|
||||
w.BulletText("/ro fellowship the Fellowship tab");
|
||||
w.BulletText("/ro about this tab (settings, server)");
|
||||
w.BulletText("/ro trackers the Quests tab, trackers only (Legendary, markers, and on ILT stamps and guardians)");
|
||||
w.BulletText("/ro legendary John's Legendary Key quests: have, missing, repeat timers");
|
||||
w.BulletText("/ro markers the 100 exploration markers: found and still to find");
|
||||
if (_c.Server.Is(Data.ServerTags.InfiniteLeaftide))
|
||||
{
|
||||
w.BulletText("/ro dynamic Infinite Leaftide Dynamic Stamps: NPC stamps you have and are missing");
|
||||
w.BulletText("/ro guardians the Temple guardians: riddle answers, auto hand-in, buy if missing, turn-ins");
|
||||
}
|
||||
w.BulletText("/ro about this tab (settings, server features)");
|
||||
w.BulletText("/ro void open or close the Void window");
|
||||
w.BulletText("/ro quests read your quest flags now");
|
||||
w.BulletText("/ro help list the commands in chat");
|
||||
w.TextDisabled("A server quest pack can be replaced without a rebuild: put quests.<server>.csv in %APPDATA%\\RynthCore\\RynthOracle\\packs.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// "Server features": the Leaftide feature list RynthILT keeps (saved per character in its hub
|
||||
/// state and sent in its "RynthILT.Server" profile), drawn group by group in RynthILT's order
|
||||
/// with each feature's state and where it lives. Nothing here is hard-coded: a newer RynthILT
|
||||
/// adds features without an Oracle update.
|
||||
/// </summary>
|
||||
private void DrawServerFeatures(UiWindow w)
|
||||
{
|
||||
IltServerProfile p = _c.Ilt.Profile;
|
||||
if (!p.Available)
|
||||
{
|
||||
if (_c.Server.Is(ServerTags.InfiniteLeaftide))
|
||||
{
|
||||
w.SeparatorText("Server features");
|
||||
w.TextDisabled("Load RynthILT to list the Infinite Leaftide features here.");
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (p.Features.Count == 0) return;
|
||||
|
||||
w.SeparatorText("Server features");
|
||||
string checkedText = p.CheckedUtc == DateTime.MinValue ? "not checked yet" : $"checked {p.CheckedUtc.ToLocalTime():yyyy-MM-dd HH:mm}";
|
||||
w.TextDisabled(p.Ilt
|
||||
? $"From RynthILT ({(p.World.Length > 0 ? p.World : "this world")}, {checkedText}{(p.Forced ? ", forced on" : "")})."
|
||||
: "From RynthILT: this isn't an Infinite Leaftide world, so no Leaftide feature is claimed.");
|
||||
|
||||
// Groups in the order RynthILT lists them; one table per group.
|
||||
var groups = new System.Collections.Generic.List<string>();
|
||||
foreach (IltFeature f in p.Features)
|
||||
if (!groups.Exists(g => string.Equals(g, f.Group, StringComparison.OrdinalIgnoreCase))) groups.Add(f.Group);
|
||||
|
||||
int on = 0;
|
||||
foreach (IltFeature f in p.Features) if (f.State == RynthCore.Plugin.Shared.RynthIltServer.StateOn) on++;
|
||||
w.TextDisabled($"{on} of {p.Features.Count} on.");
|
||||
|
||||
foreach (string group in groups)
|
||||
{
|
||||
if (!w.CollapsingHeader(group.Length > 0 ? group : "Other", "o.feat.h." + group)) continue;
|
||||
foreach (IltFeature f in p.InGroup(group))
|
||||
{
|
||||
uint color = f.State switch
|
||||
{
|
||||
RynthCore.Plugin.Shared.RynthIltServer.StateOn => UiColors.Green,
|
||||
RynthCore.Plugin.Shared.RynthIltServer.StateOff => UiColors.Red,
|
||||
_ => UiColors.Yellow,
|
||||
};
|
||||
w.TextColored(color, $"[{IltServerProfile.StateText(f.State)}]");
|
||||
w.SameLine();
|
||||
w.Text(f.Label);
|
||||
if (f.Where.Length > 0) w.Tooltip("Where: " + f.Where);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void StartQuestListCheck()
|
||||
{
|
||||
_c.Settings.LastQuestListCheckUtc = DateTime.UtcNow;
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@ internal sealed partial class OracleView
|
|||
QuestFlagStore flags = _c.Flags;
|
||||
Func<uint, int> prop = _c.Props;
|
||||
DateTime now = _c.UtcNow;
|
||||
if (flags.LastReadUtc == DateTime.MinValue)
|
||||
w.TextDisabled("Quest flags not read yet (Quests tab, Refresh): gem timers and seer auras show as not done.");
|
||||
QuestFlagsBar(w, "au", "gem timers and seer auras");
|
||||
|
||||
if (w.CollapsingHeader("Augmentation gem quests", "a.gems", defaultOpen: true))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -214,6 +214,6 @@ internal sealed partial class OracleView
|
|||
w.Text(status);
|
||||
}
|
||||
if (!any) w.TextDisabled("No custom quests listed for this server.");
|
||||
if (_c.Flags.LastReadUtc == DateTime.MinValue) w.TextDisabled("Read your quest flags (Quests tab) for their status.");
|
||||
else QuestFlagsBar(w, "cq.cust", "custom quests' status");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
168
Plugins/RynthCore.Plugin.RynthOracle/Views/DynamicStampsTab.cs
Normal file
168
Plugins/RynthCore.Plugin.RynthOracle/Views/DynamicStampsTab.cs
Normal file
|
|
@ -0,0 +1,168 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using RynthCore.Plugin.RynthOracle.Data;
|
||||
using RynthCore.Plugin.RynthOracle.Ui;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Views;
|
||||
|
||||
/// <summary>
|
||||
/// Dynamic Stamps (Infinite Leaftide only): the NPC hand-ins that put a "Dynamic_N_..." flag on
|
||||
/// the character, read from /myquests. Since 2026-10-18 they are rows of the Quests tab's merged
|
||||
/// list (QuestsTab.cs: DYN rows, the Show filter's area picker). What is left here is the opened
|
||||
/// stamp's box (RynthNav, the Parchment hand-in, chat), the read after a hand-in, and the RynthNav
|
||||
/// sender every row kind shares. The list follows the players' "ExtraDyn" sheet (dynstamps.csv).
|
||||
/// </summary>
|
||||
internal sealed partial class OracleView
|
||||
{
|
||||
// The stamp clicked last: the box below the list offers RynthNav's auto nav to it.
|
||||
private DynamicStamp? _dynNav;
|
||||
private bool _dynNavDone;
|
||||
private string _dynNavStatus = "";
|
||||
|
||||
/// <summary>
|
||||
/// The destination box (the click's pop-up): the stamp, where RynthNav will take you, and Go (plan
|
||||
/// and walk the route: portals, recalls and dungeon entrances included), Arrow, Chat and Close.
|
||||
/// </summary>
|
||||
private void DrawDynamicNavBox(UiWindow w)
|
||||
{
|
||||
DynamicStamp? s = _dynNav;
|
||||
if (s == null) return;
|
||||
List<string> targets = s.NavCandidates();
|
||||
w.SeparatorText("Navigate to " + Cut(s.Label, 40));
|
||||
w.TextDisabled(targets.Count == 0
|
||||
? "No place, coordinates or area to go to for this stamp."
|
||||
: "Where: " + Cut(string.Join(" or ", targets), 90));
|
||||
if (targets.Count > 0)
|
||||
{
|
||||
w.Button("Go (auto nav)", "dy.nav.go", () => SendNav("go", s));
|
||||
w.Tooltip("RynthNav plans the route (walking, portals, recalls, the dungeon's entrance) and walks it.");
|
||||
w.SameLine();
|
||||
w.Button("Arrow", "dy.nav.arrow", () => SendNav("arrow", s));
|
||||
w.Tooltip("Only point RynthNav's arrow at it.");
|
||||
w.SameLine();
|
||||
}
|
||||
w.Button("Chat", "dy.nav.chat", () => PrintStamp(s, _dynNavDone));
|
||||
w.SameLine();
|
||||
w.Button("Close", "dy.nav.close", () => { _dynNav = null; _dynNavStatus = ""; _selKey = ""; });
|
||||
|
||||
// The hand-in: a Parchment from your packs to the stamp's NPC (RynthAi's /ub give).
|
||||
if (s.Npc.Length > 0)
|
||||
{
|
||||
string? parchment = CarriedParchment();
|
||||
if (parchment != null)
|
||||
{
|
||||
w.Button("Give " + Cut(parchment, 24), "dy.nav.give", () => GiveParchment(s, parchment));
|
||||
w.Tooltip($"Hands one {parchment} to {s.Npc}. Stand near them (or Go first): AC walks you the last bit.");
|
||||
}
|
||||
else
|
||||
w.TextDisabled("No Parchment in your packs to give " + Cut(s.Npc, 30) + ".");
|
||||
}
|
||||
if (_dynNavStatus.Length > 0) w.TextDisabled(_dynNavStatus);
|
||||
}
|
||||
|
||||
// A /myquests read this long after a Parchment hand-in (the walk there and the NPC's answer), so
|
||||
// the new stamp shows as had; 0 = none due.
|
||||
private const long HandInRefreshMs = 8000;
|
||||
private long _dynRefreshAt;
|
||||
|
||||
/// <summary>The read after a hand-in, when it is due: now, or when the server's once-a-minute wait ends.</summary>
|
||||
private void RefreshAfterHandIn(QuestFlagStore flags)
|
||||
{
|
||||
if (_dynRefreshAt == 0 || _c.NowMs < _dynRefreshAt) return;
|
||||
if (flags.Loading) return;
|
||||
int wait = flags.ThrottleSecondsLeft(_c.NowMs);
|
||||
if (wait > 0) { _dynRefreshAt = _c.NowMs + wait * 1000L; return; }
|
||||
_dynRefreshAt = 0;
|
||||
_c.RequestQuests();
|
||||
}
|
||||
|
||||
// Packs scanned for a Parchment at most this often (the box draws every frame).
|
||||
private const long ParchmentScanMs = 1500;
|
||||
private long _parchmentScanAt;
|
||||
private string? _parchmentName;
|
||||
|
||||
/// <summary>
|
||||
/// The name of a Parchment you carry (the main pack and its side packs), or null. Any item
|
||||
/// whose name has "Parchment" in it; read again every <see cref="ParchmentScanMs"/>.
|
||||
/// </summary>
|
||||
private string? CarriedParchment()
|
||||
{
|
||||
if (_c.NowMs - _parchmentScanAt < ParchmentScanMs && _parchmentScanAt != 0) return _parchmentName;
|
||||
_parchmentScanAt = _c.NowMs == 0 ? 1 : _c.NowMs;
|
||||
_parchmentName = null;
|
||||
RynthCore.PluginSdk.RynthCoreHost host = _c.Host;
|
||||
uint me = _c.Character.PlayerId;
|
||||
if (!_c.InWorld || me == 0 || !host.HasGetContainerContents) return null;
|
||||
var buf = new uint[512];
|
||||
var packs = new List<uint> { me };
|
||||
for (int p = 0; p < packs.Count && p < 16; p++)
|
||||
{
|
||||
int n = Math.Min(host.GetContainerContents(packs[p], buf), buf.Length);
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
uint id = buf[i];
|
||||
if (!host.TryGetObjectName(id, out string name)) continue;
|
||||
if (name.IndexOf("Parchment", StringComparison.OrdinalIgnoreCase) >= 0) { _parchmentName = name; return name; }
|
||||
// A side pack in the main pack: look inside it too (only one level deep, as AC packs go).
|
||||
if (p == 0) packs.Add(id);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>"/ub give 1 <parchment> to <npc>": RynthAi finds the NPC by name and hands it over.</summary>
|
||||
private void GiveParchment(DynamicStamp s, string parchment)
|
||||
{
|
||||
if (!_c.InWorld) { _dynNavStatus = "Log in first."; return; }
|
||||
bool sent = _c.RunCommand($"/ub give 1 {parchment} to {s.Npc}");
|
||||
_parchmentScanAt = 0; // read the packs again after the give
|
||||
// The stamp is a quest flag: read /myquests again once the NPC has had time to answer.
|
||||
if (sent) _dynRefreshAt = _c.NowMs + HandInRefreshMs;
|
||||
_dynNavStatus = sent
|
||||
? $"Giving {parchment} to {s.Npc} (RynthAi does the give; it says so in chat if {s.Npc} isn't in sight)."
|
||||
: "Could not send the give.";
|
||||
}
|
||||
|
||||
/// <summary>Clicking a row: select it and ask RynthNav for the route (shown in chat and its overlay).</summary>
|
||||
private void SelectDynamicStamp(DynamicStamp s, bool done)
|
||||
{
|
||||
_dynNav = s;
|
||||
_dynNavDone = done;
|
||||
_dynNavStatus = "";
|
||||
if (s.NavCandidates().Count > 0) SendNav("route", s);
|
||||
}
|
||||
|
||||
/// <summary>"/rnav <verb> a || b || c" to RynthNav (it takes the first candidate on its map).</summary>
|
||||
private void SendNav(string verb, DynamicStamp s)
|
||||
{
|
||||
List<string> targets = s.NavCandidates();
|
||||
if (targets.Count == 0) return;
|
||||
_dynNavStatus = SendRynthNav(verb, targets);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// "/rnav <verb> a || b || c" to RynthNav (go walks the route, route plans it in chat, arrow
|
||||
/// points at it; RynthNav takes the first candidate on its map). What to tell the player.
|
||||
/// Shared by every row kind of the Quests tab.
|
||||
/// </summary>
|
||||
private string SendRynthNav(string verb, IReadOnlyList<string> targets)
|
||||
{
|
||||
if (targets.Count == 0) return "";
|
||||
if (!_c.InWorld) return "Log in first.";
|
||||
RynthCore.PluginSdk.RynthCoreHost host = _c.Host;
|
||||
bool sent = host.HasSendPluginCommand && host.SendPluginCommand("RynthNav", "rnav", verb + " " + string.Join(" || ", targets));
|
||||
return !sent ? "RynthNav isn't loaded (it plans and walks the route)."
|
||||
: verb == "go" ? "RynthNav is planning the route and walking it (its chat lines say how)."
|
||||
: verb == "arrow" ? "RynthNav's arrow points at it."
|
||||
: "RynthNav's route is in chat. Go walks it.";
|
||||
}
|
||||
|
||||
/// <summary>Chat: the NPC, its stamp and whether this character has it, where, the reward and
|
||||
/// any coordinates (RynthChat makes those a RynthNav arrow link).</summary>
|
||||
private void PrintStamp(DynamicStamp s, bool done)
|
||||
{
|
||||
string where = s.Place.Length > 0 ? $"{s.Area}, {s.Place}" : s.Area;
|
||||
string details = $"{where}" + (s.Reward.Length > 0 ? $" - gives {s.Reward}" : "") + (s.Note.Length > 0 ? $" - {s.Note}" : "");
|
||||
PrintEntry(s.Label, s.Stamp, done ? "have" : "missing", details, "");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,28 +1,47 @@
|
|||
// Ported from Oracle of Dereth by Advis Eveldan (advis61), MIT. See THIRD_PARTY_NOTICES.md.
|
||||
using System.Collections.Generic;
|
||||
using RynthCore.Plugin.RynthAi;
|
||||
using RynthCore.Plugin.RynthILT.IltFellowship;
|
||||
using RynthCore.Plugin.RynthOracle.Data;
|
||||
using RynthCore.Plugin.RynthOracle.Ui;
|
||||
using RynthCore.Plugin.Shared;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Views;
|
||||
|
||||
/// <summary>
|
||||
/// Fellowship: name, leader, open/locked, experience sharing and the members with their levels
|
||||
/// (upstream's status list). Read from the client's fellowship object through RynthAi's
|
||||
/// FellowshipTracker (shared source). The Mini Remote's Fellowship view links here ("/ro fellowship").
|
||||
/// A server's own fellowship rules and commands (Infinite Leaftide's larger fellowships and /fship
|
||||
/// buttons) are its server plugin's (RynthILT's Fellowship section), not drawn here. The upstream
|
||||
/// recruiting tools are not ported (see the port report).
|
||||
/// Fellowship: name, leader, open/locked, experience sharing and the members (upstream's status
|
||||
/// list). Read from the client's fellowship object through RynthAi's FellowshipTracker (shared
|
||||
/// source). The size limit and, on Infinite Leaftide, the server's fellowship features (Zone Share,
|
||||
/// luminance share, Fellowship Blackjack) come from RynthILT's "RynthILT.Server" profile. On ILT
|
||||
/// the server's /fship commands are buttons here too (create, invite, dismiss, invite landblock,
|
||||
/// list nearby, leave, disband, help). The upstream recruiting tools are not ported (see the port report).
|
||||
/// </summary>
|
||||
internal sealed partial class OracleView
|
||||
{
|
||||
private const int MaxFellows = 9; // retail
|
||||
/// <summary>
|
||||
/// ACECustom's Fellowship.MaxFellows: what an Infinite Leaftide fellowship holds when Oracle
|
||||
/// recognises the server by name but RynthILT isn't loaded to say so.
|
||||
/// </summary>
|
||||
private const int IltFellowshipFallbackMax = 29;
|
||||
|
||||
/// <summary>The server's fellowship size: RynthILT's word, else 29 on ILT, else retail 9.</summary>
|
||||
private int FellowshipMax()
|
||||
{
|
||||
IltServerProfile p = _c.Ilt.Profile;
|
||||
if (p.Available && p.Ilt) return p.FellowshipMax;
|
||||
return _c.Server.Is(ServerTags.InfiniteLeaftide) ? IltFellowshipFallbackMax : RynthIltServer.RetailFellowshipMax;
|
||||
}
|
||||
|
||||
private void DrawFellowship(UiWindow w)
|
||||
{
|
||||
FellowshipTracker f = _c.Fellowship;
|
||||
bool ilt = _c.Server.Is(ServerTags.InfiniteLeaftide) || (_c.Ilt.Profile.Available && _c.Ilt.Profile.Ilt);
|
||||
int max = FellowshipMax();
|
||||
|
||||
if (!f.IsInFellowship)
|
||||
{
|
||||
w.Text("Not in a fellowship.");
|
||||
if (ilt) DrawLeaftideFellowship(w, max);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -34,16 +53,14 @@ internal sealed partial class OracleView
|
|||
foreach ((int id, string name, int _) in members)
|
||||
if (id == leaderId) leaderName = name;
|
||||
|
||||
// A server that allows more than retail's nine: no limit is shown (its server plugin knows it).
|
||||
bool overRetail = count > MaxFellows;
|
||||
w.SeparatorText(f.FellowshipName.Length > 0 ? f.FellowshipName : "Fellowship");
|
||||
Field(w, "Leader", leaderName.Length > 0 ? leaderName : "-", 0f, 110f);
|
||||
Field(w, "Members", overRetail ? count.ToString() : $"{count} / {MaxFellows}", 300f, 400f);
|
||||
Field(w, "Members", $"{count} / {max}", 300f, 400f);
|
||||
Field(w, "Open", f.IsOpen ? "yes" : "no", 0f, 110f);
|
||||
Field(w, "Locked", f.IsLocked ? "yes" : "no", 300f, 400f);
|
||||
Field(w, "Experience", f.ShareXP ? "shared" : "not shared", 0f, 110f);
|
||||
bool mayRecruit = leaderId == (int)_c.Character.PlayerId || f.IsOpen;
|
||||
Field(w, "Recruit", !overRetail && count >= MaxFellows ? "fellowship full" : mayRecruit ? "you can recruit" : "must be open or leader", 300f, 400f);
|
||||
bool canRecruit = (leaderId == (int)_c.Character.PlayerId || f.IsOpen) && count < max;
|
||||
Field(w, "Recruit", count >= max ? "fellowship full" : canRecruit ? "you can recruit" : "must be open or leader", 300f, 400f);
|
||||
|
||||
w.SeparatorText("Members");
|
||||
if (members.Count == 0) w.TextDisabled("Reading the member list...");
|
||||
|
|
@ -61,5 +78,124 @@ internal sealed partial class OracleView
|
|||
w.TextDisabled("level " + level);
|
||||
}
|
||||
}
|
||||
|
||||
if (ilt) DrawLeaftideFellowship(w, max);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Infinite Leaftide's fellowship rules as RynthILT saved them from the server check (the size
|
||||
/// limit and each fellowship feature with its state and where to use it), then the server's
|
||||
/// /fship commands as buttons.
|
||||
/// </summary>
|
||||
private void DrawLeaftideFellowship(UiWindow w, int max)
|
||||
{
|
||||
w.SeparatorText("Infinite Leaftide");
|
||||
DrawLeaftideFeatures(w, max);
|
||||
DrawFshipCommands(w);
|
||||
}
|
||||
|
||||
private void DrawLeaftideFeatures(UiWindow w, int max)
|
||||
{
|
||||
IltServerProfile p = _c.Ilt.Profile;
|
||||
if (!p.Available)
|
||||
{
|
||||
w.TextWrapped($"Fellowships hold up to {max} here. Turn on RynthILT to see the server's fellowship features (Zone Share, luminance share, Fellowship Blackjack).");
|
||||
return;
|
||||
}
|
||||
|
||||
Field(w, "Size limit", $"{max} members", 0f, 110f);
|
||||
Field(w, "Checked", p.CheckedUtc == System.DateTime.MinValue ? "not yet" : TimeText.Friendly(_c.UtcNow - p.CheckedUtc) + " ago", 300f, 400f);
|
||||
bool any = false;
|
||||
foreach (IltFeature feature in p.InGroup("Fellowship"))
|
||||
{
|
||||
any = true;
|
||||
w.TextDisabled(feature.Label);
|
||||
w.SameLine(180f);
|
||||
w.TextColored(feature.State switch
|
||||
{
|
||||
RynthIltServer.StateOn => UiColors.Green,
|
||||
RynthIltServer.StateOff => UiColors.Red,
|
||||
_ => UiColors.Grey,
|
||||
}, IltServerProfile.StateText(feature.State));
|
||||
if (feature.Where.Length > 0)
|
||||
{
|
||||
w.SameLine(260f);
|
||||
w.TextDisabled(feature.Where);
|
||||
}
|
||||
}
|
||||
if (!any) w.TextDisabled("RynthILT hasn't reported fellowship features yet.");
|
||||
if (p.Forced) w.TextDisabled("(This character has 'Treat this world as ILT' on in RynthILT.)");
|
||||
}
|
||||
|
||||
// ── ILT /fship commands (ACECustom; the list is RynthILT's IltFellowshipCommands) ──────────
|
||||
|
||||
/// <summary>A command flagged to confirm runs on a second click within this window.</summary>
|
||||
private const long FshipConfirmMs = 4000;
|
||||
/// <summary>The server answers "/fship list" once every 10 seconds; earlier clicks aren't sent.</summary>
|
||||
private const long FshipListCooldownMs = 10_000;
|
||||
private const string FshipListCommand = "/fship list";
|
||||
/// <summary>Buttons per row (the tab is about 420 px wide).</summary>
|
||||
private const int FshipButtonsPerRow = 4;
|
||||
|
||||
private string _fshipName = "";
|
||||
private string _fshipArmed = ""; // the command waiting for its second click
|
||||
private long _fshipArmedUntil;
|
||||
private long _fshipListNextAt;
|
||||
private string _fshipStatus = "";
|
||||
|
||||
/// <summary>
|
||||
/// The /fship buttons: a name box (a player or fellowship name; blank = the selected player for
|
||||
/// Invite / Dismiss), then one button per command. Names with spaces are sent quoted
|
||||
/// (ServerCommandShare.Compose); Leave, Disband, Dismiss and Invite landblock ask first.
|
||||
/// </summary>
|
||||
private void DrawFshipCommands(UiWindow w)
|
||||
{
|
||||
w.SeparatorText("/fship commands");
|
||||
w.InputText("Name", "fs.name", _fshipName, ServerCommandShare.MaxArgument, s => _fshipName = s);
|
||||
w.Tooltip("A player name (Invite, Dismiss) or a fellowship name (Create). Blank = your selected player.");
|
||||
|
||||
long now = _c.NowMs;
|
||||
if (_fshipArmed.Length > 0 && now > _fshipArmedUntil) _fshipArmed = "";
|
||||
IReadOnlyList<ServerCommand> commands = IltFellowshipCommands.Commands;
|
||||
for (int i = 0; i < commands.Count; i++)
|
||||
{
|
||||
ServerCommand c = commands[i];
|
||||
bool armed = c.Confirm && _fshipArmed == c.Command;
|
||||
string? line = ServerCommandShare.Compose(c, _fshipName);
|
||||
if (i % FshipButtonsPerRow != 0) w.SameLine();
|
||||
w.Button(armed ? "Confirm " + c.Label + "?" : c.Label, "fs.cmd." + i, () => RunFship(c), small: true);
|
||||
w.Tooltip(c.Tooltip + "\n\n" + (line ?? "Type a name first."));
|
||||
}
|
||||
if (_fshipStatus.Length > 0) w.TextDisabled(_fshipStatus);
|
||||
}
|
||||
|
||||
/// <summary>One /fship button click (plugin pump: script window events run there).</summary>
|
||||
private void RunFship(ServerCommand c)
|
||||
{
|
||||
long now = _c.NowMs;
|
||||
string? line = ServerCommandShare.Compose(c, _fshipName);
|
||||
if (line == null)
|
||||
{
|
||||
_fshipStatus = c.Label + ": type a name first.";
|
||||
return;
|
||||
}
|
||||
if (c.Confirm && !(_fshipArmed == c.Command && now <= _fshipArmedUntil))
|
||||
{
|
||||
_fshipArmed = c.Command;
|
||||
_fshipArmedUntil = now + FshipConfirmMs;
|
||||
_fshipStatus = $"Click 'Confirm {c.Label}?' again within {FshipConfirmMs / 1000} seconds to send: {line}";
|
||||
return;
|
||||
}
|
||||
_fshipArmed = "";
|
||||
if (c.Command == FshipListCommand)
|
||||
{
|
||||
if (now < _fshipListNextAt)
|
||||
{
|
||||
_fshipStatus = $"List nearby: wait {(_fshipListNextAt - now + 999) / 1000}s (the server answers once every 10 seconds).";
|
||||
return;
|
||||
}
|
||||
_fshipListNextAt = now + FshipListCooldownMs;
|
||||
}
|
||||
_fshipStatus = _c.Send(line) ? "Sent: " + line : "Couldn't send (log in first): " + line;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
18
Plugins/RynthCore.Plugin.RynthOracle/Views/LegendaryTab.cs
Normal file
18
Plugins/RynthCore.Plugin.RynthOracle/Views/LegendaryTab.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using RynthCore.Plugin.RynthOracle.Data;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Views;
|
||||
|
||||
/// <summary>
|
||||
/// Legendary Key quests (John in Arwic counts 30 for his reward): rows of the Quests tab's merged
|
||||
/// list since 2026-10-18 (QuestsTab.cs: LEG rows, John's counter in the trackers' status). The list
|
||||
/// and notes follow the "Arwic John Route" sheet (legendary.csv). What is left here is the chat print.
|
||||
/// </summary>
|
||||
internal sealed partial class OracleView
|
||||
{
|
||||
/// <summary>Chat: the quest, its flags and status, the sheet's notes, wiki and video links.</summary>
|
||||
private void PrintLegendary(LegendaryQuest q, string status)
|
||||
{
|
||||
PrintEntry(q.Label, string.Join(", ", q.Flags), status, q.Note, q.Url);
|
||||
if (q.Video.Length > 0) _c.Print("Video: " + q.Video);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,61 +1,14 @@
|
|||
// Ported from Oracle of Dereth by Advis Eveldan (advis61), MIT. See THIRD_PARTY_NOTICES.md.
|
||||
using System;
|
||||
using RynthCore.Plugin.RynthOracle.Data;
|
||||
using RynthCore.Plugin.RynthOracle.Ui;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Views;
|
||||
|
||||
/// <summary>Markers: which of the 100 exploration markers you've found, and the next one to run to.</summary>
|
||||
/// <summary>
|
||||
/// The 100 exploration markers: rows of the Quests tab's merged list since 2026-10-18 (QuestsTab.cs:
|
||||
/// MRK rows, markers found and the next one in the trackers' status). What is left here is the chat print.
|
||||
/// </summary>
|
||||
internal sealed partial class OracleView
|
||||
{
|
||||
private const int MarkerPageSize = 50;
|
||||
private bool _markersMissingOnly;
|
||||
private int _markerPage;
|
||||
|
||||
private void DrawMarkers(UiWindow w)
|
||||
{
|
||||
QuestFlagStore flags = _c.Flags;
|
||||
if (flags.LastReadUtc == DateTime.MinValue)
|
||||
w.TextDisabled("Quest flags not read yet (Quests tab, Refresh).");
|
||||
|
||||
int found = 0;
|
||||
Marker? next = null;
|
||||
foreach (Marker m in MarkerList.All)
|
||||
{
|
||||
if (m.IsFound(flags)) found++;
|
||||
else next ??= m;
|
||||
}
|
||||
w.ProgressBar(MarkerList.All.Count > 0 ? (float)found / MarkerList.All.Count : 0f, -1f, 0f, $"{found} / {MarkerList.All.Count} markers found");
|
||||
if (next != null)
|
||||
{
|
||||
Marker n = next;
|
||||
w.TextDisabled("Next:");
|
||||
w.SameLine();
|
||||
w.Selectable($"#{next.Number} {next.Name} ({next.Location})", "m.next", false, () => PrintMarker(n));
|
||||
w.Tooltip("Prints the directions in chat.");
|
||||
}
|
||||
w.Checkbox("Only the ones still to find", "m.missing", _markersMissingOnly, v => { _markersMissingOnly = v; _markerPage = 0; });
|
||||
|
||||
var rows = new System.Collections.Generic.List<Marker>();
|
||||
foreach (Marker m in MarkerList.All)
|
||||
if (!_markersMissingOnly || !m.IsFound(flags)) rows.Add(m);
|
||||
_markerPage = Pager(w, "m.page", _markerPage, rows.Count, MarkerPageSize, p => _markerPage = p);
|
||||
|
||||
w.BeginChild("m.list", 0f, 0f, border: true);
|
||||
int start = _markerPage * MarkerPageSize;
|
||||
for (int i = start; i < rows.Count && i < start + MarkerPageSize; i++)
|
||||
{
|
||||
Marker m = rows[i];
|
||||
DoneMark(w, m.IsFound(flags));
|
||||
w.SameLine(50f);
|
||||
Marker row = m;
|
||||
w.Selectable(Cut($"#{m.Number} {m.Name}", 38), "m.r." + m.Number, false, () => PrintMarker(row), 300f);
|
||||
w.SameLine(360f);
|
||||
w.TextDisabled(Cut(m.Location, 24));
|
||||
}
|
||||
w.EndChild();
|
||||
}
|
||||
|
||||
private void PrintMarker(Marker m) =>
|
||||
PrintEntry($"Marker {m.Number}: {m.Name}", "", m.IsFound(_c.Flags) ? "found" : "", m.Hint, m.Url);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using RynthCore.Plugin.RynthOracle.Data;
|
||||
using RynthCore.Plugin.RynthOracle.Ui;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Views;
|
||||
|
|
@ -12,8 +13,12 @@ internal sealed partial class OracleView
|
|||
public const string TabQuests = "Quests", TabCharacter = "Character",
|
||||
TabSkills = "Skills", TabAttributes = "Attributes", TabProgress = "Progress",
|
||||
TabAugs = "Augs", TabSociety = "Society",
|
||||
TabMarkers = "Markers", TabTitles = "Titles", TabVoid = "Void", TabFellowship = "Fellowship",
|
||||
TabBoards = "Leaderboards", TabConquest = "Conquest", TabBreeding = "Pet Breeding", TabAbout = "About";
|
||||
TabTitles = "Titles", TabVoid = "Void", TabFellowship = "Fellowship",
|
||||
TabBoards = "Leaderboards", TabConquest = "Conquest", TabBreeding = "Pet Breeding",
|
||||
TabAbout = "About";
|
||||
// The Markers, Legendary and Dynamic Stamps tabs (and RynthILT's Temple guardians) are rows of
|
||||
// the Quests tab since 2026-10-18 (QuestsTab.cs, ShowTrackers); a saved tab name of theirs falls
|
||||
// back to Quests.
|
||||
|
||||
/// <summary>A tab: shown where any of its server tags matches the server; no tags = everywhere (retail).</summary>
|
||||
private sealed record TabDef(string Name, string[] Servers, Action<UiWindow> Draw, bool LiveTimers);
|
||||
|
|
@ -41,7 +46,6 @@ internal sealed partial class OracleView
|
|||
new(TabProgress, any, DrawProgressEmbed, true),
|
||||
new(TabAugs, any, DrawAugs, true),
|
||||
new(TabSociety, any, DrawSociety, true),
|
||||
new(TabMarkers, any, DrawMarkers, false),
|
||||
new(TabTitles, any, DrawTitles, false),
|
||||
new(TabVoid, any, DrawVoid, true),
|
||||
new(TabFellowship, any, DrawFellowship, false),
|
||||
|
|
@ -164,6 +168,28 @@ internal sealed partial class OracleView
|
|||
if (url.Length > 0) _c.Print(url);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The quest trackers' refresh row (Society, Augs, Conquest):
|
||||
/// a small Refresh (the same /myquests read as the Quests tab's) and how fresh the flags are,
|
||||
/// or why they can't be read. <paramref name="what"/> names what the flags show ("stamps").
|
||||
/// </summary>
|
||||
private void QuestFlagsBar(UiWindow w, string id, string what)
|
||||
{
|
||||
QuestFlagStore flags = _c.Flags;
|
||||
w.SmallButton("Refresh", id + ".refresh", _c.RequestQuests);
|
||||
w.Tooltip("Reads your quest flags again (/myquests), as the Quests tab's Refresh does.");
|
||||
w.SameLine();
|
||||
int wait = flags.ThrottleSecondsLeft(_c.NowMs);
|
||||
if (flags.ServerDisabled)
|
||||
w.TextColored(UiColors.Red, "This server has /myquests turned off, so " + what + " can't be read.");
|
||||
else if (flags.Loading)
|
||||
w.TextColored(UiColors.Yellow, "Reading your quest flags...");
|
||||
else if (flags.LastReadUtc == DateTime.MinValue)
|
||||
w.TextDisabled("Quest flags not read yet: Refresh to see your " + what + ".");
|
||||
else
|
||||
w.TextDisabled($"Flags read at {flags.LastReadUtc.ToLocalTime():HH:mm}" + (wait > 0 ? $" (Refresh again in {wait}s)" : ""));
|
||||
}
|
||||
|
||||
/// <summary>Previous / page n of m / next, with the page kept in range.</summary>
|
||||
private static int Pager(UiWindow w, string id, int page, int count, int pageSize, Action<int> setPage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,25 +1,40 @@
|
|||
// Ported from Oracle of Dereth by Advis Eveldan (advis61), MIT. See THIRD_PARTY_NOTICES.md.
|
||||
// Tracking, kill tasks and rewards merged in from RynthAi's Mini Remote Quests tab and
|
||||
// UtilityBelt ILT's quest tracker (2026-10-13). Infinite Leaftide's quest bonus list (/qb) stays
|
||||
// RynthILT's (the Quests section it draws in the Mini Remote).
|
||||
// Tracking, kill tasks, rewards and the quest bonus list merged in from RynthAi's Mini Remote
|
||||
// Quests tab and UtilityBelt ILT's quest tracker (2026-10-13). The Legendary, Markers and Dynamic
|
||||
// Stamps tabs and RynthILT's Temple guardians merged in as tracker rows (2026-10-18).
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using RynthCore.Plugin.RynthOracle.Data;
|
||||
using RynthCore.Plugin.RynthOracle.Ui;
|
||||
using RynthCore.Plugin.Shared;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Views;
|
||||
|
||||
/// <summary>
|
||||
/// Quests: every flag the character holds, cross-referenced with the master quest list, in one
|
||||
/// searchable, sortable, paged list (upstream's Quest Flags tab). The * column tracks a quest in
|
||||
/// the Quest Timers window; clicking a quest opens it below the list, with its notes and the
|
||||
/// rewards editor (UtilityBelt ILT's).
|
||||
/// What a row of the merged Quests list is. Every kind but Quest is a tracker: Legendary Key quests
|
||||
/// and exploration markers everywhere, Dynamic Stamps and the Temple guardians on Infinite Leaftide.
|
||||
/// </summary>
|
||||
internal enum QuestKind { Quest, Legendary, Marker, Dynamic, Guardian }
|
||||
|
||||
/// <summary>
|
||||
/// Quests: every flag the character holds, cross-referenced with the master quest list, plus the
|
||||
/// trackers (Legendary Key quests, exploration markers, Dynamic Stamps, Temple guardians), in one
|
||||
/// searchable, sortable, paged list. Each kind shows only on the servers it belongs to, and
|
||||
/// "Trackers only" narrows the list to the trackers with their status above it. The * column tracks
|
||||
/// a quest in the Quest Timers window; clicking a row opens it below the list: a quest's notes and
|
||||
/// rewards editor, a tracker's details, and RynthNav's Go / Route / Arrow for any coordinates in
|
||||
/// its notes. On Infinite Leaftide the quest bonus list (/qb, read by RynthILT) follows.
|
||||
/// </summary>
|
||||
internal sealed partial class OracleView
|
||||
{
|
||||
private const int QuestPageSize = 40;
|
||||
private const int QbShownMax = 150; // per /qb list on one pass (the rest: narrow with Search)
|
||||
private const float QuestListHeightWithPanel = 300f;
|
||||
private static readonly string[] QuestSorts = { "Flag", "Name", "Done first", "Not done first", "Ready soonest", "Most solves" };
|
||||
/// <summary>The kinds' names in <see cref="QuestKind"/> order (the Show filter).</summary>
|
||||
private static readonly string[] KindNames = { "Quests", "Legendary", "Markers", "Dynamic Stamps", "Guardians" };
|
||||
/// <summary>The guardians' last answer is offered for this long (RynthILT's Mini Remote line does the same).</summary>
|
||||
private const long GuardianAnswerShownSec = 600;
|
||||
|
||||
// The reward editor's fields, in QuestReward order (two percentages, then counts).
|
||||
private static readonly string[] RewardLabels =
|
||||
|
|
@ -27,21 +42,79 @@ internal sealed partial class OracleView
|
|||
|
||||
private string _questSearch = "";
|
||||
private bool _qDone, _qNotDone, _qRepeatable, _qOneTime, _qNew, _qServer, _qTracked, _qKill;
|
||||
// Trackers only: the list keeps only tracker rows, with the trackers' status above it.
|
||||
private bool _qTrackers;
|
||||
// The Show filter: one kind, or null for every kind this server has.
|
||||
private QuestKind? _qKind;
|
||||
private int _questSort;
|
||||
private int _questPage;
|
||||
private int _dynArea; // 0 = all areas, else DynamicStampList.Areas[n - 1] (Show: Dynamic Stamps)
|
||||
|
||||
private readonly List<Quest> _questRows = new();
|
||||
private readonly List<QuestRow> _questRows = new();
|
||||
private string _questKey = "";
|
||||
private long _questBuiltMs;
|
||||
|
||||
// The quest opened below the list, and its reward editor's text (kept while typing).
|
||||
// The row opened below the list: a quest (_questSel), a Dynamic Stamp (_dynNav) or another tracker (_selKey).
|
||||
private QuestKind _selKind;
|
||||
private string _selKey = "";
|
||||
private string _questSel = "";
|
||||
private readonly string[] _rewardEdit = new string[RewardLabels.Length];
|
||||
private string _rewardMsg = "";
|
||||
|
||||
/// <summary>One row of the merged list: its kind, a unique key, and the entry it shows.</summary>
|
||||
private sealed class QuestRow
|
||||
{
|
||||
public QuestKind Kind;
|
||||
/// <summary>Unique across kinds: the quest flag, or "lg:", "mk:", "dy:", "gd:" and the tracker's own key.</summary>
|
||||
public string Key = "";
|
||||
public string Label = "";
|
||||
/// <summary>The tracker's group: a Legendary area, a marker's location, a stamp's area, a guardian's NPC.</summary>
|
||||
public string Group = "";
|
||||
/// <summary>Its place in its own list (the default order of tracker rows).</summary>
|
||||
public int Order;
|
||||
public bool Done;
|
||||
public Quest? Q;
|
||||
public LegendaryQuest? L;
|
||||
public Marker? M;
|
||||
public DynamicStamp? D;
|
||||
public IltGuardianRow? G;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The kinds this server shows: quests, Legendary quests and markers everywhere; Dynamic Stamps
|
||||
/// and the Temple guardians only on Infinite Leaftide. Internal for the tests.
|
||||
/// </summary>
|
||||
internal List<QuestKind> AvailableKinds()
|
||||
{
|
||||
var kinds = new List<QuestKind> { QuestKind.Quest, QuestKind.Legendary, QuestKind.Marker };
|
||||
if (_c.Server.Is(ServerTags.InfiniteLeaftide))
|
||||
{
|
||||
kinds.Add(QuestKind.Dynamic);
|
||||
kinds.Add(QuestKind.Guardian);
|
||||
}
|
||||
return kinds;
|
||||
}
|
||||
|
||||
/// <summary>A kind is listed: this server has it, the Show filter allows it, and Trackers only doesn't hide it.</summary>
|
||||
private bool KindListed(QuestKind k, List<QuestKind> kinds)
|
||||
=> kinds.Contains(k) && (_qKind == null || _qKind == k) && !(_qTrackers && k == QuestKind.Quest);
|
||||
|
||||
/// <summary>
|
||||
/// Opens the Quests tab on the trackers: one kind (/ro legendary, /ro dynamic, /ro markers,
|
||||
/// /ro guardians) or all of them (null). The old tabs' commands land here.
|
||||
/// </summary>
|
||||
public void ShowTrackers(QuestKind? kind)
|
||||
{
|
||||
_qTrackers = kind != QuestKind.Quest;
|
||||
_qKind = kind;
|
||||
_questPage = 0;
|
||||
Tab = TabQuests;
|
||||
}
|
||||
|
||||
private void DrawQuests(UiWindow w)
|
||||
{
|
||||
QuestFlagStore flags = _c.Flags;
|
||||
RefreshAfterHandIn(flags);
|
||||
if (flags.ServerDisabled)
|
||||
w.TextColored(UiColors.Red, "This server has /myquests turned off, so quest flags can't be read.");
|
||||
else if (flags.Loading)
|
||||
|
|
@ -50,9 +123,12 @@ internal sealed partial class OracleView
|
|||
w.TextDisabled("Quest flags not read yet. Press Refresh, or type /myquests.");
|
||||
else
|
||||
w.Text($"{flags.Flags.Count} quest flags on this character, read at {flags.LastReadUtc.ToLocalTime():HH:mm}.");
|
||||
int throttleLeft = flags.ThrottleSecondsLeft(_c.NowMs);
|
||||
if (throttleLeft > 0 && !flags.Loading)
|
||||
w.TextDisabled($"The server answers one /myquests a minute: Refresh works again in {throttleLeft}s.");
|
||||
|
||||
w.Button("Refresh", "q.refresh", _c.RequestQuests);
|
||||
w.Tooltip("Sends /myquests to the server and reads the reply.");
|
||||
w.Tooltip("Sends /myquests to the server and reads the reply (every quest, Legendary quest, marker and stamp).");
|
||||
w.SameLine();
|
||||
bool timersShown = _c.QuestTimersWindowVisible();
|
||||
w.Button(timersShown ? "Hide quest timers" : "Show quest timers", "q.timers", () => _c.SetQuestTimersWindow(!timersShown));
|
||||
|
|
@ -63,9 +139,15 @@ internal sealed partial class OracleView
|
|||
? $"{cat.RetailCount} retail quests + {cat.ServerCount} {cat.PackServer} quests"
|
||||
: $"{cat.RetailCount} retail quests");
|
||||
|
||||
// A Show filter left on a kind this server doesn't have (another server's character): all kinds.
|
||||
List<QuestKind> kinds = AvailableKinds();
|
||||
if (_qKind is QuestKind chosen && !kinds.Contains(chosen)) _qKind = null;
|
||||
bool ilt = kinds.Contains(QuestKind.Dynamic);
|
||||
|
||||
w.InputText("Search", "q.search", _questSearch, 64, s => { _questSearch = s; _questPage = 0; });
|
||||
w.Tooltip("Words to find in the quest's flag or name, e.g. \"kill task\". ");
|
||||
w.Tooltip("Words to find in a row: a quest's flag or name; a tracker's NPC, place, area, reward or notes. Also filters the quest bonus list.");
|
||||
w.Checkbox("Done", "q.done", _qDone, v => { _qDone = v; _questPage = 0; });
|
||||
w.Tooltip("Done quests; Legendary quests and stamps you have, markers found, guardians on cooldown.");
|
||||
w.SameLine();
|
||||
w.Checkbox("Not done", "q.notdone", _qNotDone, v => { _qNotDone = v; _questPage = 0; });
|
||||
w.SameLine();
|
||||
|
|
@ -86,18 +168,49 @@ internal sealed partial class OracleView
|
|||
w.Checkbox(_c.Catalog.PackServer + " only", "q.server", _qServer, v => { _qServer = v; _questPage = 0; });
|
||||
w.Tooltip($"Quests only {_c.Catalog.PackServer} has.");
|
||||
}
|
||||
|
||||
w.Checkbox("Trackers only", "q.trackers", _qTrackers, v =>
|
||||
{
|
||||
_qTrackers = v;
|
||||
if (v && _qKind == QuestKind.Quest) _qKind = null;
|
||||
_questPage = 0;
|
||||
});
|
||||
w.Tooltip("Only the trackers, with their status above the list: Legendary Key quests, exploration markers"
|
||||
+ (ilt ? ", Dynamic Stamps and the Temple guardians." : ".")
|
||||
+ (ilt ? "" : "\nDynamic Stamps and the Temple guardians show on Infinite Leaftide."));
|
||||
w.SameLine();
|
||||
var kindItems = new List<string>(kinds.Count + 1) { "Everything" };
|
||||
foreach (QuestKind k in kinds) kindItems.Add(KindNames[(int)k]);
|
||||
int kindIndex = _qKind is QuestKind sel ? kinds.IndexOf(sel) + 1 : 0;
|
||||
w.Combo("Show", "q.kind", kindIndex, kindItems, i =>
|
||||
{
|
||||
_qKind = i <= 0 || i > kinds.Count ? null : kinds[i - 1];
|
||||
if (_qKind == QuestKind.Quest) _qTrackers = false;
|
||||
_questPage = 0;
|
||||
});
|
||||
w.Tooltip("One kind of row, or everything this server has.");
|
||||
if (_qKind == QuestKind.Dynamic)
|
||||
{
|
||||
w.SameLine();
|
||||
var areaItems = new List<string>(DynamicStampList.Areas.Count + 1) { "All areas" };
|
||||
areaItems.AddRange(DynamicStampList.Areas);
|
||||
w.Combo("##dyarea", "dy.area", Math.Clamp(_dynArea, 0, areaItems.Count - 1), areaItems, v => { _dynArea = v; _questPage = 0; });
|
||||
}
|
||||
w.Combo("Sort", "q.sort", _questSort, QuestSorts, i => { _questSort = Math.Clamp(i, 0, QuestSorts.Length - 1); _questPage = 0; });
|
||||
|
||||
List<Quest> rows = QuestRows();
|
||||
if (_qTrackers || _qKind is QuestKind k2 && k2 != QuestKind.Quest) DrawTrackerSummary(w, kinds);
|
||||
|
||||
List<QuestRow> rows = QuestRows(kinds);
|
||||
w.Text($"{rows.Count} shown");
|
||||
w.SameLine(160f);
|
||||
_questPage = Pager(w, "q.page", _questPage, rows.Count, QuestPageSize, p => _questPage = p);
|
||||
|
||||
// A fixed-height list when the opened quest follows it; else it fills the page.
|
||||
bool selected = _questSel.Length > 0;
|
||||
w.BeginChild("q.list", 0f, selected ? QuestListHeightWithPanel : 0f, border: true);
|
||||
// A fixed-height list when something follows it (the opened row, the /qb list); else it fills the page.
|
||||
IltQuestBonusList? qb = ilt && !_qTrackers ? _c.Ilt.Profile.QuestBonus : null;
|
||||
bool selected = HasSelection();
|
||||
w.BeginChild("q.list", 0f, selected || qb != null ? QuestListHeightWithPanel : 0f, border: true);
|
||||
w.TextDisabled("*");
|
||||
w.Tooltip("Track: list the quest in the Quest Timers window.");
|
||||
w.Tooltip("Track: list the quest in the Quest Timers window. Trackers show their kind here instead (LEG, MRK, DYN, GRD).");
|
||||
w.SameLine(28f);
|
||||
w.TextDisabled("Done");
|
||||
w.SameLine(72f);
|
||||
|
|
@ -108,26 +221,38 @@ internal sealed partial class OracleView
|
|||
w.TextDisabled("Solves");
|
||||
w.SameLine(530f);
|
||||
w.TextDisabled("Rewards");
|
||||
w.Tooltip("What you recorded for the quest (click it to edit): %XP, %Lum, Coins, Trinkets, Medallions, Yellow/Red/Blue powder, MMDs (D), at Level.");
|
||||
w.Tooltip("What you recorded for a quest (click it to edit): %XP, %Lum, Coins, Trinkets, Medallions, Yellow/Red/Blue powder, MMDs (D), at Level.\n"
|
||||
+ "Trackers: a Legendary quest's luminance, a marker's location, a stamp's area, a guardian's next turn-in.");
|
||||
|
||||
DateTime now = _c.UtcNow;
|
||||
bool canTrack = _c.Book.Loaded;
|
||||
int start = _questPage * QuestPageSize;
|
||||
for (int i = start; i < rows.Count && i < start + QuestPageSize; i++)
|
||||
DrawQuestRow(w, rows[i], flags, now, canTrack);
|
||||
if (rows.Count == 0)
|
||||
w.TextDisabled(_qTracked ? "No tracked quests match. Tick * on a quest to track it." : "No rows match.");
|
||||
w.EndChild();
|
||||
|
||||
if (selected) DrawSelection(w);
|
||||
if (qb != null) DrawQuestBonus(w, qb);
|
||||
}
|
||||
|
||||
/// <summary>One list row: a quest (track, done, timer, solves, rewards) or a tracker (kind, status, its own columns).</summary>
|
||||
private void DrawQuestRow(UiWindow w, QuestRow r, QuestFlagStore flags, DateTime now, bool canTrack)
|
||||
{
|
||||
if (r.Kind == QuestKind.Quest)
|
||||
{
|
||||
Quest q = rows[i];
|
||||
Quest q = r.Q!;
|
||||
string flag = q.Flag;
|
||||
bool tracked = _c.Book.IsTracked(flag);
|
||||
w.ToggleButton("*", "q.t." + flag, tracked, () => { if (canTrack) _c.Book.ToggleTracked(flag); }, small: true);
|
||||
w.SameLine(28f);
|
||||
bool done = q.IsComplete(flags);
|
||||
DoneMark(w, done);
|
||||
DoneMark(w, r.Done);
|
||||
w.SameLine(72f);
|
||||
Quest row = q;
|
||||
w.Selectable(Cut(q.Label, 44), "q.r." + flag, flag == _questSel, () => SelectQuest(row), 290f);
|
||||
w.Selectable(Cut(q.Label, 44), "q.r." + flag, IsSelected(r), () => SelectRow(r), 290f);
|
||||
w.Tooltip(flag);
|
||||
w.SameLine(370f);
|
||||
TimerText(w, q, flags, now, done);
|
||||
TimerText(w, q, flags, now, r.Done);
|
||||
string solves = q.SolvesText(flags);
|
||||
if (solves.Length > 0)
|
||||
{
|
||||
|
|
@ -141,11 +266,99 @@ internal sealed partial class OracleView
|
|||
w.Text(Cut(reward, 18));
|
||||
if (reward.Length > 18) w.Tooltip(reward);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (rows.Count == 0) w.TextDisabled(_qTracked ? "No tracked quests match. Tick * on a quest to track it." : "No quests match.");
|
||||
w.EndChild();
|
||||
|
||||
if (selected) DrawSelectedQuest(w);
|
||||
// A tracker: its kind tag where the * is, then its mark, label and columns.
|
||||
w.TextColored(UiColors.Gold, r.Kind switch
|
||||
{
|
||||
QuestKind.Legendary => "LEG",
|
||||
QuestKind.Marker => "MRK",
|
||||
QuestKind.Dynamic => "DYN",
|
||||
_ => "GRD",
|
||||
});
|
||||
w.SameLine(28f);
|
||||
TrackerMark(w, r);
|
||||
w.SameLine(72f);
|
||||
w.Selectable(Cut(r.Label, 44), "q.r." + r.Key, IsSelected(r), () => SelectRow(r), 290f);
|
||||
string tip = TrackerTooltip(r);
|
||||
if (tip.Length > 0) w.Tooltip(Cut(tip, 300));
|
||||
switch (r.Kind)
|
||||
{
|
||||
case QuestKind.Legendary:
|
||||
{
|
||||
LegendaryQuest l = r.L!;
|
||||
TimeSpan? left = l.TimeLeft(flags, now);
|
||||
w.SameLine(370f);
|
||||
if (left == null) w.TextColored(UiColors.Grey, "not done");
|
||||
else if (left.Value <= TimeSpan.Zero) w.TextColored(UiColors.Green, "ready");
|
||||
else w.TextColored(UiColors.Yellow, TimeText.Friendly(left.Value));
|
||||
if (l.Luminance > 0)
|
||||
{
|
||||
w.SameLine(530f);
|
||||
w.TextDisabled(TimeText.Number(l.Luminance) + " lum");
|
||||
}
|
||||
break;
|
||||
}
|
||||
case QuestKind.Guardian:
|
||||
{
|
||||
IltGuardianRow g = r.G!;
|
||||
w.SameLine(370f);
|
||||
w.TextColored(g.Ready ? UiColors.Green : g.Status == "Unknown" ? UiColors.Grey : UiColors.Yellow, Cut(g.Status, 14));
|
||||
w.SameLine(470f);
|
||||
w.Text("#" + g.Count);
|
||||
if (g.Eta.Length > 0)
|
||||
{
|
||||
w.SameLine(530f);
|
||||
w.TextDisabled(Cut(g.Eta, 18));
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
// Markers and stamps: where they are.
|
||||
if (r.Group.Length > 0)
|
||||
{
|
||||
w.SameLine(530f);
|
||||
w.TextDisabled(Cut(r.Group, 18));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>A tracker's done column: have / need, found / --, or a guardian's ready / wait.</summary>
|
||||
private static void TrackerMark(UiWindow w, QuestRow r)
|
||||
{
|
||||
switch (r.Kind)
|
||||
{
|
||||
case QuestKind.Marker:
|
||||
DoneMark(w, r.Done);
|
||||
break;
|
||||
case QuestKind.Guardian:
|
||||
// Done = turned in and on cooldown; not done = a turn-in is ready (or unknown).
|
||||
w.TextColored(r.Done ? UiColors.Yellow : UiColors.Green, r.Done ? "wait" : "ready");
|
||||
break;
|
||||
default:
|
||||
w.TextColored(r.Done ? UiColors.Green : UiColors.Red, r.Done ? "have" : "need");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>A tracker row's hover text: its notes, hint or where it comes from.</summary>
|
||||
private static string TrackerTooltip(QuestRow r) => r.Kind switch
|
||||
{
|
||||
QuestKind.Legendary => r.L!.Note.Length > 0 ? $"{r.Group}: {r.L.Note}" : r.Group,
|
||||
QuestKind.Marker => r.M!.Hint,
|
||||
QuestKind.Dynamic => string.Join(" - ", Parts(r.D!.Area, r.D.Place, r.D.Reward.Length > 0 ? "gives " + r.D.Reward : "", r.D.Note)),
|
||||
QuestKind.Guardian => $"{r.G!.Npc}: {(r.G.Exact ? "from /myquests (exact)" : "from /qb wait stamps (count and timer are estimates)")}",
|
||||
_ => "",
|
||||
};
|
||||
|
||||
/// <summary>The non-empty strings, in order.</summary>
|
||||
private static List<string> Parts(params string[] items)
|
||||
{
|
||||
var list = new List<string>(items.Length);
|
||||
foreach (string s in items) if (!string.IsNullOrWhiteSpace(s)) list.Add(s);
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>The timer column: "ready" (green once done), a countdown, "N left" (yellow) or done (grey).</summary>
|
||||
|
|
@ -161,16 +374,335 @@ internal sealed partial class OracleView
|
|||
}
|
||||
}
|
||||
|
||||
// ── The opened quest and its rewards ──────────────────────────────────
|
||||
// ── Tracker status (above the list in Trackers only / one tracker kind) ──
|
||||
|
||||
/// <summary>
|
||||
/// The trackers' status (what each old tab showed at its top), for the kinds the Show filter
|
||||
/// lists: John's Legendary counter, markers found and the next one, stamps had, and the Temple
|
||||
/// guardians' switches, last answer and hand-in.
|
||||
/// </summary>
|
||||
private void DrawTrackerSummary(UiWindow w, List<QuestKind> kinds)
|
||||
{
|
||||
QuestFlagStore flags = _c.Flags;
|
||||
bool Shows(QuestKind k) => kinds.Contains(k) && (_qKind == null || _qKind == k);
|
||||
|
||||
if (Shows(QuestKind.Legendary))
|
||||
{
|
||||
DateTime now = _c.UtcNow;
|
||||
int have = 0, ready = 0;
|
||||
foreach (LegendaryQuest q in LegendaryList.All)
|
||||
{
|
||||
TimeSpan? left = q.TimeLeft(flags, now);
|
||||
if (left == null) continue;
|
||||
have++;
|
||||
if (left.Value <= TimeSpan.Zero) ready++;
|
||||
}
|
||||
// John's own counter when the server has it; it counts every key quest, not just these.
|
||||
int? john = LegendaryList.JohnCount(flags);
|
||||
int shown = john ?? have;
|
||||
w.ProgressBar(Math.Min(1f, (float)shown / LegendaryList.JohnTarget), -1f, 0f,
|
||||
john != null
|
||||
? $"John: {john} / {LegendaryList.JohnTarget} legendary quests ({ready} ready to run again)"
|
||||
: $"{have} / {LegendaryList.JohnTarget} toward John, {ready} ready to run again");
|
||||
w.Tooltip("John in Arwic (33.6N 56.7E) rewards 30 different Legendary Key quests: 500,000 luminance and a 25-use Legendary Key.\n"
|
||||
+ "Bar: his counter (legendaryquestcounter_0913) when /myquests has it, else the Legendary quests you've done.");
|
||||
}
|
||||
|
||||
if (Shows(QuestKind.Marker))
|
||||
{
|
||||
int found = 0;
|
||||
Marker? next = null;
|
||||
foreach (Marker m in MarkerList.All)
|
||||
{
|
||||
if (m.IsFound(flags)) found++;
|
||||
else next ??= m;
|
||||
}
|
||||
w.ProgressBar(MarkerList.All.Count > 0 ? (float)found / MarkerList.All.Count : 0f, -1f, 0f, $"{found} / {MarkerList.All.Count} markers found");
|
||||
if (next != null)
|
||||
{
|
||||
Marker n = next;
|
||||
w.TextDisabled("Next marker:");
|
||||
w.SameLine();
|
||||
w.Selectable($"#{next.Number} {next.Name} ({next.Location})", "m.next", false, () => SelectRow(MarkerRow(n, flags, 0)));
|
||||
w.Tooltip("Opens it below the list (directions, RynthNav).");
|
||||
}
|
||||
}
|
||||
|
||||
if (Shows(QuestKind.Dynamic))
|
||||
{
|
||||
List<DynamicStamp> all = DynamicStampList.All;
|
||||
int have = 0;
|
||||
foreach (DynamicStamp s in all) if (s.Have(flags)) have++;
|
||||
int unlisted = DynamicStampList.Unlisted(flags).Count;
|
||||
w.ProgressBar(all.Count == 0 ? 0f : (float)have / all.Count, -1f, 0f,
|
||||
$"{have} / {all.Count} listed Dynamic stamps" + (unlisted > 0 ? $" (+{unlisted} not in the list)" : ""));
|
||||
w.Tooltip("Dynamic stamps are one-time quest flags (Dynamic_1_...) from handing items to NPCs on Infinite Leaftide.\n"
|
||||
+ "List: the players' ExtraDyn sheet. Click a stamp for RynthNav's route to it and the Parchment hand-in."
|
||||
+ (unlisted > 0 ? "\nStamps not in the sheet show as quests with Not in list." : ""));
|
||||
}
|
||||
|
||||
if (Shows(QuestKind.Guardian)) DrawGuardianControls(w);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The Temple guardians' controls (RynthILT's Guardian window): chat detection, auto hand-in and
|
||||
/// buy-if-missing, which run inside RynthILT; the last answer with Hand in / Stop; and a refresh.
|
||||
/// </summary>
|
||||
private void DrawGuardianControls(UiWindow w)
|
||||
{
|
||||
IltGuardianView g = _c.Guardian;
|
||||
if (!g.Loaded)
|
||||
{
|
||||
w.TextDisabled(_c.IltData.Connected
|
||||
? "Temple guardians: this RynthILT is older than 0.2.20 (no guardian data for Oracle)."
|
||||
: "Temple guardians: RynthILT isn't loaded (it runs the riddles, hand-ins and turn-in tracker).");
|
||||
return;
|
||||
}
|
||||
int ready = 0;
|
||||
foreach (IltGuardianRow r in g.Rows) if (r.Ready) ready++;
|
||||
w.TextColored(UiColors.Gold, "Temple guardians");
|
||||
w.SameLine();
|
||||
w.TextDisabled($"{ready} of {g.Rows.Count} attribute turn-ins ready"
|
||||
+ (g.SyncedUtc == DateTime.MinValue ? ", /qb not read this session" : $", /qb read {g.SyncedUtc.ToLocalTime():HH:mm}"));
|
||||
w.SameLine();
|
||||
w.SmallButton("Refresh", "gd.refresh", () => _c.GuardianCommand(IltGuardianView.RefreshVerb()));
|
||||
w.Tooltip("RynthILT re-reads /myquests and /qb list for the turn-ins (the server allows each once a minute).");
|
||||
|
||||
w.Checkbox("Detect from chat", "gd.chat", g.Chat, v => _c.GuardianCommand(IltGuardianView.SwitchVerb("chat", v)));
|
||||
w.Tooltip("Translate the guardians' tells as they arrive and show the answer here.");
|
||||
w.SameLine();
|
||||
w.Checkbox("Auto hand-in", "gd.auto", g.Auto, v => _c.GuardianCommand(IltGuardianView.SwitchVerb("auto", v)));
|
||||
w.Tooltip("After a chat answer, RynthILT gives one of the item to the guardian automatically.");
|
||||
w.SameLine();
|
||||
w.Checkbox("Buy if missing", "gd.buy", g.Buy, v => _c.GuardianCommand(IltGuardianView.SwitchVerb("buy", v)));
|
||||
w.Tooltip("Temple guardian: when you carry none, RynthILT buys one from the open or nearest vendor first.");
|
||||
|
||||
bool recent = g.Answer.Length > 0 && g.AnswerAgeSec >= 0 && g.AnswerAgeSec < GuardianAnswerShownSec;
|
||||
if (recent || g.Running)
|
||||
{
|
||||
w.TextColored(UiColors.Green, g.Answer);
|
||||
if (g.Heard.Length > 0) w.Tooltip("Heard: " + Cut(g.Heard, 300));
|
||||
w.SameLine();
|
||||
w.TextDisabled("-> " + g.Npc);
|
||||
w.SameLine();
|
||||
if (g.Running) w.SmallButton("Stop", "gd.stop", () => _c.GuardianCommand(IltGuardianView.StopVerb()));
|
||||
else w.SmallButton("Hand in", "gd.handin", () => _c.GuardianCommand(IltGuardianView.HandInVerb()));
|
||||
}
|
||||
else w.TextDisabled("No guardian answer yet.");
|
||||
w.TextDisabled("Hand-in: " + g.Status + (_c.GuardianMessage.Length > 0 ? " - " + _c.GuardianMessage : ""));
|
||||
}
|
||||
|
||||
// ── The opened row ──────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Something is opened below the list.</summary>
|
||||
private bool HasSelection() => _selKind switch
|
||||
{
|
||||
QuestKind.Quest => _questSel.Length > 0,
|
||||
QuestKind.Dynamic => _dynNav != null,
|
||||
_ => _selKey.Length > 0,
|
||||
};
|
||||
|
||||
private bool IsSelected(QuestRow r) => r.Kind switch
|
||||
{
|
||||
QuestKind.Quest => _selKind == QuestKind.Quest && r.Q!.Flag == _questSel,
|
||||
QuestKind.Dynamic => _selKind == QuestKind.Dynamic && ReferenceEquals(r.D, _dynNav),
|
||||
_ => _selKind == r.Kind && _selKey == r.Key,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Clicking a row opens it below the list (a second click closes it). A Dynamic Stamp also asks
|
||||
/// RynthNav for the route at once, as its tab did.
|
||||
/// </summary>
|
||||
private void SelectRow(QuestRow r)
|
||||
{
|
||||
bool same = IsSelected(r);
|
||||
_questSel = "";
|
||||
_dynNav = null;
|
||||
_selKey = "";
|
||||
_questStopIdx = 0;
|
||||
_questNavStatus = "";
|
||||
if (same) return;
|
||||
_selKind = r.Kind;
|
||||
switch (r.Kind)
|
||||
{
|
||||
case QuestKind.Quest:
|
||||
SelectQuest(r.Q!);
|
||||
break;
|
||||
case QuestKind.Dynamic:
|
||||
_selKey = r.Key;
|
||||
SelectDynamicStamp(r.D!, r.Done);
|
||||
break;
|
||||
default:
|
||||
_selKey = r.Key;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void SelectQuest(Quest q)
|
||||
{
|
||||
if (_questSel == q.Flag) { _questSel = ""; return; } // a second click closes it
|
||||
_questSel = q.Flag;
|
||||
_rewardMsg = "";
|
||||
LoadRewardEdit(q.Flag);
|
||||
}
|
||||
|
||||
/// <summary>The opened row's panel: a quest, a Dynamic Stamp's nav box, a Legendary quest, a marker or a guardian.</summary>
|
||||
private void DrawSelection(UiWindow w)
|
||||
{
|
||||
switch (_selKind)
|
||||
{
|
||||
case QuestKind.Quest:
|
||||
DrawSelectedQuest(w);
|
||||
break;
|
||||
case QuestKind.Dynamic:
|
||||
DrawDynamicNavBox(w);
|
||||
break;
|
||||
case QuestKind.Legendary:
|
||||
LegendaryQuest? l = LegendaryList.All.Find(x => "lg:" + x.Name == _selKey);
|
||||
if (l != null) DrawSelectedLegendary(w, l);
|
||||
break;
|
||||
case QuestKind.Marker:
|
||||
Marker? m = MarkerList.All.Find(x => "mk:" + x.Number == _selKey);
|
||||
if (m != null) DrawSelectedMarker(w, m);
|
||||
break;
|
||||
case QuestKind.Guardian:
|
||||
IltGuardianRow? g = null;
|
||||
foreach (IltGuardianRow r in _c.Guardian.Rows)
|
||||
if ("gd:" + r.Attribute == _selKey) { g = r; break; }
|
||||
DrawSelectedGuardian(w, g);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawSelectedLegendary(UiWindow w, LegendaryQuest l)
|
||||
{
|
||||
QuestFlagStore flags = _c.Flags;
|
||||
string status = l.Status(flags, _c.UtcNow);
|
||||
w.SeparatorText(Cut(l.Label, 60));
|
||||
w.TextDisabled("Area");
|
||||
w.SameLine(90f);
|
||||
w.Text(l.Group);
|
||||
w.TextDisabled("Flags");
|
||||
w.SameLine(90f);
|
||||
w.Text(Cut(string.Join(", ", l.Flags), 70));
|
||||
w.TextDisabled("Status");
|
||||
w.SameLine(90f);
|
||||
w.TextColored(status == "missing" ? UiColors.Red : status == "ready" ? UiColors.Green : UiColors.Yellow, status);
|
||||
if (l.Luminance > 0)
|
||||
{
|
||||
w.SameLine(260f);
|
||||
w.TextDisabled(TimeText.Number(l.Luminance) + " luminance");
|
||||
}
|
||||
if (l.Note.Length > 0) w.TextWrapped(Cut(l.Note, 600));
|
||||
DrawGoTo(w, StopsFor("lg:" + l.Name, () => NavTargets.Stops(l.Note)));
|
||||
w.Button("Print in chat", "lg.sel.print", () => PrintLegendary(l, status));
|
||||
w.Tooltip("The quest, its flags and status, the notes, wiki and video links.");
|
||||
w.SameLine();
|
||||
w.Button("Close", "lg.sel.close", () => _selKey = "");
|
||||
}
|
||||
|
||||
private void DrawSelectedMarker(UiWindow w, Marker m)
|
||||
{
|
||||
bool found = m.IsFound(_c.Flags);
|
||||
w.SeparatorText(Cut($"Marker {m.Number}: {m.Name}", 60));
|
||||
w.TextDisabled("Location");
|
||||
w.SameLine(90f);
|
||||
w.Text(m.Location);
|
||||
w.TextDisabled("Status");
|
||||
w.SameLine(90f);
|
||||
w.TextColored(found ? UiColors.Green : UiColors.Grey, found ? "found" : "not found yet");
|
||||
if (m.Hint.Length > 0) w.TextWrapped(Cut(m.Hint, 600));
|
||||
// Coordinates in the directions, else the location's name for RynthNav's Atlas.
|
||||
DrawGoTo(w, StopsFor("mk:" + m.Number, () =>
|
||||
{
|
||||
List<NavTargets.Stop> stops = NavTargets.Stops(m.Hint);
|
||||
if (stops.Count == 0 && m.Location.Length > 0) stops.Add(NavTargets.Place(m.Location));
|
||||
return stops;
|
||||
}));
|
||||
w.Button("Print in chat", "m.sel.print", () => PrintMarker(m));
|
||||
w.SameLine();
|
||||
w.Button("Close", "m.sel.close", () => _selKey = "");
|
||||
}
|
||||
|
||||
private void DrawSelectedGuardian(UiWindow w, IltGuardianRow? g)
|
||||
{
|
||||
if (g != null)
|
||||
{
|
||||
w.SeparatorText("Temple guardian: " + g.Attribute);
|
||||
w.TextDisabled("NPC");
|
||||
w.SameLine(90f);
|
||||
w.Text(g.Npc);
|
||||
w.TextDisabled("Turn-ins");
|
||||
w.SameLine(90f);
|
||||
w.Text(g.Count.ToString());
|
||||
w.TextDisabled("Status");
|
||||
w.SameLine(90f);
|
||||
w.TextColored(g.Ready ? UiColors.Green : g.Status == "Unknown" ? UiColors.Grey : UiColors.Yellow, g.Status);
|
||||
if (g.Eta.Length > 0)
|
||||
{
|
||||
w.SameLine(260f);
|
||||
w.TextDisabled("Next: " + g.Eta);
|
||||
}
|
||||
w.TextDisabled(g.Exact ? "From /myquests (exact)." : $"From /qb wait stamps: the count and timer are estimates (cooldown taken as {_c.Guardian.CooldownHours} h).");
|
||||
}
|
||||
else w.SeparatorText("Temple guardians");
|
||||
DrawGuardianControls(w);
|
||||
w.Button("Close", "gd.sel.close", () => _selKey = "");
|
||||
}
|
||||
|
||||
// ── Go to: the coordinates in the opened row's text, through RynthNav ──
|
||||
|
||||
private string _questStopsFor = "";
|
||||
private List<NavTargets.Stop> _questStops = new();
|
||||
private int _questStopIdx;
|
||||
private string _questNavStatus = "";
|
||||
|
||||
/// <summary>The opened row's stops, worked out once per row (<paramref name="key"/>).</summary>
|
||||
private List<NavTargets.Stop> StopsFor(string key, Func<List<NavTargets.Stop>> build)
|
||||
{
|
||||
if (_questStopsFor != key)
|
||||
{
|
||||
_questStopsFor = key;
|
||||
_questStops = build();
|
||||
}
|
||||
return _questStops;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Go to: one place is shown with Go / Route / Arrow; several get a picker first (picking one
|
||||
/// plans its route, as clicking a Dynamic Stamp does). Nothing without any.
|
||||
/// </summary>
|
||||
private void DrawGoTo(UiWindow w, List<NavTargets.Stop> stops)
|
||||
{
|
||||
if (stops.Count == 0) return;
|
||||
_questStopIdx = Math.Clamp(_questStopIdx, 0, stops.Count - 1);
|
||||
w.SeparatorText(stops.Count == 1 ? "Go to" : $"Go to ({stops.Count} places in these notes)");
|
||||
if (stops.Count == 1)
|
||||
w.Text(Cut(stops[0].Display, 80));
|
||||
else
|
||||
{
|
||||
var items = new List<string>(stops.Count);
|
||||
for (int i = 0; i < stops.Count; i++) items.Add($"{i + 1}. {Cut(stops[i].Display, 70)}");
|
||||
w.Combo("##q.nav.pick", "q.nav.pick", _questStopIdx, items, i =>
|
||||
{
|
||||
_questStopIdx = Math.Clamp(i, 0, stops.Count - 1);
|
||||
_questNavStatus = SendRynthNav("route", new[] { stops[_questStopIdx].Target });
|
||||
});
|
||||
w.Tooltip("The places the notes give coordinates for, in their order. Picking one plans RynthNav's route to it.");
|
||||
}
|
||||
NavTargets.Stop stop = stops[_questStopIdx];
|
||||
w.Button("Go (auto nav)", "q.nav.go", () => _questNavStatus = SendRynthNav("go", new[] { stop.Target }));
|
||||
w.Tooltip("RynthNav plans the route (walking, portals, recalls, a dungeon's entrance) and walks it.");
|
||||
w.SameLine();
|
||||
w.Button("Route", "q.nav.route", () => _questNavStatus = SendRynthNav("route", new[] { stop.Target }));
|
||||
w.Tooltip("Only plan it: RynthNav prints the steps in chat.");
|
||||
w.SameLine();
|
||||
w.Button("Arrow", "q.nav.arrow", () => _questNavStatus = SendRynthNav("arrow", new[] { stop.Target }));
|
||||
w.Tooltip("Only point RynthNav's arrow at it.");
|
||||
if (_questNavStatus.Length > 0) w.TextDisabled(_questNavStatus);
|
||||
}
|
||||
|
||||
// ── The opened quest and its rewards ──────────────────────────────────
|
||||
|
||||
/// <summary>Fills the editor from what is recorded (blank fields for zero).</summary>
|
||||
private void LoadRewardEdit(string flag)
|
||||
{
|
||||
|
|
@ -200,6 +732,7 @@ internal sealed partial class OracleView
|
|||
}
|
||||
string details = q.Details();
|
||||
if (details.Length > 0) w.TextWrapped(Cut(details, 600));
|
||||
DrawGoTo(w, StopsFor("q:" + q.Flag, () => NavTargets.Stops(q.Info + " - " + q.Hint)));
|
||||
|
||||
bool loaded = _c.Book.Loaded;
|
||||
bool tracked = _c.Book.IsTracked(q.Flag);
|
||||
|
|
@ -279,13 +812,61 @@ internal sealed partial class OracleView
|
|||
if (_c.Book.TryGetReward(q.Flag, out QuestReward r)) _c.Print("Rewards: " + r.LongSummary());
|
||||
}
|
||||
|
||||
// ── Quest bonus (/qb, Infinite Leaftide through RynthILT) ──────────────
|
||||
|
||||
private void DrawQuestBonus(UiWindow w, IltQuestBonusList qb)
|
||||
{
|
||||
string count = qb.Count >= 0 ? $" - count {TimeText.Number(qb.Count)}" : "";
|
||||
if (!w.CollapsingHeader($"Quest bonus (/qb){count}", "q.qb")) return;
|
||||
if (qb.Disabled)
|
||||
{
|
||||
w.TextDisabled("/qb is turned off on this server.");
|
||||
return;
|
||||
}
|
||||
w.Button("Load /qb list", "q.qb.load", () =>
|
||||
{
|
||||
if (!_c.Send("/ilt qb")) _c.Print("Log in first.");
|
||||
});
|
||||
w.Tooltip("RynthILT asks the server for your quest bonus list (the server allows once a minute).");
|
||||
w.SameLine();
|
||||
w.TextDisabled(qb.Generation == 0 && qb.Status == "not loaded" ? "Not loaded yet this session." : qb.Status);
|
||||
|
||||
string[] terms = _questSearch.Split(' ', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
|
||||
QbList(w, "Incomplete", "q.qb.todo", qb.Incomplete, terms, UiColors.Yellow);
|
||||
QbList(w, "Completed", "q.qb.done", qb.Completed, terms, UiColors.Green);
|
||||
}
|
||||
|
||||
private static void QbList(UiWindow w, string label, string id, IReadOnlyList<string> items, string[] terms, uint color)
|
||||
{
|
||||
var shown = new List<string>();
|
||||
foreach (string s in items)
|
||||
if (MatchesAll(s, terms)) shown.Add(s);
|
||||
string counts = terms.Length > 0 ? $"{shown.Count} of {items.Count}" : items.Count.ToString();
|
||||
if (!w.CollapsingHeader($"{label} ({counts})", id)) return;
|
||||
for (int i = 0; i < shown.Count && i < QbShownMax; i++) w.TextColored(color, shown[i]);
|
||||
if (shown.Count > QbShownMax) w.TextDisabled($"... and {shown.Count - QbShownMax} more. Narrow them with Search.");
|
||||
if (shown.Count == 0) w.TextDisabled(items.Count == 0 ? "None." : "None match the search.");
|
||||
}
|
||||
|
||||
/// <summary>Every search word is in <paramref name="hay"/> (any case); no words = everything matches.</summary>
|
||||
private static bool MatchesAll(string hay, string[] terms)
|
||||
{
|
||||
foreach (string t in terms)
|
||||
if (hay.IndexOf(t, StringComparison.OrdinalIgnoreCase) < 0) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
// ── Rows ──────────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>The filtered, sorted rows; rebuilt when the filter or data changed (or every 5 s for timers).</summary>
|
||||
private List<Quest> QuestRows()
|
||||
/// <summary>
|
||||
/// The filtered, sorted rows of every listed kind; rebuilt when the filter or data changed (or
|
||||
/// every 5 s for the timer sort).
|
||||
/// </summary>
|
||||
private List<QuestRow> QuestRows(List<QuestKind> kinds)
|
||||
{
|
||||
string key = $"{_questSearch}|{_qDone}{_qNotDone}{_qRepeatable}{_qOneTime}{_qNew}{_qServer}{_qTracked}{_qKill}|{_questSort}"
|
||||
+ $"|{_c.Flags.Revision}|{_c.Catalog.Revision}|{(_qTracked ? _c.Book.Revision : 0)}";
|
||||
+ $"|{_qTrackers}|{_qKind}|{_dynArea}|{string.Join(",", kinds)}"
|
||||
+ $"|{_c.Flags.Revision}|{_c.Catalog.Revision}|{(_qTracked ? _c.Book.Revision : 0)}|{_c.GuardianRevision}";
|
||||
bool timeSorted = _questSort == 4;
|
||||
if (key == _questKey && (!timeSorted || _c.NowMs - _questBuiltMs < 5000)) return _questRows;
|
||||
_questKey = key;
|
||||
|
|
@ -294,53 +875,138 @@ internal sealed partial class OracleView
|
|||
QuestFlagStore flags = _c.Flags;
|
||||
string[] terms = _questSearch.Split(' ', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
|
||||
_questRows.Clear();
|
||||
foreach (Quest q in _c.Catalog.Quests)
|
||||
|
||||
// The Dynamic stamps the list matched: shown as stamp rows, not again as unknown quest flags.
|
||||
var stampFlags = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||
if (kinds.Contains(QuestKind.Dynamic))
|
||||
foreach (DynamicStamp s in DynamicStampList.All)
|
||||
if (s.MatchedFlag(flags) is string f) stampFlags.Add(f);
|
||||
|
||||
if (KindListed(QuestKind.Quest, kinds))
|
||||
{
|
||||
if (_qNew && !q.IsNew) continue;
|
||||
if (_qServer && q.Server.Length == 0) continue;
|
||||
if (_qTracked && !_c.Book.IsTracked(q.Flag)) continue;
|
||||
if (_qKill && !(flags.TryGet(q.Flag, out QuestFlag kf) && QuestTimer.IsKillTask(kf))) continue;
|
||||
if (_qDone != _qNotDone && q.IsComplete(flags) != _qDone) continue;
|
||||
if (_qRepeatable != _qOneTime && q.IsRepeatable(flags) != _qRepeatable) continue;
|
||||
if (terms.Length > 0)
|
||||
foreach (Quest q in _c.Catalog.Quests)
|
||||
{
|
||||
string hay = q.Flag + " " + q.DisplayName;
|
||||
bool all = true;
|
||||
foreach (string t in terms)
|
||||
if (hay.IndexOf(t, StringComparison.OrdinalIgnoreCase) < 0) { all = false; break; }
|
||||
if (!all) continue;
|
||||
if (q.IsNew && stampFlags.Contains(q.Flag)) continue;
|
||||
if (_qNew && !q.IsNew) continue;
|
||||
if (_qServer && q.Server.Length == 0) continue;
|
||||
if (_qTracked && !_c.Book.IsTracked(q.Flag)) continue;
|
||||
if (_qKill && !(flags.TryGet(q.Flag, out QuestFlag kf) && QuestTimer.IsKillTask(kf))) continue;
|
||||
bool done = q.IsComplete(flags);
|
||||
if (_qDone != _qNotDone && done != _qDone) continue;
|
||||
if (_qRepeatable != _qOneTime && q.IsRepeatable(flags) != _qRepeatable) continue;
|
||||
if (!MatchesAll(q.Flag + " " + q.DisplayName, terms)) continue;
|
||||
_questRows.Add(new QuestRow { Kind = QuestKind.Quest, Key = q.Flag, Label = q.DisplayName, Done = done, Q = q });
|
||||
}
|
||||
_questRows.Add(q);
|
||||
}
|
||||
|
||||
// The quest-only filters (not in the list, server pack, kill tasks) leave the trackers out.
|
||||
if (!_qNew && !_qServer && !_qKill)
|
||||
{
|
||||
if (KindListed(QuestKind.Legendary, kinds))
|
||||
for (int i = 0; i < LegendaryList.All.Count; i++)
|
||||
{
|
||||
LegendaryQuest l = LegendaryList.All[i];
|
||||
var r = new QuestRow { Kind = QuestKind.Legendary, Key = "lg:" + l.Name, Label = l.Label, Group = l.Group, Order = i, Done = l.Have(flags), L = l };
|
||||
bool tracked = l.Flags.Length > 0 && _c.Book.IsTracked(l.Flags[0]);
|
||||
if (KeepTracker(r, repeatable: true, tracked, $"{l.Label} {l.Group} {l.Note} {string.Join(" ", l.Flags)}", terms)) _questRows.Add(r);
|
||||
}
|
||||
|
||||
if (KindListed(QuestKind.Marker, kinds))
|
||||
for (int i = 0; i < MarkerList.All.Count; i++)
|
||||
{
|
||||
QuestRow r = MarkerRow(MarkerList.All[i], flags, i);
|
||||
if (KeepTracker(r, repeatable: false, tracked: false, $"{r.Label} {r.M!.Location} {r.M.Hint}", terms)) _questRows.Add(r);
|
||||
}
|
||||
|
||||
if (KindListed(QuestKind.Dynamic, kinds))
|
||||
for (int i = 0; i < DynamicStampList.All.Count; i++)
|
||||
{
|
||||
DynamicStamp s = DynamicStampList.All[i];
|
||||
if (_dynArea > 0 && (_dynArea > DynamicStampList.Areas.Count || DynamicStampList.Areas[_dynArea - 1] != s.Area)) continue;
|
||||
var r = new QuestRow { Kind = QuestKind.Dynamic, Key = "dy:" + s.Stamp, Label = s.Label, Group = s.Area, Order = i, Done = s.Have(flags), D = s };
|
||||
if (KeepTracker(r, repeatable: false, tracked: false, $"{s.Npc} {s.Place} {s.Reward} {s.Area} {s.Stamp} {s.Note}", terms)) _questRows.Add(r);
|
||||
}
|
||||
|
||||
if (KindListed(QuestKind.Guardian, kinds))
|
||||
for (int i = 0; i < _c.Guardian.Rows.Count; i++)
|
||||
{
|
||||
IltGuardianRow g = _c.Guardian.Rows[i];
|
||||
var r = new QuestRow { Kind = QuestKind.Guardian, Key = "gd:" + g.Attribute, Label = g.Attribute + " (" + g.Npc + ")", Group = g.Npc, Order = i, Done = !g.Ready, G = g };
|
||||
if (KeepTracker(r, repeatable: true, tracked: false, $"{g.Attribute} {g.Npc} {g.Status}", terms)) _questRows.Add(r);
|
||||
}
|
||||
}
|
||||
|
||||
DateTime now = _c.UtcNow;
|
||||
Comparison<Quest> byFlag = (a, b) => string.CompareOrdinal(a.Flag, b.Flag);
|
||||
switch (_questSort)
|
||||
{
|
||||
case 1:
|
||||
_questRows.Sort((a, b) => Then(string.Compare(a.DisplayName, b.DisplayName, StringComparison.OrdinalIgnoreCase), a, b));
|
||||
_questRows.Sort((a, b) => Then(string.Compare(a.Label, b.Label, StringComparison.OrdinalIgnoreCase), a, b));
|
||||
break;
|
||||
case 2:
|
||||
_questRows.Sort((a, b) => Then(b.IsComplete(flags).CompareTo(a.IsComplete(flags)), a, b));
|
||||
_questRows.Sort((a, b) => Then(b.Done.CompareTo(a.Done), a, b));
|
||||
break;
|
||||
case 3:
|
||||
_questRows.Sort((a, b) => Then(a.IsComplete(flags).CompareTo(b.IsComplete(flags)), a, b));
|
||||
_questRows.Sort((a, b) => Then(a.Done.CompareTo(b.Done), a, b));
|
||||
break;
|
||||
case 4:
|
||||
_questRows.Sort((a, b) => Then(ReadyKey(a, flags, now).CompareTo(ReadyKey(b, flags, now)), a, b));
|
||||
_questRows.Sort((a, b) => Then(RowReadyKey(a, flags, now).CompareTo(RowReadyKey(b, flags, now)), a, b));
|
||||
break;
|
||||
case 5:
|
||||
_questRows.Sort((a, b) => Then(Solves(b, flags).CompareTo(Solves(a, flags)), a, b));
|
||||
_questRows.Sort((a, b) => Then(RowSolves(b, flags).CompareTo(RowSolves(a, flags)), a, b));
|
||||
break;
|
||||
default:
|
||||
_questRows.Sort(byFlag);
|
||||
_questRows.Sort((a, b) => Then(0, a, b));
|
||||
break;
|
||||
}
|
||||
return _questRows;
|
||||
|
||||
static int Then(int c, Quest a, Quest b) => c != 0 ? c : string.CompareOrdinal(a.Flag, b.Flag);
|
||||
// Ties: by kind (quests first), then quests by flag and trackers in their own list's order.
|
||||
static int Then(int c, QuestRow a, QuestRow b)
|
||||
{
|
||||
if (c != 0) return c;
|
||||
if (a.Kind != b.Kind) return a.Kind.CompareTo(b.Kind);
|
||||
return a.Kind == QuestKind.Quest ? string.CompareOrdinal(a.Key, b.Key) : a.Order.CompareTo(b.Order);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>A marker's row (the list, and the summary's "Next marker").</summary>
|
||||
private static QuestRow MarkerRow(Marker m, QuestFlagStore flags, int order)
|
||||
=> new() { Kind = QuestKind.Marker, Key = "mk:" + m.Number, Label = $"#{m.Number} {m.Name}", Group = m.Location, Order = order, Done = m.IsFound(flags), M = m };
|
||||
|
||||
/// <summary>The filters a tracker row answers to: Tracked, Done / Not done, Repeatable / One-time and Search.</summary>
|
||||
private bool KeepTracker(QuestRow r, bool repeatable, bool tracked, string hay, string[] terms)
|
||||
{
|
||||
if (_qTracked && !tracked) return false;
|
||||
if (_qDone != _qNotDone && r.Done != _qDone) return false;
|
||||
if (_qRepeatable != _qOneTime && repeatable != _qRepeatable) return false;
|
||||
return MatchesAll(hay, terms);
|
||||
}
|
||||
|
||||
/// <summary>Ready soonest: held repeatable quests and Legendary quests by time left, ready guardians first; the rest after.</summary>
|
||||
private static double RowReadyKey(QuestRow r, QuestFlagStore flags, DateTime now)
|
||||
{
|
||||
switch (r.Kind)
|
||||
{
|
||||
case QuestKind.Quest:
|
||||
return ReadyKey(r.Q!, flags, now);
|
||||
case QuestKind.Legendary:
|
||||
TimeSpan? left = r.L!.TimeLeft(flags, now);
|
||||
return left == null ? double.MaxValue : Math.Max(0, left.Value.TotalSeconds);
|
||||
case QuestKind.Guardian:
|
||||
return r.G!.Ready ? 0 : double.MaxValue;
|
||||
default:
|
||||
return double.MaxValue;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Most solves: a repeatable quest's solves, a guardian's turn-ins.</summary>
|
||||
private static int RowSolves(QuestRow r, QuestFlagStore flags) => r.Kind switch
|
||||
{
|
||||
QuestKind.Quest => Solves(r.Q!, flags),
|
||||
QuestKind.Guardian => r.G!.Count,
|
||||
_ => 0,
|
||||
};
|
||||
|
||||
/// <summary>Held repeatables by time left (ready ones first); everything else after them.</summary>
|
||||
private static double ReadyKey(Quest q, QuestFlagStore flags, DateTime now) =>
|
||||
flags.TryGet(q.Flag, out _) && (q.IsRepeatable(flags) || flags.TryGet(q.Flag, out QuestFlag f) && QuestTimer.IsKillTask(f))
|
||||
|
|
|
|||
|
|
@ -31,8 +31,7 @@ internal sealed partial class OracleView
|
|||
Field(w, "Today", s.DailyLimit > 0
|
||||
? $"{s.RibbonsToday(flags, now)} / {s.DailyLimit} ribbons"
|
||||
: "no daily limit at Master", 300f, 400f);
|
||||
if (flags.LastReadUtc == DateTime.MinValue)
|
||||
w.TextDisabled("Read your quest flags (Quests tab) for today's ribbons and quest timers.");
|
||||
QuestFlagsBar(w, "so", "ribbons and society quest timers");
|
||||
}
|
||||
|
||||
w.SeparatorText("Quests");
|
||||
|
|
|
|||
Loading…
Reference in a new issue