 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
DigitalPhantom How do I cheat?
Reputation: 0
Joined: 04 Dec 2023 Posts: 3
|
Posted: Mon Dec 04, 2023 4:28 am Post subject: Make a script, help! |
|
|
Hi all. Can you help me make a script that will record specific values cyclically on a timer. Let me give you an example. The address 49283910 writes the value 1, then 2, then 3, then 4, then 5 and returns to 1, then the cycle.
upd.
In other words, there must be a script that runs constantly and writes values to one address in a circular manner.
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Dec 04, 2023 5:31 am Post subject: |
|
|
It may be easier to help you if you can provide more information:
1. What are you trying to do, exactly?
2. Have you chosen an instruction already for your injection point?
3. You mention recording values and writing values, which is it?
4. Do you know what the values will need to be for 1, 2, 3, 4 and 5?
5. Does the script actually require a timer?
|
|
Back to top |
|
 |
DigitalPhantom How do I cheat?
Reputation: 0
Joined: 04 Dec 2023 Posts: 3
|
Posted: Mon Dec 04, 2023 5:52 am Post subject: |
|
|
I want to make AA script that, when activated, will write values. Some kind of loop.
No injections, just writing the value to one address. The values will be sequential, i.e. 1, 2, 3, 4, 5, 6 and return to 1 and loop.
---
upd
Having analyzed the game, we can say that this is essentially a timer that runs from one value to another. For example, from 1 to 30(dec). In a cheat engine, you cannot do this when increasing the value, since you cannot set a limit.
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 150
Joined: 06 Jul 2014 Posts: 4641
|
Posted: Mon Dec 04, 2023 12:16 pm Post subject: |
|
|
Why AA? Lua is easier
Code: | if cyclicWriteTimer then cyclicWriteTimer.destroy(); cyclicWriteTimer = nil end
cyclicWriteTimer = createTimer()
cyclicWriteTimer.Interval = 500
local i = 1
cyclicWriteTimer.OnTimer = function(t)
writeInteger(0x49283910, i)
i = i % 30 + 1
end |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
DigitalPhantom How do I cheat?
Reputation: 0
Joined: 04 Dec 2023 Posts: 3
|
Posted: Mon Dec 04, 2023 1:02 pm Post subject: |
|
|
Thank you, it’s definitely necessary, you can even adjust the interval, I don’t know, I never understood cycles, like a slightly unrewritten script, but for another in the range.
Code: | if cyclicWriteTimer then cyclicWriteTimer.destroy(); cyclicWriteTimer = nil end
cyclicWriteTimer = createTimer()
cyclicWriteTimer.Interval = 500
local i = 26
cyclicWriteTimer.OnTimer = function(t)
writeInteger(0x49283910, i)
if i < 46 then
i = i + 1
else
i = 26
end
end |
|
|
Back to top |
|
 |
|
|
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
|
|