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 


CE 6.5 Freezing

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Rur3k
Expert Cheater
Reputation: 0

Joined: 19 Aug 2008
Posts: 235
Location: HaHaVille Maryland

PostPosted: Wed Mar 02, 2016 11:00 pm    Post subject: CE 6.5 Freezing Reply with quote

SO I have a quick question hopefully easy enough to get an answer...

I have four hotkeys. insert delete page up page down

Function Freeze and Unfreeze work to toggle on and off Energy freeze (via pressing insert for freeze and delete for unfreeze)

Now, I have the second description in my cheat table is for health.

My question is how do I get (page up and page down) to toggle freeze on my second entry in my address list which is Health?

Code:
form_show(UDF1)
 getAutoAttachList().add("Grim Dawn.exe")

 function CloseClick()
   closeCE()
   return caFree
 end

 UDF1.OnClose = CloseClick

 addresslist=getAddressList()

 createHotkey(Freeze, VK_INSERT)
 createHotkey(Unfreeze, VK_DELETE)
 createHotkey(hFreeze, VK_PAGEUP)
 createHotkey(hUnfreeze, VK_PAGEDOWN)

 function Freeze(Sender)
 CheatEntry=addresslist_getMemoryRecordByID(addresslist,0)
 memoryrecord_freeze(CheatEntry)
 end

 function Unfreeze(sender)
CheatEntry=addresslist_getMemoryRecordByID(addresslist,0)
     memoryrecord_unfreeze(CheatEntry)
 end

 function hFreeze(Sender)
 CheatEntry=addresslist_getMemoryRecordByID(addresslist,1) --This is what needs to toggle Health Freeze
 memoryrecord_freeze(CheatEntry)
 end

 function hUnfreeze(sender)
 CheatEntry=addresslist_getMemoryRecordByID(addresslist,1) --This is what needs to toggle Health unfreeze
 memoryrecord_unfreeze(CheatEntry)
 end

_________________
*Rur3k's Haven*

_______________________________________
The wise rapper "Chino" once said, "You can't mapquest your life direction"

My BEST super trainer for Hands of War
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Thu Mar 03, 2016 3:02 am    Post subject: This post has 1 review(s) Reply with quote

freeze and unfreeze shouldn't work either, as when createHotkey is called becore the functions are created

anyhow, are you sure the ID is 1? Copy paste the entry to text and check the id field

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Rur3k
Expert Cheater
Reputation: 0

Joined: 19 Aug 2008
Posts: 235
Location: HaHaVille Maryland

PostPosted: Thu Mar 03, 2016 3:39 pm    Post subject: Reply with quote

Thanks Dark Byte for the accurate answer, solved my issue. That was the problem, the ID is 43 not 1! As far as the hotkeys freezing and unfreezing even though they are called before the functions, does not seem to be an issue the toggling works just fine.


All fixed, thanks a bunch!!!
Back to top
View user's profile Send private message MSN Messenger
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