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 


Trainer with hotkey to increase and decrease AOB?

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

Joined: 15 Apr 2017
Posts: 17

PostPosted: Mon May 22, 2017 9:09 pm    Post subject: Trainer with hotkey to increase and decrease AOB? Reply with quote

My luascript to change the height 80 to 99
Code:
[b]autoAssemble([[
Aobscan(_aob2, 46 00 00 00 00 00 00 00 00 00 00 80 BF 00 00 80 3F 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F)

_aob2:
db 46 00 00 00 00 00 00 00 00 00 00 80 BF 00 00 80 3F 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 99 3F

]]
)[/b]


The last letter 80 is the original height, I can change to everything i want in hexadecimal, to change the game height, but how to add button to increase and decrease in trainer?
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Mon May 22, 2017 10:56 pm    Post subject: Reply with quote

a simple script to find it and register a symbol would let you easily do so.

Code:

Aobscan(_aob2, 46 00 00 00 00 00 00 00 00 00 00 80 BF 00 00 80 3F 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F)
registerSymbol(_aob2)


once it's "assembled" then you can use _aob2 + bytes to 99 as the address, I'd guess 32 (decimal) bytes but I don't feel like counting Very Happy (note the first byte, 46, is at _aob2+0). So you'd have something like _aob2+20 for the address and then you could use regular hotkeys to increase/decrease it or use something like writeInteger("_aob2+20", readInteger("_aob2+20")+1) in lua to increase it by one.

I'm going to bed now though... nearly midnight.
Back to top
View user's profile Send private message
jededias
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 15 Apr 2017
Posts: 17

PostPosted: Tue May 23, 2017 9:32 am    Post subject: You can post the example here? Reply with quote

You can post the example here?
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