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 


How to Freeze AOB in AA?

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

Joined: 04 Jan 2015
Posts: 6

PostPosted: Thu Jan 08, 2015 11:00 am    Post subject: How to Freeze AOB in AA? Reply with quote

I have a script that just searches the AOB and then changes it when I toggle on the checkbox. I can't seem to find how to scan for it changes it and then freezes it till I toggle it off.... Anyone care to shed? Embarassed
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Sat Jan 10, 2015 11:43 am    Post subject: Re: How to Freeze AOB in AA? Reply with quote

Ballisitc wrote:
I have a script that just searches the AOB and then changes it when I toggle on the checkbox. I can't seem to find how to scan for it changes it and then freezes it till I toggle it off.... Anyone care to shed? Embarassed


Cheat Engine does not 'Freeze' Values,when you freeze a 4-byte value in an address,it keeps writing that value to the address on a very small interval,this is why freezing health in a game where you can die from one hit is most of the time not enough to give infinite HP,you'll still die.
I made an example script,I know that it can be made better,but I am busy these days with studies:
Press CTRL+ALT+L in CE,and run the script:
Code:
do
local state = 0; -- not frozen
function freeze(addr,size)
  local data = {readBytes(addr,size)};
  state = 1; -- frozen
  local t = createTimer();
  t.Interval , t.onTimer = 50 , function(this)
    if state == 0 then
      return this.destroy();
    else
      return writeBytes(addr,unpack(data));
    end
  end
end
function unfreeze()
state = 0; -- not frozen
end
end

now,your AutoAssemble script:
Code:
[enable]
{$lua}
local r = AOBScan'11 22 33 44' -- your AOB
local result = r[0]
r.destroy();
return freeze(result,4); -- freeze 4 bytes
{$asm}
[disable]
luacall(unfreeze())
Back to top
View user's profile Send private message
PlinKo
How do I cheat?
Reputation: 0

Joined: 25 May 2013
Posts: 1

PostPosted: Thu Sep 24, 2015 9:43 pm    Post subject: Reply with quote

That script didnt work..any one can help?
Back to top
View user's profile Send private message
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Fri Sep 25, 2015 4:11 am    Post subject: Reply with quote

Where are your Aobs ?
Back to top
View user's profile Send private message
darkhiyoo
How do I cheat?
Reputation: 0

Joined: 12 Apr 2021
Posts: 7

PostPosted: Tue Jan 25, 2022 6:35 pm    Post subject: Re: How to Freeze AOB in AA? Reply with quote

Redouane wrote:
Ballisitc wrote:
I have a script that just searches the AOB and then changes it when I toggle on the checkbox. I can't seem to find how to scan for it changes it and then freezes it till I toggle it off.... Anyone care to shed? Embarassed


Cheat Engine does not 'Freeze' Values,when you freeze a 4-byte value in an address,it keeps writing that value to the address on a very small interval,this is why freezing health in a game where you can die from one hit is most of the time not enough to give infinite HP,you'll still die.
I made an example script,I know that it can be made better,but I am busy these days with studies:
Press CTRL+ALT+L in CE,and run the script:
Code:
do
local state = 0; -- not frozen
function freeze(addr,size)
  local data = {readBytes(addr,size)};
  state = 1; -- frozen
  local t = createTimer();
  t.Interval , t.onTimer = 50 , function(this)
    if state == 0 then
      return this.destroy();
    else
      return writeBytes(addr,unpack(data));
    end
  end
end
function unfreeze()
state = 0; -- not frozen
end
end

now,your AutoAssemble script:
Code:
[enable]
{$lua}
local r = AOBScan'11 22 33 44' -- your AOB
local result = r[0]
r.destroy();
return freeze(result,4); -- freeze 4 bytes
{$asm}
[disable]
luacall(unfreeze())
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