| View previous topic :: View next topic |
| Author |
Message |
stardog_2006 How do I cheat?
Reputation: 0
Joined: 13 Mar 2007 Posts: 0
|
Posted: Tue Mar 13, 2007 2:05 pm Post subject: Question for the pro's |
|
|
SO, I used cheat engine and got myself 3 memory addresses Health, Energy, power
NOw i want to be able to write some functions in C that will allow me to access those offsets.
and save it into a DLL for future use. anyone that can point me in the right direction
I figure the flow is something like, get the memory offsets with cheat engine.
Use Visual C or C++ to write the functions and save it into a DLL
my question is how do i access those memory offsets off of a particular program.
Thanks
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6300
|
Posted: Sun Mar 18, 2007 5:00 pm Post subject: |
|
|
"Not a Pro"
Use readmemoryprocess
kernel32.dll
Holds these:
readmemoryprocess
writememoryprocess
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Tue Mar 20, 2007 11:11 am Post subject: |
|
|
First you need to Create a new thread in the process, then get its PID, then open it with OpenProcess to get a handle to it. Then see below.
| Code: | DWORD dwUnlimitedAmmoPatch[] = { 0x0011BE66 }; // Value
DWORD dwUnlimitedAmmoSize = sizeof( dwUnlimitedAmmoPatch );
DWORD dwAmmoAddress = 0x004C4169; // Address to patch
WriteProcessMemory(hProcess, (LPVOID)dwAmmoAddress, &dwUnlimitedAmmoPatch, dwUnlimitedAmmoSize, 0); |
Thats a code to get unlimited ammo in halo. Just change the value & address.
|
|
| Back to top |
|
 |
|