Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help changing value found from an instruction

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Mallis
How do I cheat?
Reputation: 0

Joined: 07 Oct 2018
Posts: 1

PostPosted: Sun Oct 07, 2018 7:14 pm    Post subject: Help changing value found from an instruction Reply with quote

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''
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites