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 


Make a script, help!

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

Joined: 04 Dec 2023
Posts: 3

PostPosted: Mon Dec 04, 2023 4:28 am    Post subject: Make a script, help! Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Dec 04, 2023 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
DigitalPhantom
How do I cheat?
Reputation: 0

Joined: 04 Dec 2023
Posts: 3

PostPosted: Mon Dec 04, 2023 5:52 am    Post subject: Reply with quote

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
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 143

Joined: 06 Jul 2014
Posts: 4389

PostPosted: Mon Dec 04, 2023 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
DigitalPhantom
How do I cheat?
Reputation: 0

Joined: 04 Dec 2023
Posts: 3

PostPosted: Mon Dec 04, 2023 1:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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