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 


how to Change all scanned AOBs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Sat Dec 31, 2016 5:11 am    Post subject: how to Change all scanned AOBs Reply with quote

If I scanned for
Code:
75 25 FF 15 B4 60 A8 00

I get 20 result .

I want to change all them to
Code:
EB 25 FF 15 B4 60 A8 00
by script is that possible with Lua scan then change all '? any example please
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sat Dec 31, 2016 6:08 am    Post subject: This post has 2 review(s) Reply with quote

Code:
aob_s = 75 25 FF 15 B4 60 A8 00
aob_r = EB 25 FF 15 B4 60 A8 00

  resultList = AOBScan(tostring(aob_s), "+W*X-C")
 if (resultList) then
   lngt = resultList.getCount()
   for x=0, lngt-1, 1 do
      writeBytes(resultList[x], 0xEB, 0x25, 0xFF, 0x15, 0xB4, 0x60, 0xA8, 0x00)
  end
   resultList.Destroy()
   resultList = nil


You Can Merge Auto Assemble With LUA

Code:
resultList = AOBScan("75 25 FF 15 B4 60 A8 00", "+W*X-C") --Scan Your AoB
if (resultList) then --Check For Results
--Start Of Auto Assemble Code
autoAssemble[[aobscan(Scan0,75 25 FF 15 B4 60 A8 00)
Scan0:
db EB 25 FF 15 B4 60 A8 00]]
--End Of AutAssemble Code
end --End Of IF
resultList.Destroy()
resultList = nil   


or see this (by Zanzer) : http://forum.cheatengine.org/viewtopic.php?p=5620925
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