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 


two simple questions

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
slayermbm
Newbie cheater
Reputation: 0

Joined: 15 Dec 2010
Posts: 18

PostPosted: Sat Feb 04, 2012 1:59 pm    Post subject: two simple questions Reply with quote

Hi everybody,

I have this two simple questions for those willing to answer: how to freeze an address in lua? And how exactly do you use or create a table with your current codes?

That's all. Thanks!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Sat Feb 04, 2012 2:43 pm    Post subject: Reply with quote

You can either use a timer or rewrite the code that you need to freeze. Using a timer would look like:

Code:

freeze_timer = createTimer( nil, true );
timer_setInterval( freeze_timer, 100 );
timer_onTimer( freeze_timer, function()
    writeInteger( "winmine.exe+5194", 999 );
end );

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
slayermbm
Newbie cheater
Reputation: 0

Joined: 15 Dec 2010
Posts: 18

PostPosted: Sat Feb 04, 2012 2:52 pm    Post subject: Reply with quote

Ok but what if I want the health address, for example, to immediatly turn back to the specified value, what would I have to do? Put the timer at 0? Or is it impossible without code injection? Thanks.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Sat Feb 04, 2012 3:06 pm    Post subject: Reply with quote

You could set the timers interval to something lower, but remember its external so it wont be 100% reliable. You are better off doing code injection to rewrite the code that is writing to the health address to ensure it will always be the value you want it to be.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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