From 3e5ce042348aa9ee5de87893a15ef4496e569edf Mon Sep 17 00:00:00 2001 From: nt153133 <52430037+nt153133@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:26:37 -0500 Subject: [PATCH] feat: Add Journal window and select quest --- RemoteWindows/Journal.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 RemoteWindows/Journal.cs diff --git a/RemoteWindows/Journal.cs b/RemoteWindows/Journal.cs new file mode 100644 index 0000000..a8a99ec --- /dev/null +++ b/RemoteWindows/Journal.cs @@ -0,0 +1,22 @@ +using System.Linq; +using ff14bot.Managers; + +namespace LlamaLibrary.RemoteWindows; + +public class Journal : RemoteWindow +{ + public Journal() : base("Journal") + { + } + + public void SelectQuest(int globalId) + { + var rawId = QuestLogManager.ActiveQuests.FirstOrDefault(i => i.GlobalId == globalId)?.RawId ?? 0; + if (rawId == 0) + { + return; + } + + SendAction(3, 3, 0xD, 3, rawId, 3, 1); + } +} \ No newline at end of file