From 59174f82cfe4ee883f7ad2f600a71aea7c3ba404 Mon Sep 17 00:00:00 2001 From: Jackson <9527380+Jaksuhn@users.noreply.github.com> Date: Sun, 4 Feb 2024 22:42:28 +0000 Subject: [PATCH] isplayeroccupied --- SomethingNeedDoing/Interface/HelpWindow.cs | 3 ++- SomethingNeedDoing/Misc/Commands/CharacterStateCommands.cs | 2 ++ SomethingNeedDoing/Misc/Commands/IpcCommands.cs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SomethingNeedDoing/Interface/HelpWindow.cs b/SomethingNeedDoing/Interface/HelpWindow.cs index 7dd44792..9aac23d7 100644 --- a/SomethingNeedDoing/Interface/HelpWindow.cs +++ b/SomethingNeedDoing/Interface/HelpWindow.cs @@ -339,7 +339,8 @@ static void DisplayChangelog(string date, string changes, bool separator = true) "- Added PandoraPauseFeature()\n\n" + "- Added GetClipboard()\n" + "- Added SetClipboard()\n" + - "- Added CrashTheGame()\n"); + "- Added CrashTheGame()\n" + + "- Added IsPlayerOccupied()\n"); DisplayChangelog( "2024-02-01", diff --git a/SomethingNeedDoing/Misc/Commands/CharacterStateCommands.cs b/SomethingNeedDoing/Misc/Commands/CharacterStateCommands.cs index afd1b00f..99901d20 100644 --- a/SomethingNeedDoing/Misc/Commands/CharacterStateCommands.cs +++ b/SomethingNeedDoing/Misc/Commands/CharacterStateCommands.cs @@ -72,6 +72,8 @@ public string GetCharacterName(bool includeWorld = false) => public unsafe bool IsMoving() => AgentMap.Instance()->IsPlayerMoving == 1; + public bool IsPlayerOccupied() => ECommons.GenericHelpers.IsOccupied(); + public unsafe uint GetGil() => InventoryManager.Instance()->GetGil(); public uint GetClassJobId() => Svc.ClientState.LocalPlayer!.ClassJob.Id; diff --git a/SomethingNeedDoing/Misc/Commands/IpcCommands.cs b/SomethingNeedDoing/Misc/Commands/IpcCommands.cs index 8f0c6ff4..1866506b 100644 --- a/SomethingNeedDoing/Misc/Commands/IpcCommands.cs +++ b/SomethingNeedDoing/Misc/Commands/IpcCommands.cs @@ -79,7 +79,7 @@ public unsafe List ARGetRegisteredEnabledCharacters() => .Where(c => _autoRetainerApi.GetOfflineCharacterData(c).Enabled) .Select(c => $"{_autoRetainerApi.GetOfflineCharacterData(c).Name}@{_autoRetainerApi.GetOfflineCharacterData(c).World}").ToList(); - public unsafe bool ARAnyWaitingToBeProcessed(bool allCharacters = false) => ARRetainersWaitingToBeProcessed(allCharacters) || ARSubsWaitingToBeProcessed(allCharacters) + public unsafe bool ARAnyWaitingToBeProcessed(bool allCharacters = false) => ARRetainersWaitingToBeProcessed(allCharacters) || ARSubsWaitingToBeProcessed(allCharacters); public unsafe bool ARRetainersWaitingToBeProcessed(bool allCharacters = false) {