 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
omoe Grandmaster Cheater
Reputation: 8
Joined: 11 Jun 2013 Posts: 547
|
Posted: Wed Jul 31, 2013 3:42 am Post subject: Can i change a value using AOB ? |
|
|
So i know how to make a game react in a different way like when you buy something you get 1m coins instead of losing coins etc , But how to like set the value of the coins to 1m without the need to buy something first ? This code is for Nascar , when i want to change the value only i have to use pointers idk how to do it with an AOB script .
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
registersymbol(aob2)
aobscan(aob2, 29 87 0C 01 03 00 8B 96 B8 1F 00 00 2B 5A 04 8B 86 AC 1F 00 00 89 5D C8 33 DB 85 C0)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
add [edi+0003010C],F4240
originalcode:
//sub [edi+0003010C],eax
exit:
jmp returnhere
aob2:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
aob2:
sub [edi+0003010C],eax
//Alt: db 29 87 0C 01 03 00 |
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Jul 31, 2013 3:58 am Post subject: |
|
|
To immediately change a value, you either need to alter the value, itself, by adding the address/pointers to your cheat table, or, by injecting at an instruction that constantly accesses your address. If you inject at an instruction that only writes to your address, then obviously, the value won't change until it is being written to.
|
|
Back to top |
|
 |
|
|
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
|
|