I tried to convert this script
to work on a EP4 ps_game. I've tried to search using Cheat Engine these opcodes and use them but it didn't seem to agree with me, anyone can point me to the right direction to convert this?Quote:
[ENABLE]
alloc(newmem2,2048)
alloc(typeid,4)
label(returnhere2)
label(originalcode2)
label(exit2)
newmem2:
push eax
mov eax,[edx+41]
mov [typeid],eax
pop eax
originalcode2:
cmp byte ptr [edx+40],5F
jne ps_game.exe+6CAB7
exit2:
jmp returnhere2
"ps_game.exe"+6C9FE:
jmp newmem2
nop
nop
nop
nop
nop
returnhere2:
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
cmp byte ptr [typeid],(int)2 // typeid perfect lapisia
je 0046CD83
cmp byte ptr [typeid],(int)7 // typeid perfect lapisia
je 0046CD83
originalcode:
cmp esi,eax
jae ps_game.exe+6D11C
exit:
jmp returnhere
"ps_game.exe"+6CD7B:
jmp newmem
nop
nop
nop
returnhere:
[DISABLE]
dealloc(typeid)
dealloc(newmem2)
"ps_game.exe"+6C9FE:
cmp byte ptr [edx+40],5F
jne ps_game.exe+6CAB7
dealloc(newmem)
"ps_game.exe"+6CD7B:
cmp esi,eax
jae ps_game.exe+6D11C






