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 


Put AOB scan address in variable for reuse by hotkey

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

Joined: 31 Mar 2016
Posts: 5
Location: Cyberspace

PostPosted: Thu Mar 16, 2017 5:49 pm    Post subject: Put AOB scan address in variable for reuse by hotkey Reply with quote

I want to make a script where, you press a certain key, it will refill your hearts; I can kinda do this, but I do not want to always scan for the AOB unless its invalid etc. I know I could just do this manually (scan and set hotkey for address), but i want to do it completely automatically.

So, I want to maybe do it like:
    1. Scan for an AOB and store the result address in a variable
    2. When desired key pressed, check if address is valid (if not, rescan the aob), then write an int to the address.

Thanks Very Happy
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Thu Mar 16, 2017 5:52 pm    Post subject: This post has 1 review(s) Reply with quote

Have CE create a script using AOB Injection template. Hook the instruction that is handling hearts value (segregate code, as needed), then store the address using a custom symbol. Add the custom address to your table after script activation and set a hotkey for value manipulation.

You can also set this up to auto-fill, based on value (e.g. if value equals 3 or less, auto-fill to max).
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Mar 16, 2017 6:35 pm    Post subject: Reply with quote

Code:
[ENABLE]
aobscan(myaob,{blah blah})
myaob:
dd #100
[DISABLE]
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