yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Fri May 03, 2024 7:44 am Post subject: How to set conditional breakpoints in a lua script |
|
|
| Code: | debug_setBreakpointForThread(threadid, address, size OPTIONAL, trigger OPTIONAL, breakpointmethod OPTIONAL, functiontocall() OPTIONAL) : sets a breakpoint of a specific size at the given address for the specified thread. if trigger is bptExecute then size is ignored. If trigger is ignored then it will be of type bptExecute, which obviously also ignores the size then as well. (Other triggers are bptAccess and bptWrite)
debug_setBreakpoint(address, size OPTIONAL, trigger OPTIONAL, breakpointmethod OPTIONAL, functiontocall() OPTIONAL)
debug_setBreakpoint(address, size OPTIONAL, trigger OPTIONAL, functiontocall() OPTIONAL)
debug_setBreakpoint(address, functiontocall() OPTIONAL) |
None of these lua functions have conditional breakpoints set?
| Description: |
|
| Filesize: |
158.5 KB |
| Viewed: |
1060 Time(s) |

|
|
|
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25819 Location: The netherlands
|
Posted: Fri May 03, 2024 9:24 am Post subject: |
|
|
The return value of the lua function is the condition
return 1 if you wish to break, and nil if not
| Code: |
debug_setBreakpoint(0x100045D7D, function()
if not condition then return nil end --nil is not handled
return 1 --make it break
end)
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|