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 


Teleport script help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
ogpayne
Cheater
Reputation: 0

Joined: 08 Dec 2014
Posts: 45

PostPosted: Thu Aug 20, 2015 2:53 pm    Post subject: Teleport script help Reply with quote

Hey everyone I'm looking for someone that can help explain how you more advanced users create a teleport script. I have my X,Y.Z coords and I just need a little nudge in the right direction.. Thanks guys.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Aug 20, 2015 3:32 pm    Post subject: Reply with quote

Well you need to know where you're going.

Often times, mission objectives or map markers will contain similar X and Y coordinates.
So you find those values and then you update your coordinates to match.

Or if you want to save/load, you create 3 of your own variables.
Store the current coordinates in them until you're ready to load them back.

In order to update the current coordinates, you must find what accesses them.
You will then use this location for your injection to update the values instead of reading them.
You would have a separate script to enable 0/1 flags to trigger the desired action.
Since the injection point is constantly executing, it will see the flag and execute the desired action.
Back to top
View user's profile Send private message
ogpayne
Cheater
Reputation: 0

Joined: 08 Dec 2014
Posts: 45

PostPosted: Thu Aug 20, 2015 3:42 pm    Post subject: Reply with quote

Zanzer wrote:
Well you need to know where you're going.

Often times, mission objectives or map markers will contain similar X and Y coordinates.
So you find those values and then you update your coordinates to match.

Or if you want to save/load, you create 3 of your own variables.
Store the current coordinates in them until you're ready to load them back.

In order to update the current coordinates, you must find what accesses them.
You will then use this location for your injection to update the values instead of reading them.
You would have a separate script to enable 0/1 flags to trigger the desired action.
Since the injection point is constantly executing, it will see the flag and execute the desired action.

I'm not looking for a save/load that's a bit more complex than my current scope, I'm only trying to make it so you can enter in how far you want to go then push a button to make you go that far on either coordinate.. Did I explain that well enough? Thanks for your feedback.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Aug 20, 2015 3:54 pm    Post subject: Reply with quote

Can create a little script that will read the current value in the address, add to it, then overwrite it.
Code:
[ENABLE]
{$lua}
local addr = "however you have it"
writeFloat(addr, readFloat(addr) + 5.0)
{$asm}
[DISABLE]
{$lua}
local addr = "however you have it"
writeFloat(addr, readFloat(addr) + 5.0)
{$asm}
Back to top
View user's profile Send private message
ogpayne
Cheater
Reputation: 0

Joined: 08 Dec 2014
Posts: 45

PostPosted: Thu Aug 20, 2015 4:08 pm    Post subject: Reply with quote

Zanzer wrote:
Can create a little script that will read the current value in the address, add to it, then overwrite it.
Code:
[ENABLE]
{$lua}
local addr = "however you have it"
writeFloat(addr, readFloat(addr) + 5.0)
{$asm}
[DISABLE]
{$lua}
local addr = "however you have it"
writeFloat(addr, readFloat(addr) + 5.0)
{$asm}

Oh very simple and I actually understand this code lua looks a bit closer to C++ instead of complex asm, once I get home I will try this out. I'll report back with the results.. And if you don't mind, would it be possible to make it happen upon a key stroke? For example if I want to make a num pad key make you go up on the Z axis or down on it by what value you set it to in the script; would that be possible?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Aug 20, 2015 4:35 pm    Post subject: Reply with quote

Cheat Engine lets you set hotkeys to scripts. Just right-click it.
Back to top
View user's profile Send private message
ogpayne
Cheater
Reputation: 0

Joined: 08 Dec 2014
Posts: 45

PostPosted: Thu Aug 20, 2015 4:40 pm    Post subject: Reply with quote

Zanzer wrote:
Cheat Engine lets you set hotkeys to scripts. Just right-click it.

Oh haha, duh! That's a nice feature.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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