View previous topic :: View next topic |
Author |
Message |
reverser69 Expert Cheater Reputation: 0
Joined: 03 Sep 2014 Posts: 107
|
Posted: Wed Jan 27, 2021 5:17 am Post subject: [help] Advanced BP condition |
|
|
hi all
I need some help regarding the advanced LUA breakpoint condition
is there a manual about it? Google is not helping.
for example :
stop if [rcx+10] is not 1
stop if xmm0 is not 6.5
stop if a symbol i defined equals X
stop if the thread is XXX
stop if between two values
stop if BP is hit for X times
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Wed Jan 27, 2021 5:43 am Post subject: |
|
|
stop if [rcx+10] is not 1
can be done using a simple 1 line lua condition:
Code: |
readInteger(RCX+0x10)~=1
|
stop if xmm0 is not 6.5. (You did not specify if it's a double or float, so assuming float)
needs a complex condition:
Code: |
debug_getContext(true)
return byteTableToFloat(XMM0)~=6.5
|
(note that for floats I recommend doing a range check like >=6.49 and <=6.51 as floats can sometimes not be exactly 6.5000000)
stop if a symbol i defined equals X
(I'm assuming your symbol points to an address, and you don't mean when some other script changes the address of that symbol, and that the type of the symbol is a 4 byte)
Code: |
readInteger(getAddressSafe("a symbol I defined"))==X
|
stop if the thread is XXX
stop if between two values
Let's assume RCX between 10 and 20
Code: |
RCX>=10 and RCX<=20
|
stop if BP is hit for X times
Not built in so this needs a complex one as well, and afterwards you need to reset the counter
Code: |
if not counter then counter=0 end
counter=counter+1
return counter>X
|
_________________
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 |
|
Back to top |
|
|
reverser69 Expert Cheater Reputation: 0
Joined: 03 Sep 2014 Posts: 107
|
Posted: Wed Jan 27, 2021 5:55 am Post subject: |
|
|
thank you very much.
but is there any link to a comprehensive LUA just for working with CE?
every time i google it's just LUA for creating games and ...
of course, there's CE a forum but i don't want to mess around with noobish questions.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Wed Jan 27, 2021 6:02 am Post subject: |
|
|
there's celua.txt but that's mostly for describing the functions available to CE, but for the rest it's just normal Lua
_________________
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 |
|
Back to top |
|
|
|