Hades 2 - Cheat Money
Cheat with Cheat Engine
If like my work, you can support me on Patreon : / easygamecheatengine
script :
[ENABLE]
//open-close Inventory for refresh Money display number
aobscanregion(INJECTmoney,Hades2.sgg::InGameUI::Update,Hades2.sgg::InGameUI::Update+F00,BA D8 B9 F0 FF 41)
alloc(newmem,$1000,INJECTmoney)
label(code topPAdrBck)
label(strGameState strResources strMoney)
label(strCurrentRun strRerolls)
label(cfMoney cfRerolls)
label(hmpFuncInit hmpFuncGetfield hmpFuncSetfield)
label(return)
newmem:
mov rbx,[Hades2.sgg::ScriptManager::LuaInterface]
mov r8,[rbx+10]
mov [topPAdrBck],r8
sub rsp,70
mov [rbx+10],rsp
//Money
call hmpFuncInit
lea r8,[strGameState]
call hmpFuncGetfield
lea r8,[strResources]
call hmpFuncGetfield
//SetMoney
movsd xmm1,[cfMoney]
lea r8,[strMoney]
call hmpFuncSetfield
//Rerolls
call hmpFuncInit
lea r8,[strCurrentRun]
call hmpFuncGetfield
//SetRerolls
movsd xmm1,[cfRerolls]
lea r8,[strRerolls]
call hmpFuncSetfield
//SetComplete
add rsp,70
mov rdx,[topPAdrBck]
mov [rbx+10],rdx
code:
mov edx,FFF0B9D8
jmp return
hmpFuncInit:
sub rsp,48
mov r8d,2
mov edx,FFF0B9D8
mov rcx,rbx
call Hades2.lua_rawgeti
mov edx,FFF0B9D8
mov rcx,rbx
call Hades2.luaL_ref
mov r8d,eax
mov edx,FFF0B9D8
mov rcx,rbx
call Hades2.lua_rawgeti
add rsp,48
ret
hmpFuncGetfield:
sub rsp,48
mov rcx,rbx
mov edx,-1
call Hades2.lua_getfield
add rsp,48
ret
hmpFuncSetfield:
sub rsp,48
mov rcx,rbx
call Hades2.lua_pushnumber
mov rcx,rbx
mov edx,-2
call Hades2.lua_setfield
add rsp,48
ret
topPAdrBck:
dq 0
strGameState:
db 'GameState'
db 0
strResources:
db 'Resources'
db 0
strMoney:
db 'Money'
db 0
strCurrentRun:
db 'CurrentRun'
db 0
strRerolls:
db 'NumRerolls'
db 0
cfMoney:
dq (double)9555000 //Money
cfRerolls:
dq (double)3500 //Rerolls
INJECTmoney:
jmp newmem
return:
registersymbol(INJECTmoney)
[DISABLE]
INJECTmoney:
db BA D8 B9 F0 FF
unregistersymbol(INJECTmoney)
dealloc(newmem)
cheat list : • Hades 2