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 


memory scan options

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
the rose
Newbie cheater
Reputation: 0

Joined: 28 Mar 2012
Posts: 19

PostPosted: Wed Mar 20, 2013 8:48 am    Post subject: memory scan options Reply with quote

for:
d0 30 >>> 20 20

I use the following code:

***
function replaceAOB()

r=AOBScan("d0 30")

if (r~=nil) then
c=strings_getCount(r)
if (c>0) then
resultlist3=nil
resultlist3={}
for i=0,c-1 do
a=strings_getString(r,i);
resultlist3[i+1]={}
resultlist3[i+1][1]=a
resultlist3[i+1][2]=readBytes(a, 10, true)

for j=0,1 do
writeBytes(tonumber("0x"..a)+j, 20)
end

end

else
print("No results");
end
else
print("Scan error")
end

end
****
it is changing all file aobs ...
I would just change the aobs, who are in that block of memory:
start: 00000B75
stop: 00000DD0

How do?
thanks....
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Wed Mar 20, 2013 5:32 pm    Post subject: Reply with quote

easiest way without learning how to us the memscan_ class is in the for loop check if tonumber("0x"..a) is within 0xb75 and 0xdd0 and if so, write, else skip
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
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