| View previous topic :: View next topic |
| Author |
Message |
ogpayne Cheater
Reputation: 0
Joined: 08 Dec 2014 Posts: 45
|
Posted: Thu Aug 20, 2015 2:53 pm Post subject: Teleport script help |
|
|
| 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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Aug 20, 2015 3:32 pm Post subject: |
|
|
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 |
|
 |
ogpayne Cheater
Reputation: 0
Joined: 08 Dec 2014 Posts: 45
|
Posted: Thu Aug 20, 2015 3:42 pm Post subject: |
|
|
| 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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Aug 20, 2015 3:54 pm Post subject: |
|
|
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 |
|
 |
ogpayne Cheater
Reputation: 0
Joined: 08 Dec 2014 Posts: 45
|
Posted: Thu Aug 20, 2015 4:08 pm Post subject: |
|
|
| 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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Aug 20, 2015 4:35 pm Post subject: |
|
|
| Cheat Engine lets you set hotkeys to scripts. Just right-click it.
|
|
| Back to top |
|
 |
ogpayne Cheater
Reputation: 0
Joined: 08 Dec 2014 Posts: 45
|
Posted: Thu Aug 20, 2015 4:40 pm Post subject: |
|
|
| 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 |
|
 |
|