Add quests AOB

Resolves to originally used offset (0x22D8369)
This commit is contained in:
CarlPoppa
2025-10-17 14:37:36 +01:00
committed by guiyomu-dev
parent 56601ab9ce
commit ce23058fb4

View File

@@ -17,6 +17,7 @@ type Offset struct {
FPS uintptr FPS uintptr
KeyBindingsOffset uintptr KeyBindingsOffset uintptr
KeyBindingsSkillsOffset uintptr KeyBindingsSkillsOffset uintptr
Quests uintptr
} }
func calculateOffsets(process *Process) Offset { func calculateOffsets(process *Process) Offset {
@@ -84,6 +85,12 @@ func calculateOffsets(process *Process) Offset {
relativeOffset := int32(binary.LittleEndian.Uint32(bytes)) relativeOffset := int32(binary.LittleEndian.Uint32(bytes))
keyBindingsSkillsOffset = uintptr(int64(pattern) + 15 + int64(relativeOffset)) keyBindingsSkillsOffset = uintptr(int64(pattern) + 15 + int64(relativeOffset))
// Quest Bytes Data
pattern = process.FindPattern(memory, "\x42\xc6\x84\x28\x00\x00\x00\x00\x00\x49\xff\xc5\x49\x83\xfd\x29", "xxxx?????xxxxxxx")
bytes = process.ReadBytesFromMemory(pattern+4, 4)
questOffset := uintptr(binary.LittleEndian.Uint32(bytes))
questDataOffset := questOffset + 1
return Offset{ return Offset{
GameData: gameDataOffset, GameData: gameDataOffset,
UnitTable: unitTableOffset, UnitTable: unitTableOffset,
@@ -97,5 +104,6 @@ func calculateOffsets(process *Process) Offset {
FPS: fpsOffset, FPS: fpsOffset,
KeyBindingsOffset: keyBindingsOffset, KeyBindingsOffset: keyBindingsOffset,
KeyBindingsSkillsOffset: keyBindingsSkillsOffset, KeyBindingsSkillsOffset: keyBindingsSkillsOffset,
Quests: questDataOffset,
} }
} }