Skip to content

Commit

Permalink
feat: Add Journal window and select quest
Browse files Browse the repository at this point in the history
  • Loading branch information
nt153133 committed Nov 17, 2024
1 parent 3b4a21a commit 3e5ce04
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions RemoteWindows/Journal.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System.Linq;
using ff14bot.Managers;

namespace LlamaLibrary.RemoteWindows;

public class Journal : RemoteWindow<Journal>
{
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);
}
}

0 comments on commit 3e5ce04

Please sign in to comment.