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 


Lua engine, help me

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

Joined: 16 Aug 2019
Posts: 3

PostPosted: Sun Sep 29, 2019 3:49 am    Post subject: Lua engine, help me Reply with quote

Can u guys give me code to change pointer value on cheat tables??? Very Happy
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sun Sep 29, 2019 9:06 am    Post subject: Reply with quote

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

Joined: 16 Aug 2019
Posts: 3

PostPosted: Mon Sep 30, 2019 7:43 am    Post subject: Reply with quote

FreeER wrote:
writePointer(pointerAddress, newPointerValue)

example? writePointer(??,1) Question Question
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Mon Sep 30, 2019 11:05 am    Post subject: Reply with quote

eg '"Tutorial-i386.exe"+242650' or '["Tutorial-i386.exe"+242650]+4AC' etc.
1 would probably not be the value you want to write for a pointer it's too small to be valid and 0 is usually how code checks for an unset pointer.

If you want to write something else when you have a pointer to it then you'd use the appropriate function for the type you want to write, writeInteger, SmallInteger, Float, String etc. and just give the address with []s for each level and the offset added, see the second example above.

_________________
https://github.com/FreeER/ has a few CE related repos
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