filyr Newbie cheater Reputation: 0
Joined: 02 Aug 2013 Posts: 10
|
Posted: Sun Jun 30, 2019 1:55 pm Post subject: Find related pointer values |
|
|
I'm reading game data from an MMORPG (lineage 2). I know how to find reliable addresses using the pointer scanner. Let's say that I've fetched the player HP for example. I'll use the methods below to extract the actual value, so far so good:
Code: | public int ReadInt(long address, params int[] offsets)
{
address = ReadInt(address);
address = offsets.Aggregate(address, (current, t) => ReadInt(current + t));
return (int)address;
}
public int ReadInt(long address)
{
var buffer = new byte[sizeof (int)];
PInvoke.ReadProcessMemory(_processHandle, (UIntPtr) address, buffer, (UIntPtr) 4, IntPtr.Zero);
return BitConverter.ToInt32(buffer, 0);
}
|
Now, I would like to find the player MP, which is a nearby value. I can browse the HP memory region and find it. I see both addresses, so I know the offset. Let's say its 0x181272BC–0x18127278 which is 0x44.
How can I use the HP address + MP offset to get the actual MP value? Do I have to find pointers to structs/classes in order to use offsets like this? Or can primitive value pointers be used as reference (like HP above)?
|
|