-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Journal window and select quest
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |