luxder How do I cheat? Reputation: 0
Joined: 07 Mar 2024 Posts: 2
|
Posted: Thu Mar 07, 2024 7:57 pm Post subject: Help to make an autokill on my game please |
|
|
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.
|
|
luxder How do I cheat? Reputation: 0
Joined: 07 Mar 2024 Posts: 2
|
Posted: Fri Apr 19, 2024 6:00 pm Post subject: Re: Help to make an autokill on my game please |
|
|
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
|
|