Skip to content

Commit

Permalink
v2.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
SDClowen committed Feb 15, 2024
1 parent 18cab78 commit 5208538
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Application/RSBot/RSBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<RepositoryUrl>https://github.com/SDClowen/RSBot</RepositoryUrl>
<OutputType>WinExe</OutputType>
<ApplicationIcon>app.ico</ApplicationIcon>
<AssemblyVersion>2.9.5</AssemblyVersion>
<ApplicationHighDpiMode></ApplicationHighDpiMode>
<AssemblyVersion>2.9.6</AssemblyVersion>
<ApplicationHighDpiMode>true</ApplicationHighDpiMode>
<PlatformTarget>x86</PlatformTarget>
<UseWPF>False</UseWPF>
</PropertyGroup>
Expand Down
10 changes: 4 additions & 6 deletions Library/RSBot.Core/Components/ClientManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,18 @@ public static async Task<bool> Start()
return false;
}

WriteProcessMemory(pi.hProcess, address - 0x6A, patchJmp, 1, out _);
WriteProcessMemory(pi.hProcess, address + 0x13, patchJmp, 1, out _);

if (isTRGame)
{
WriteProcessMemory(pi.hProcess, address - 0xE7, patchJmp, 1, out _);
WriteProcessMemory(pi.hProcess, address - 0x6A, patchJmp, 1, out _);
WriteProcessMemory(pi.hProcess, address - 0x71, patchNop2, 5, out _);
WriteProcessMemory(pi.hProcess, address + 0x13, patchJmp, 1, out _);
WriteProcessMemory(pi.hProcess, address + 0xB2, patchJmp, 1, out _);
}

if (isVtcGame)
else
{
WriteProcessMemory(pi.hProcess, address - 0x6A, patchJmp, 1, out _);
WriteProcessMemory(pi.hProcess, address + 0xC, patchNop2, 5, out _);
WriteProcessMemory(pi.hProcess, address + 0x13, patchJmp, 1, out _);
WriteProcessMemory(pi.hProcess, address + 0x90, patchJmp, 1, out _);
}

Expand Down
2 changes: 2 additions & 0 deletions Plugins/RSBot.Map/Views/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@ private float GetMapY(Position gamePosition)

private void mapCanvas_MouseClick(object sender, MouseEventArgs e)
{
if(!Game.Ready) return;

var position = Game.Player.Movement.Source;
position.XOffset = Game.Player.Movement.Source.XOffset +
(mapCanvas.Width / 2f - e.X) / SectorSize * 192f * 10 * -1f;
Expand Down

0 comments on commit 5208538

Please sign in to comment.