[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"dnf.exe"+3C18579)
label(returnhere)
label(originalcode1)
label(originalcode2)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
cmp [rcx+10],#76328//职业技能代码//人偶技能代码
je originalcode1
cmp [rcx+10],#76329//职业技能代码//人偶技能代码
jne originalcode2
originalcode1:
mov [rcx+10],#62129//修改技能代码
//mov [rcx+14],#99999999//伤害
mov [rcx+8C],(Float)100//大小
originalcode2:
mov [rbp+37],rax
mov rdi,rcx
exit:
jmp returnhere
"dnf.exe"+3C18579:
jmp newmem
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"dnf.exe"+3C18579:
mov [rbp+37],rax
mov rdi,rcx
//Alt: db 48 89 45 37 48 8B F9
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"dnf.exe"+3C18579)
label(returnhere)
label(originalcode1)
label(originalcode2)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
cmp [rcx+10],#76328//职业技能代码//人偶技能代码
je originalcode1
cmp [rcx+10],#76329//职业技能代码//人偶技能代码
jne originalcode2
originalcode1:
mov [rcx+10],#62129//修改技能代码
//mov [rcx+14],#99999999//伤害
mov [rcx+8C],(Float)100//大小
originalcode2:
mov [rbp+37],rax
mov rdi,rcx
exit:
jmp returnhere
"dnf.exe"+3C18579:
jmp newmem
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"dnf.exe"+3C18579:
mov [rbp+37],rax
mov rdi,rcx
//Alt: db 48 89 45 37 48 8B F9