Originally Posted by
joxxe87
Shouldn't this give the difficulty?
$dif = _MemoryRead(_MemoryRead(_MemoryRead((_MemoryRead(0x162D7E0, $d3, 'int')+0x10), $d3, 'int')+0xC,$d3,"int")+0x14,$d3,"int")
but it doesn't work. always give me back 0. Or are the offset in wrong order ? :/
Not sure. But I think this is offsets for the old patch..
try with 0x162C7D8 : P
Edit: This is how I do it. Cant confirm it works atm tho.. since I havent used it in this patch.
Code:
IntPtr ptr = Marshal.ReadIntPtr(new IntPtr(D3Framework.Offsets.StaticLocations.StaticPointerToGameCreationSettings));
ptr = Marshal.ReadIntPtr(ptr, 0x10);
ptr = Marshal.ReadIntPtr(ptr, 0xC);
IntPtr gameParams = ptr + 0x625;
int diff = Marshal.ReadInt32(gameParams + 0x14);