Mallis How do I cheat?
Reputation: 0
Joined: 07 Oct 2018 Posts: 1
|
Posted: Sun Oct 07, 2018 7:14 pm Post subject: Help changing value found from an instruction |
|
|
debugProcess()
debug_setBreakpoint("Minecraft.Windows.exe+2775DE")
on = false;
function debugger_onBreakpoint()
OnGround_address=ESI
print (OnGround_address);
writeFloat(OnGround_address, 90)
debug_removeBreakpoint("Minecraft.Windows.exe+2775DE");
return 1;
end
function isCPressed()
writeFloat(OnGround_address, 30)
end
createHotkey(isCPressed, VK_C)
above is my current code, probably a lot wrong with it as it is my first experience with lua and this sort of stuff. what im trying to get it to do is when i hold 'c' it changes the value to 30 but when i release it restores it to 90. every time 'c' is pressed it just says ''Error:attempt to call a nil value''
|
|