From e5a60b63dde0fb1177adcc2260cf42eb8e61105c Mon Sep 17 00:00:00 2001 From: CarlPoppa Date: Sat, 18 Oct 2025 23:03:15 +0100 Subject: [PATCH] Add ping AOB scan --- pkg/memory/offset.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/memory/offset.go b/pkg/memory/offset.go index 60268c3..fdd15f3 100644 --- a/pkg/memory/offset.go +++ b/pkg/memory/offset.go @@ -19,6 +19,7 @@ type Offset struct { KeyBindingsSkillsOffset uintptr TZ uintptr Quests uintptr + Ping uintptr } func calculateOffsets(process *Process) Offset { @@ -99,6 +100,12 @@ func calculateOffsets(process *Process) Offset { questOffset := uintptr(binary.LittleEndian.Uint32(bytes)) questDataOffset := questOffset + 1 + // Ping + pattern = process.FindPattern(memory, "\x48\x8B\x0D\xCC\xCC\xCC\xCC\x49\x2B\xC7", "xxx????xxx") + bytes = process.ReadBytesFromMemory(pattern+3, 4) + relativeOffset = int32(binary.LittleEndian.Uint32(bytes)) + pingOffset := pattern - process.moduleBaseAddressPtr + 7 + uintptr(relativeOffset) + return Offset{ GameData: gameDataOffset, UnitTable: unitTableOffset, @@ -114,5 +121,6 @@ func calculateOffsets(process *Process) Offset { KeyBindingsSkillsOffset: keyBindingsSkillsOffset, TZ: tzOffset, Quests: questDataOffset, + Ping: pingOffset, } }