From 2773923ace0e38cdd662d63b7512440565f0fd3f Mon Sep 17 00:00:00 2001 From: CarlPoppa Date: Wed, 22 Oct 2025 10:11:48 +0100 Subject: [PATCH] Add CharFlags 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 4091998..5e22818 100644 --- a/pkg/memory/offset.go +++ b/pkg/memory/offset.go @@ -21,6 +21,7 @@ type Offset struct { Quests uintptr Ping uintptr LegacyGraphics uintptr + CharData uintptr } func calculateOffsets(process *Process) Offset { @@ -112,6 +113,12 @@ func calculateOffsets(process *Process) Offset { legacyGfxPtr := uintptr(process.ReadUInt(pattern+2, Uint32)) legacyGfxOffset := pattern - process.moduleBaseAddressPtr + 7 + legacyGfxPtr + // CharData + pattern = process.FindPattern(memory, "\x48\x8D\x05\x00\x00\x00\x00\x89\x93\xF4\x0C\x00\x00", "xxx????xxxxxx") + bytes = process.ReadBytesFromMemory(pattern+3, 4) + relativeOffset = int32(binary.LittleEndian.Uint32(bytes)) + charDataOffset := pattern - process.moduleBaseAddressPtr + 7 + uintptr(relativeOffset) + return Offset{ GameData: gameDataOffset, UnitTable: unitTableOffset, @@ -129,5 +136,6 @@ func calculateOffsets(process *Process) Offset { Quests: questDataOffset, Ping: pingOffset, LegacyGraphics: legacyGfxOffset, + CharData: charDataOffset, } }