Add QuestInfo aob scan
This commit is contained in:
@@ -17,6 +17,7 @@ type Offset struct {
|
|||||||
FPS uintptr
|
FPS uintptr
|
||||||
KeyBindingsOffset uintptr
|
KeyBindingsOffset uintptr
|
||||||
KeyBindingsSkillsOffset uintptr
|
KeyBindingsSkillsOffset uintptr
|
||||||
|
QuestInfo uintptr
|
||||||
}
|
}
|
||||||
|
|
||||||
func calculateOffsets(process *Process) Offset {
|
func calculateOffsets(process *Process) Offset {
|
||||||
@@ -84,6 +85,11 @@ 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))
|
||||||
|
|
||||||
|
// QuestInfo
|
||||||
|
pattern = process.FindPattern(memory, "\x48\x8B\x0D\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x45\x33\xE4", "xxx????x????xxx")
|
||||||
|
questInfoOffsetPtr := uintptr(process.ReadUInt(pattern+3, Uint32))
|
||||||
|
questInfoOffset := pattern - process.moduleBaseAddressPtr + 7 + questInfoOffsetPtr
|
||||||
|
|
||||||
return Offset{
|
return Offset{
|
||||||
GameData: gameDataOffset,
|
GameData: gameDataOffset,
|
||||||
UnitTable: unitTableOffset,
|
UnitTable: unitTableOffset,
|
||||||
@@ -97,5 +103,6 @@ func calculateOffsets(process *Process) Offset {
|
|||||||
FPS: fpsOffset,
|
FPS: fpsOffset,
|
||||||
KeyBindingsOffset: keyBindingsOffset,
|
KeyBindingsOffset: keyBindingsOffset,
|
||||||
KeyBindingsSkillsOffset: keyBindingsSkillsOffset,
|
KeyBindingsSkillsOffset: keyBindingsSkillsOffset,
|
||||||
|
QuestInfo: questInfoOffset,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user