View previous topic :: View next topic |
Author |
Message |
TheRunner How do I cheat?
Reputation: 0
Joined: 14 Apr 2018 Posts: 8
|
Posted: Mon Apr 23, 2018 11:30 pm Post subject: Help with Scrpiting |
|
|
Hey, I thought I could ask you guys here about something deeper. I would like to know how would I go and create a script which at first scans for AOB (Array of bytes), and then once found, it'll add 45050 to whatever address is found and copies the values in there and finally paste them after adding 45050 to the address once again. Is this even possible? Help will be must appreciate. Please avoid redirecting me to links that are of no use to me, thanks. |
|
Back to top |
|
 |
FreeER Grandmaster Cheater Supreme
Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Tue Apr 24, 2018 5:24 am Post subject: |
|
|
so copy from x+45050 to x+45050+45050 aka x+8A0A0?
Code: | aobscan(bytesToCopy, ...)
bytesToCopy+8A0A0:
readmem(bytesToCopy+45050,bytesToRead) | should work, note that's a one time copy, if you want it to constantly copy them you could write some createThread and assembly code to constantly read and write for you or use lua to freeze a memory record's who's address is a registered symbol.
Code: | {$lua}
-- use lua to freeze the record
-- this will happen first even if it's after the AA code
-- in this case it's actually best that it's frozen first but something to be aware of with lua
getAddressList().getMemoryRecordByDescription('Description/name of the memory record with the symbol').Active = true
{$asm}
aobscan(bytesToCopy, ...)
registerSymbol(bytesToCopy) // probably want a better name for a symbol but
bytesToCopy+8A0A0:
readmem(bytesToCopy+45050,bytesToRead)
|
_________________
|
|
Back to top |
|
 |
TheRunner How do I cheat?
Reputation: 0
Joined: 14 Apr 2018 Posts: 8
|
Posted: Tue Apr 24, 2018 7:20 am Post subject: |
|
|
I'm really knew to this, what I want for Cheat Engine to do is scan this AOB (0A 00 00 00 28 84 00 00 07 00 00 02 01 80 00 00 19 83) and once that is found, it adds +45050 to the address (Not the value stored) and copy 8 bytes from there and paste it after adding 902A+ to the same address. I'm not increasing any values stored at any addresses, just adding numbers to the addresses to be in the right place. |
|
Back to top |
|
 |
|