HonaBerry How do I cheat?
Reputation: 0
Joined: 04 May 2019 Posts: 4
|
Posted: Wed Jul 31, 2024 7:59 pm Post subject: How do I set RAX and RIP? [Solved] |
|
|
---- Never mind, I got it working
The lua code sniplet below isn't writing anything to eax, nor the instruction pointer.
Is there a way to set registers directly from lua? The thing works perfectly if I manually edit the registers in cheat engine after the breakpoint.
| Code: | debugProcess() -- Attach.
function Debbie()
if readInteger(RDX) == 0x520054 then
print(
string.format(
"Fastcall, arguments RCX: %x | RDX: %x | R8: %x | R9: %x",
RCX,
RDX,
R8,
R9
)
)
EAX = 0x0
RIP = 0x14027298D
return 1
end
end
debug_setBreakpoint(bpAdr, Debbie) -- Breakpoint Address
|
|
|