Hi, I have a static base address and I want to make a trainer for it in C++ but I can't figure out how to make a multi-step pointer in C++.
This is my code for a 1-step pointer in C++:
Code:
DWORD EROF_ADDRESS = 0xd07cf4;
DWORD EROF_ADDRESS_P = NULL;
int CHEAT_EROF = 1035353216;
ReadProcessMemory(hProcess,(LPCVOID) EROF_ADDRESS, &EROF_ADDRESS_P, 4 ,NULL);
EROF_ADDRESS = EROF_ADDRESS_P + (0x1A8);
WriteProcessMemory(hProcess,(LPVOID)EROF_ADDRESS,(LPVOID)&CHEAT_EROF,sizeof(&CHEAT_EROF),NULL);
But it needs to be a 3-Step pointer and look something like this:
Code:
EROF_ADDRESS = EROF_ADDRESS_P + (0x1A8) + (0x50) + (0x64);
How would I code a multi-step pointer in C++? I've googled around and looked at many tutorials but they only cover 1-step pointer trainers.