public void DoPatternScans(Memory m) { int[] array = m.FindPatterns(new Pattern[] { Offsets.maphackPattern, Offsets.zoomhackPattern, Offsets.fullbrightPattern, Offsets.basePtrPattern, Offsets.fileRootPattern, Offsets.areaChangePattern }); MaphackFunc = array[0]; ZoomHackFunc = array[1] + 247; Fullbright1 = m.ReadInt(m.BaseAddress + array[2] + 1487) - m.BaseAddress; Fullbright2 = m.ReadInt(m.BaseAddress + array[2] + 1573) - m.BaseAddress; Base = m.ReadInt(m.BaseAddress + array[3] + 22) - m.BaseAddress; FileRoot = m.ReadInt(m.BaseAddress + array[4] + 40) - m.BaseAddress; AreaChangeCount = m.ReadInt(m.BaseAddress + array[5] + 13) - m.BaseAddress; }
public void DoPatternScans(Memory m) { int[] array = m.FindPatterns(new[] { basePtrPattern, fileRootPattern, areaChangePattern, }); Base = m.ReadInt(m.AddressOfProcess + array[0] + 22) - m.AddressOfProcess; FileRoot = m.ReadInt(m.AddressOfProcess + array[1] + 40) - m.AddressOfProcess; AreaChangeCount = m.ReadInt(m.AddressOfProcess + array[2] + 13) - m.AddressOfProcess; }
public void DoPatternScans(Memory m) { int[] array = m.FindPatterns(basePtrPattern, fileRootPattern, areaChangePattern, inGameOffsetPattern);//, configPattern); Base = m.ReadInt(m.AddressOfProcess + array[0] + 22) - m.AddressOfProcess; FileRoot = m.ReadInt(m.AddressOfProcess + array[1] + 40) - m.AddressOfProcess; AreaChangeCount = m.ReadInt(m.AddressOfProcess + array[2] + 13) - m.AddressOfProcess; InGameOffset = m.ReadInt(m.AddressOfProcess + array[3] + 0x13); //PoeConfigIni = m.ReadString(m.ReadInt(m.AddressOfProcess + array[3] + 0xF)); }