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 


Question for the pro's

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
stardog_2006
How do I cheat?
Reputation: 0

Joined: 13 Mar 2007
Posts: 0

PostPosted: Tue Mar 13, 2007 2:05 pm    Post subject: Question for the pro's Reply with quote

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
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6300

PostPosted: Sun Mar 18, 2007 5:00 pm    Post subject: Reply with quote

"Not a Pro"

Use readmemoryprocess

kernel32.dll

Holds these:
readmemoryprocess
writememoryprocess
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Tue Mar 20, 2007 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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