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 


need help with LUA

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
mbabo
Advanced Cheater
Reputation: 0

Joined: 30 Jul 2016
Posts: 74

PostPosted: Mon Mar 09, 2020 9:43 am    Post subject: need help with LUA Reply with quote

hi ,

am trying to make a lua script to set a breakpoints on a function to find and set
every single address used by it to 0 . ( i dont want to change the op code )

so far i wrote this in lua yet it doesn't work it gives me error something went wrong

Code:
[ENABLE]
{$lua}

function test()

function debugger_onBreakpoint()

writeFloat(EBX+4AC, 0)
debug_continueFromBreakpoint(co_run) -- continue execution

end

debugProcess(0)
debug_setBreakpoint(0x00425A43)

end




t=createTimer(nil)
timer_setInterval(t, 10)
timer_onTimer(t, test)
timer_setEnabled(t, true)

[DISABLE]

debug_removeBreakpoint(0x00425A43) -- the function address
timer_setEnabled(t, false)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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