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 


aobscan + changing and freezing values

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Fri Jul 27, 2018 10:44 am    Post subject: Reply with quote

just add _hp to the address list as an aob and then manually freeze and change the bytes to 0 (or even separately add the hps as the correct type and set to 0 by selecting all of them with shift)?

though if you already had the memory record I suppose you could just add a bit of lua like
Code:
{$lua}
local mr = AddressList.getMemoryRecordByDescription('name of added aob with _hp as address')
local t = createTimer()
t.Interval = 100
t.OnTimer = function(t)
  if mr.CurrentAddress == 0 then return end -- wait until address is set
  mr.Active = true -- freeze
  mr.Value = ('00 '):rep(number of bytes to set)
  t.destroy() -- stop checking
end
{$asm}

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
mohlssonn
How do I cheat?
Reputation: 0

Joined: 27 Jul 2018
Posts: 2

PostPosted: Fri Jul 27, 2018 11:51 am    Post subject: Reply with quote

FreeER wrote:
just add _hp to the address list as an aob and then manually freeze and change the bytes to 0 (or even separately add the hps as the correct type and set to 0 by selecting all of them with shift)?

though if you already had the memory record I suppose you could just add a bit of lua like
Code:
{$lua}
local mr = AddressList.getMemoryRecordByDescription('name of added aob with _hp as address')
local t = createTimer()
t.Interval = 100
t.OnTimer = function(t)
  if mr.CurrentAddress == 0 then return end -- wait until address is set
  mr.Active = true -- freeze
  mr.Value = ('00 '):rep(number of bytes to set)
  t.destroy() -- stop checking
end
{$asm}


Already saved aa and Got all the adresses on a ct, so its not much of an issue.

I just want to automate as much as possible - and more importantly learning by doing Smile

Ill take a look at that lua when im at my pc again, thank you!
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