[HELP] Edit skill reset stone

11/16/2023 02:12 vanthong38#1
[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
11/23/2023 04:15 IamOdin#2
Try this one

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(exit)

newmem:
inc eax
mov edx,#17 // points per level
mul edx
mov [esi+0000013A],ax

exit:
jmp returnhere

"ps_game.exe"+8FCC8:
jmp newmem
nop
nop
nop
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"+8FCC8:
lea edx,[eax+eax*4+05]
mov [esi+0000013A],dx
//Alt: db 8D 54 80 05 66 89 96 3A 01 00 00