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 range adress

 
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: Thu Aug 23, 2018 4:21 pm    Post subject: help range adress Reply with quote

This my Scrypt
local scan = 00 00 00 00 00 00';
local replace = '00 00';
local replace_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
i wan search address 0x400000 - 0x700000
thx
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Thu Aug 23, 2018 5:49 pm    Post subject: Reply with quote

surprisingly lua doesn't have a range scan unless you jump to the full memscan, though if you only cared about the first address you could use autoAssemble and AA's aobscanregon (or I suppose use autoAssemble multiple times if you did care about all of the results)

see https://forum.cheatengine.org/viewtopic.php?t=606570

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

Joined: 23 Aug 2018
Posts: 9

PostPosted: Sat Aug 25, 2018 2:50 am    Post subject: Reply with quote

can give example?
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