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 


newbie help !

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

Joined: 28 Oct 2015
Posts: 1

PostPosted: Wed Oct 28, 2015 3:35 pm    Post subject: newbie help ! Reply with quote

i want to scan and replace these array of bytes
scan 01 75 10 8B 88 C4 01 00 00 85 C9 74 06
replace 01 75 10 8B 88 C4 01 00 00 85 C9 90 90
its only one occurrence..i can do this with text with this sample script below but want array of bytes instead of text

openProcess("notepad.exe")
ms=createMemScan()
memscan_firstScan(ms, soExactValue, vtString, rtRounded, "find this", "0", 0x00000000, 0x7fffffff, "", fsmNotAligned, "", false,false, true, false)
memscan_waitTillDone(ms)

fl=createFoundList(ms)
foundlist_initialize(fl)
local count=foundlist_getCount(fl)

if (count>0) then
for i=0, count do
local saddress=foundlist_getAddress(fl, i)
i=i+1
writeString(saddress, "change this",0)
end

else
print("No record found")
end

object_destroy(fl)
object_destroy(ms)
Back to top
View user's profile Send private message
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Wed Oct 28, 2015 4:02 pm    Post subject: Reply with quote

Here Is The Aobscan And Aob replace function Smile

Code:

[ENABLE]
Aobscan(_fpp,01 75 10 8B 88 C4 01 00 00 85 C9 74 06)

_fpp:
db 01 75 10 8B 88 C4 01 00 00 85 C9 90 90

[DISABLE]


U Can Also Use :-

Code:

[ENABLE]
Luacall(Aobswap("01 75 10 8B 88 C4 01 00 00 85 C9 74 06","01 75 10 8B 88 C4 01 00 00 85 C9 90 90"))


[DISABLE]
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Oct 28, 2015 4:28 pm    Post subject: Reply with quote

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