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 


change all values of an AOBScan

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

Joined: 07 Aug 2017
Posts: 4
Location: United Kingdom

PostPosted: Mon Aug 07, 2017 3:27 pm    Post subject: change all values of an AOBScan Reply with quote

Hi all. Is it possible to perform an AOBScan and then change all the values of the results? I have about 10 values I would like to change. They are all the same but not sure how to go about it.

Thanks
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 4

Joined: 01 Feb 2016
Posts: 581

PostPosted: Mon Aug 07, 2017 4:00 pm    Post subject: Reply with quote

yes, just increase the offset.
if the distance is 4, then %reg+04%, %reg+08% and so on.

if the 10 addresses have totally different location ( one start with 01, other start with 0F ), then you might need to move that location into a register first.
or make a separate script.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message
ParkourPenguin
Grandmaster Cheater Supreme
Reputation: 54

Joined: 06 Jul 2014
Posts: 1813
Location: Arcadian Suburbia

PostPosted: Mon Aug 07, 2017 4:19 pm    Post subject: Reply with quote

Code:
local results = assert(AOBScan('01 23 45 67'), 'No results found.')

for i=0, results.Count-1 do
  writeBytes(results[i], 0x89, 0xAB, 0xCD, 0xEF)
end

results.destroy()

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
nachorama
How do I cheat?
Reputation: 0

Joined: 07 Aug 2017
Posts: 4
Location: United Kingdom

PostPosted: Tue Aug 08, 2017 8:20 am    Post subject: Reply with quote

ParkourPenguin wrote:
Code:
local results = assert(AOBScan('01 23 45 67'), 'No results found.')

for i=0, results.Count-1 do
  writeBytes(results[i], 0x89, 0xAB, 0xCD, 0xEF)
end

results.destroy()


That's the one. Thank you for replying.
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 Lua Scripting 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