From 89a1b3ca26ad38f6119ba44bbea71d513490d65b Mon Sep 17 00:00:00 2001 From: elb <51070858+elobo91@users.noreply.github.com> Date: Sat, 7 Dec 2024 16:52:22 -0500 Subject: [PATCH] IsCorpse Offset (#52) Update corpse offset --- pkg/memory/monsters.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/memory/monsters.go b/pkg/memory/monsters.go index 8ab117e..60d1158 100644 --- a/pkg/memory/monsters.go +++ b/pkg/memory/monsters.go @@ -21,7 +21,7 @@ func (gd *GameReader) Monsters(playerPosition data.Position, hover data.HoverDat monsterUnitPtr := uintptr(ReadUIntFromBuffer(unitTableBuffer, uint(monsterOffset), Uint64)) for monsterUnitPtr > 0 { // Quick corpse check first - isCorpse := gd.Process.ReadUInt(monsterUnitPtr+0x1A6, Uint8) + isCorpse := gd.Process.ReadUInt(monsterUnitPtr+0x1AE, Uint8) if isCorpse != 0 { monsterUnitPtr = uintptr(gd.Process.ReadUInt(monsterUnitPtr+0x158, Uint64)) continue @@ -90,7 +90,7 @@ func (gd *GameReader) Corpses(playerPosition data.Position, hover data.HoverData monsterOffset := 8 * i monsterUnitPtr := uintptr(ReadUIntFromBuffer(unitTableBuffer, uint(monsterOffset), Uint64)) for monsterUnitPtr > 0 { - isCorpse := gd.Process.ReadUInt(monsterUnitPtr+0x1A6, Uint8) + isCorpse := gd.Process.ReadUInt(monsterUnitPtr+0x1AE, Uint8) if isCorpse == 0 { monsterUnitPtr = uintptr(gd.Process.ReadUInt(monsterUnitPtr+0x158, Uint64)) continue