This commit is contained in:
Boki 2026-02-22 21:46:48 -05:00
parent bd55e3031d
commit 7b28e776d0
6 changed files with 25 additions and 16 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7 MiB

After

Width:  |  Height:  |  Size: 7.3 MiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 MiB

After

Width:  |  Height:  |  Size: 6 MiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 KiB

After

Width:  |  Height:  |  Size: 340 KiB

Before After
Before After

View file

@ -985,7 +985,8 @@ public class BossRunExecutor : GameExecutor
if (attempt < 3) if (attempt < 3)
{ {
Log.Warning("Hideout command didn't register (attempt {Attempt}/3), retrying", attempt); Log.Warning("Hideout command didn't register (attempt {Attempt}/3), clearing UI and retrying", attempt);
await _game.PressKey(InputSender.VK.SPACE);
await Sleep(1000); await Sleep(1000);
} }
} }

View file

@ -100,7 +100,7 @@ public class CombatManager
else else
_manaStableCount = 0; _manaStableCount = 0;
await _game.MoveMouseFast(mouseX, mouseY); _game.MoveMouseInstant(mouseX, mouseY);
_game.LeftMouseDown(); _game.LeftMouseDown();
await Helpers.Sleep(Rng.Next(20, 35)); await Helpers.Sleep(Rng.Next(20, 35));
@ -121,7 +121,7 @@ public class CombatManager
} }
else else
{ {
await _game.MoveMouseFast(mouseX, mouseY); _game.MoveMouseInstant(mouseX, mouseY);
if (mana < 0.30f) if (mana < 0.30f)
{ {
@ -132,7 +132,7 @@ public class CombatManager
_manaStableCount = 0; _manaStableCount = 0;
} }
await Helpers.Sleep(Rng.Next(80, 120)); await Helpers.Sleep(10);
} }
} }

View file

@ -43,18 +43,26 @@ public class GameController : IGameController
public async Task SendChatViaPaste(string message) public async Task SendChatViaPaste(string message)
{ {
Log.Information("Sending chat message via paste: {Message}", message); Log.Information("Sending chat message via paste: {Message}", message);
ClipboardHelper.Write(message); var previousClipboard = ClipboardHelper.Read();
await Helpers.Sleep(50); try
await _input.PressKey(InputSender.VK.RETURN); {
await Helpers.RandomDelay(100, 200); ClipboardHelper.Write(message);
await _input.SelectAll(); await Helpers.Sleep(50);
await Helpers.Sleep(50); await _input.PressKey(InputSender.VK.RETURN);
await _input.PressKey(InputSender.VK.BACK); await Helpers.RandomDelay(100, 200);
await Helpers.Sleep(50); await _input.SelectAll();
await _input.Paste(); await Helpers.Sleep(50);
await Helpers.RandomDelay(100, 200); await _input.PressKey(InputSender.VK.BACK);
await _input.PressKey(InputSender.VK.RETURN); await Helpers.Sleep(50);
await Helpers.Sleep(100); await _input.Paste();
await Helpers.RandomDelay(100, 200);
await _input.PressKey(InputSender.VK.RETURN);
await Helpers.Sleep(100);
}
finally
{
ClipboardHelper.Write(previousClipboard);
}
} }
public Task GoToHideout() public Task GoToHideout()