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 


making script using value of pointers?

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

Joined: 15 Nov 2022
Posts: 1

PostPosted: Tue Nov 15, 2022 11:09 am    Post subject: making script using value of pointers? Reply with quote

Hello!

I'm a total noob at coding/scripting and I mainly followed tutorials and premade scripts to make mine work.

So I managed to get pointers to get my character's coordinates (x/y/z) and I wanted to make a script to basically have a noclip (increasing the coordinates of my x/y by 1) depending on which hotkey I press. The type of the value of my coordinates are floats

I've searched a bit and I haven't found a way to return the value of a pointer, then using it to increase it by 1 when activated, or when I press specific hotkeys

I hope you guys can help me with that Smile

PS : 80 offget gives me X, 84 Y and 88 Z coordinates



pointer.jpg
 Description:
 Filesize:  52.45 KB
 Viewed:  1130 Time(s)

pointer.jpg


Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Tue Nov 15, 2022 12:51 pm    Post subject: Reply with quote

https://wiki.cheatengine.org/index.php?title=Lua

You can either pull it from the table by name or pull it by the pointer chain itself, read it, increment/decrement it, write it.
Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Wed Nov 16, 2022 2:34 am    Post subject: Reply with quote

xyz is just vector 3d or vector 4d of coordinates (X, Y, Z, (W if vector is 4d)), and i don't think that player pointer is accessed by many offsets, there must be atleast 4,3 offsets
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
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