| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| KDroid How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 31 Mar 2016
 Posts: 5
 Location: Cyberspace
 
 | 
			
				|  Posted: Thu Mar 16, 2017 5:49 pm    Post subject: Put AOB scan address in variable for reuse by hotkey |   |  
				| 
 |  
				| 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
   |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| ++METHOS I post too much
 
 ![]() Reputation: 92 
 Joined: 29 Oct 2010
 Posts: 4197
 
 
 | 
			
				|  Posted: Thu Mar 16, 2017 5:52 pm    Post subject: |     |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Zanzer I post too much
 
 ![]() Reputation: 126 
 Joined: 09 Jun 2013
 Posts: 3278
 
 
 | 
			
				|  Posted: Thu Mar 16, 2017 6:35 pm    Post subject: |   |  
				| 
 |  
				|  	  | Code: |  	  | [ENABLE] aobscan(myaob,{blah blah})
 myaob:
 dd #100
 [DISABLE]
 | 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |