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 to make an autokill on my game please

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

Joined: 07 Mar 2024
Posts: 2

PostPosted: Thu Mar 07, 2024 7:57 pm    Post subject: Help to make an autokill on my game please Reply with quote

Hi guys, i need your help to do an autokiller on my game, i got already the instruction to attack one monster, but it only attack the monster i did put on the script, there are multiple monsters saved on the memory and i already got the pointer to the monster id 0


my code is this
Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(mycode,4096)
CREATETHREAD(mycode)
label(mustend)
registersymbol(mustend)
alloc(instruction,9) //9 bytes used for all the attack instruction
registersymbol(mycode)
registersymbol(instruction)


mycode:
mov edx,#35 { (52) }   //MONSTER ID
and edx,000000FF { 255 }
push edx
mov eax,#35 { (52) }   //MONSTER ID
sar eax,08 { 8 }
push eax
mov ecx,11
and ecx,000000FF { 255 }
push ecx
mov edx,11
shr edx,08 { 8 }
and edx,000000FF { 255 }
push edx
lea ecx,[instruction] // HERE ECX IS: "03 00 C1 01 19"
call mygame.exe+50D0
mov ecx,eax
call mygame.exe+50D0
mov ecx,eax
call mygame.exe+50D0
mov ecx,eax
call mygame.exe+50D0
push 00 { 0 }
push 01 { 1 }
lea ecx,[instruction]   //HERE ECX CHANGES TO "03 00 C1 01 19 E7 EE CD 20"
call mygame.exe+4D70




push #200
call sleep
cmp [mustend],1
jne mycode
ret



instruction:
//db 03 00 C1 01 19 E7 EE CD 20  //THIS IS WHAT ACTUALLY INSTRUCTION USES, LAST NUMBER IS FOR MONSTER ID
db 03 00 C1 01 19



mustend:
dd 0

 
[DISABLE]
mustend:
dd 1




now, i like to read on all the list of monsters the monster id of each alive monster

[[["mygame.exe"+00a7c224]+8]+7e] this is the monster0 id pointer

ID MONSTER OFFSET = 7E
MONSTER ALIVE = 81
MONSTER X = AC
MONSTER Y = B0
NAME MONSTER STRING 18 BYTES = 38
MONSTER SEPARATION OFFSET = 598

this are all the offsets i found, the monster separation offset are the distance on bytes for each monster on the memory, so, there could i make an iterator on lua, or asm, for read each one monster id alive and on attack range to make the instruction attack the monster

if anyone needs more information i can give it to them.
Back to top
View user's profile Send private message
johnschiffer
How do I cheat?
Reputation: 0

Joined: 03 Apr 2024
Posts: 1

PostPosted: Wed Apr 03, 2024 4:38 pm    Post subject: Re: Help to make an autokill on my game please Reply with quote

It achieved?
I'm also trying
Back to top
View user's profile Send private message
luxder
How do I cheat?
Reputation: 0

Joined: 07 Mar 2024
Posts: 2

PostPosted: Fri Apr 19, 2024 6:00 pm    Post subject: Re: Help to make an autokill on my game please Reply with quote

johnschiffer wrote:
It achieved?
I'm also trying


no, its hard for me, i have seen a lot of examples on python and on c# but i want to do it on lua
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