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 


how put this code in lua script

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

Joined: 26 May 2019
Posts: 1

PostPosted: Sun May 26, 2019 5:29 pm    Post subject: how put this code in lua script Reply with quote

how put this auto semmble code in lua script without error

Code:

[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

mov [esi+04],219FFB7C

originalcode:

mov [esi+04],eax
mov [esp+74],FFFFFFFF

exit:
jmp returnhere

"game.dat"+166857:
jmp newmem
nop
nop
nop
nop
nop
nop
returnhere:
[DISABLE]


that code work perfect with injection auto assembly
I want use this code with lua script
if you can help me ... thank you
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sun May 26, 2019 6:56 pm    Post subject: Reply with quote

Code:
autoAssemble([[
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

mov [esi+04],219FFB7C

originalcode:

mov [esi+04],eax
mov [esp+74],FFFFFFFF

exit:
jmp returnhere

"game.dat"+166857:
jmp newmem
nop
nop
nop
nop
nop
nop
returnhere:
[DISABLE]
]])


https://wiki.cheatengine.org/index.php?title=Lua:autoAssemble

_________________
Back to top
View user's profile Send private message Visit poster's website
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