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 


[Q]Freeze values from adress list when .ct table is launched

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
squerol
Advanced Cheater
Reputation: 2

Joined: 06 Jul 2015
Posts: 65
Location: Poland

PostPosted: Mon Aug 15, 2016 1:01 pm    Post subject: [Q]Freeze values from adress list when .ct table is launched Reply with quote

Hey guys, I have a question...
Is there a script to freeze some value from adress list when I launch my table?
Right now I've made something like that, it works as I wanted :

Code:

<LuaScript>
  OpenProcess("Gothic3.exe")
  speedhack_setSpeed(1.5)
  getAddressList().getMemoryRecordByDescription("Stamina").Value=0
  getAddressList().getMemoryRecordByDescription("Stamina_alt").Value=0
</LuaScript>


Right now, when I start table, it automatically picks correct process, speedhacks my game and then sets value of some two adresses to 0.
I want to have those two values (stamina, stamina_alt) freezed automatically too, but I can't find a script to freeze value anywhere on internet or this forum.

Thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Aug 15, 2016 1:37 pm    Post subject: Re: [Q]Freeze values from adress list when .ct table is laun This post has 1 review(s) Reply with quote

It is in main.lua:
Code:
Active: boolean - Set to true to activate/freeze, false to deactivate/unfreeze



Code:
  OpenProcess("Gothic3.exe")
  speedhack_setSpeed(1.5)

  mr1 = getAddressList().getMemoryRecordByDescription("Stamina")
  mr2 = getAddressList().getMemoryRecordByDescription("Stamina_alt")

  mr1.Active = true
  mr2.Active = true

  mr1.Value = 0
  mr2.Value = 0

_________________
Back to top
View user's profile Send private message MSN Messenger
squerol
Advanced Cheater
Reputation: 2

Joined: 06 Jul 2015
Posts: 65
Location: Poland

PostPosted: Mon Aug 15, 2016 2:25 pm    Post subject: Reply with quote

Thank You very much for quick help, mgr.inz.Player, it works Smile
Thanks for source too

Dzięki (po nicku wnioskuję, żeś rodak Wink)
Back to top
View user's profile Send private message Send e-mail 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