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 


Help with Scrpiting

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

Joined: 14 Apr 2018
Posts: 8

PostPosted: Mon Apr 23, 2018 11:30 pm    Post subject: Help with Scrpiting Reply with quote

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
View user's profile Send private message
FreeER
Grandmaster Cheater
Reputation: 33

Joined: 09 Aug 2013
Posts: 862

PostPosted: Tue Apr 24, 2018 5:24 am    Post subject: Reply with quote

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)

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
TheRunner
How do I cheat?
Reputation: 0

Joined: 14 Apr 2018
Posts: 8

PostPosted: Tue Apr 24, 2018 7:20 am    Post subject: Reply with quote

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
View user's profile Send private message
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