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 


Turn off the script if there is a digit?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 41

PostPosted: Sun Sep 24, 2023 11:05 am    Post subject: Turn off the script if there is a digit? Reply with quote

how do I make him wait until the number appears?
if there is a number 1 then turn off the script

[ENABLE]
aobscan(ABL,66xxxxxxxxxxxxxxf3xxxxxxxx66xxxxxxxxxxxxxx85xx0f84)
ABL:
db 90 90 90 90 90 90 90 90
//-----------------------------------------


//Wait here


//-----------------------------------------
registersymbol(ABL)
[DISABLE]
ABL:
db 66 0F D6 83 A0 01 00 00
unregistersymbol(ABL)



202234902.jpg
 Description:
 Filesize:  74.56 KB
 Viewed:  1659 Time(s)

202234902.jpg


Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1533

PostPosted: Sun Sep 24, 2023 1:46 pm    Post subject: Reply with quote

Code:

[ENABLE]

{$lua}
if testTmr then testTmr.Destroy() testTmr=nil end
testTmr=createTimer()
testTmr.Interval=100
testTmr.Enabled=false

al=getAddressList()
test1=addresslist_getMemoryRecordByDescription(al, "D1")

testTmr.OnTimer=function()
 if test1.Value=="1" then
  test1.Active=false
  testTmr.Enabled=false
 end
end

test1.Active=true
testTmr.Enabled=true

{$asm}

[DISABLE]

{$lua}
if testTmr then testTmr.Destroy() testTmr=nil end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 41

PostPosted: Sun Sep 24, 2023 3:49 pm    Post subject: Reply with quote

Thank you very much
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