samurai1samura How do I cheat? Reputation: 0
Joined: 17 Mar 2009 Posts: 1
|
Posted: Tue Sep 10, 2019 7:34 am Post subject: Need help about editing written cheat engine source code |
|
|
I need to edit this codes to make work again in a pokemon game. After the current patch , i am not able to active the cheat sheat atm. Before that , it works like a charm. The code i used was :
[ENABLE]
aobscanmodule(INJECT,GameAssembly.dll,FF D0 48 85 C0 0F 84 ?? ?? ?? ?? 45 33 C0 B2 01 48 8B C // should be unique
INJECT:
call rax
test rax,rax
jmp GameAssembly.dll+173F1D
nop
registersymbol(INJECT)
[DISABLE]
INJECT:
call rax
test rax,rax
je GameAssembly.dll+173F1D
unregistersymbol(INJECT)
and this one
{$lua} // DELETE FROM HERE IF YOU DON'T WANT IT TO BEEP
local timer = createTimer(getMainForm())
local script = getAddressList()
script = script.getMemoryRecordByDescription("Pokemon Hunter")
timer.Interval = 5000
timer.OnTimer = function(timer)
if (readInteger("PokeID")) == (readInteger("EscapePoke1"))then
beep()
elseif (readInteger("PokeID")) == (readInteger("EscapePoke2"))then
beep()
elseif (readInteger("PokeID")) == (readInteger("EscapePoke3"))then
beep()
elseif (readInteger("PokeID")) == (readInteger("EscapePoke4"))then
beep()
if script.Active == false then
timer.destroy()
end
end
end
{$asm} // DELETE FROM HERE IF YOU DONT WANT IT TO BEEP
[ENABLE]
aobscanmodule(ID,GameAssembly.dll,33 D2 48 8B CB E8 ?? ?? ?? ?? 89 87 FC 09 00 00 41 83 7D 18 03) //PokeID
aobscanmodule(RUN,GameAssembly.dll,33 D2 8B C8 E8 ?? ?? ?? ?? 84 C0 0F 84 ?? ?? ?? ?? 33 D2 49 8B CE) //Run
alloc(FindID,$1000) //ID
alloc(PokeID,$1000) //ID
alloc(Escape,$1000) //RUN
alloc(EscapeFound,$1000) //RUN
alloc(EscapePoke1,$1000) //RUN
alloc(EscapePoke2,$1000) //RUN
alloc(EscapePoke3,$1000) //RUN
alloc(EscapePoke4,$1000) //RUN
label(ReturnEscape) //RUN
label(SaveID) //ID
label(ReturnID) //ID
EscapePoke1:
dd 1
EscapePoke2:
dd 1
EscapePoke3:
dd 1
EscapePoke4:
dd 1
Escape:
test al,al
push rax
mov rax,[PokeID]
cmp [EscapePoke1],rax
pop rax
je EscapeFound
push rax
mov rax,[PokeID]
cmp [EscapePoke2],rax
pop rax
je EscapeFound
push rax
mov rax,[PokeID]
cmp [EscapePoke3],rax
pop rax
je EscapeFound
push rax
mov rax,[PokeID]
cmp [EscapePoke4],rax
pop rax
je EscapeFound
db 33 d2
mov rcx,r14
call GameAssembly.dll+17E610
jmp GameAssembly.dll+178920
jmp RUN+20
EscapeFound:
jmp GameAssembly.dll+17AE3C
RUN+9:
jmp Escape
nop
nop
nop
nop
nop
nop
nop
nop
nop
ReturnEscape:
FindID:
SaveID:
mov [PokeID],eax
mov [rdi+000009FC],eax
cmp dword ptr [r13+18],03
jbe GameAssembly.dll+173A15
jmp ID+1B
ID+A:
jmp FindID
nop
nop
nop
ReturnID:
registersymbol(ID)
registersymbol(PokeID)
registersymbol(EscapePoke1)
registersymbol(EscapePoke2)
registersymbol(EscapePoke3)
registersymbol(EscapePoke4)
registersymbol(RUN)
[DISABLE]
ID+A:
mov [rdi+000009FC],eax
cmp dword ptr [r13+18],03
jbe GameAssembly.dll+173A15
RUN+9:
test al,al
je GameAssembly.dll+17AE3C
db 33 d2
mov rcx,r14
call GameAssembly.dll+17E610
jmp GameAssembly.dll+178920
unregistersymbol(ID)
unregistersymbol(PokeID)
unregistersymbol(EscapePoke1)
unregistersymbol(EscapePoke2)
unregistersymbol(EscapePoke3)
unregistersymbol(EscapePoke4)
unregistersymbol(RUN)
dealloc(FindID)
dealloc(Escape)
dealloc(PokeID)
dealloc(EscapePoke1)
dealloc(EscapePoke2)
dealloc(EscapePoke3)
dealloc(EscapePoke4)
What should i change to make it work again? Thank you very much.[/list]
|
|