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 


Combine LUA Script with Auto Assembler Script

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

Joined: 14 Feb 2021
Posts: 6

PostPosted: Sun Feb 14, 2021 9:57 am    Post subject: Combine LUA Script with Auto Assembler Script Reply with quote

First sc :
local memsk = createMemScan()
memsk.firstScan(soExactValue, vtString, nil, "Lutzynthse", nil, 0, 0x7fffffffffffffff, "+W-C", fsmNotAligned, nil, nil, nil, false, true)
memsk.waitTillDone()

local foundsk = createFoundList(memsk)
foundsk.initialize()
for i=0, foundsk.Count-1 do
writeString(foundsk.Address[i], "Lutzunthse")
end
foundsk.deinitialize()
foundsk.destroy()
memsk.destroy()

Second sc :
[ENABLE]
aobscanmodule(Rapid,target.exe,80 7b ? ? 74 ? 85 ff 0f 85)
Rapid:
db 80 7B 50 01 74 73
registersymbol(Rapid)
[DISABLE]
Rapid:
db 80 7B 50 00 74 73
unregistersymbol(Rapid)

-----------------------------------------

Merging those 2, giving error : syntax error near 'aobscanmodule'
Looking out for you guys answers... thanks :3
Back to top
View user's profile Send private message
blankTM
Cheater
Reputation: 1

Joined: 03 May 2020
Posts: 49

PostPosted: Sun Feb 14, 2021 7:49 pm    Post subject: Re: Combine LUA Script with Auto Assembler Script Reply with quote

Code:

{$lua}
if syntaxcheck then return end
local memsk = createMemScan()
memsk.firstScan(soExactValue, vtString, nil, "Lutzynthse", nil, 0, 0x7fffffffffffffff, "+W-C", fsmNotAligned, nil, nil, nil, false, true)
memsk.waitTillDone()

local foundsk = createFoundList(memsk)
foundsk.initialize()
for i=0, foundsk.Count-1 do
writeString(foundsk.Address[i], "Lutzunthse")
end
foundsk.deinitialize()
foundsk.destroy()
memsk.destroy()
{$asm}
[ENABLE]
aobscanmodule(Rapid,target.exe,80 7b ? ? 74 ? 85 ff 0f 85)
Rapid:
db 80 7B 50 01 74 73
registersymbol(Rapid)
[DISABLE]
Rapid:
db 80 7B 50 00 74 73
unregistersymbol(Rapid)
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 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