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 aobscanregion

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

Joined: 23 Aug 2018
Posts: 9

PostPosted: Tue Sep 25, 2018 2:45 am    Post subject: Help aobscanregion Reply with quote

Help how can use aobscanregion?
how can change me scrypt use aobscanregion?
this me scrypt..

function CEButton1Click(sender)
local scan = '00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F';
local replace = '00 00 DE 42';
local replace_table = {}; -- writeBytes function requires either a table with hex values or parameters with hex values... this converts the string above to a table.
for byte in string.gfind(replace, "[^%s]+") do
table.insert(replace_table, tonumber('0x'..byte));
end
local data = AOBScan(scan);
if (data) then
local count = data.getCount();
for i=0, count-1 do
local address = data.getString(i);
writeBytes(address, replace_table);
end
end
end

thx...
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Wed Sep 26, 2018 2:38 pm    Post subject: Reply with quote

Lua doesn't have a simple aobscanregion function, there are some workarounds
https://forum.cheatengine.org/viewtopic.php?p=5734504#5734504

_________________
https://github.com/FreeER/ has a few CE related repos
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