Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Find related pointer values

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
filyr
Newbie cheater
Reputation: 0

Joined: 02 Aug 2013
Posts: 10

PostPosted: Sun Jun 30, 2019 1:55 pm    Post subject: Find related pointer values Reply with quote

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)?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites