[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
inc ecx
mov eax,#17
mul eax
mov [ps_game.exe+1DFD77C],eax
originalcode:
lea eax,[ecx+edi*4]
mov [ps_game.exe+1DFD77C],eax
exit:
jmp returnhere
"ps_game.exe"+165B8D:
jmp newmem
nop
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"ps_game.exe"+165B8D:
lea eax,[ecx+edi*4]
mov [ps_game.exe+1DFD77C],eax
//Alt: db 8D 04 B9 A3 7C D7 1F 02
This's originalcode of [ps_game.exe+1DFD77C]:
inc [eax],al
i'm trying to fix it to each level increasing by 17 skill points. But when activating the code it causes the game to crash. Can anyone help me edit this code. Thank you very much