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 


Help with scripting (check value & reset & wait)

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

Joined: 30 Jun 2018
Posts: 2

PostPosted: Sat Jun 30, 2018 3:29 pm    Post subject: Help with scripting (check value & reset & wait) Reply with quote

Alright, so I tried to search, but as I'm not sure how to describe what I'm looking for, I was unable to find it. Right now, I'm playing around trying to learn some basic stuff about Cheat Engine, doing random crap in Assassins Creed Origin. In ACO, every time you level up you get an ability point. I want to set the exp to 1 point below the level requirement (339599), and have a script that waits until it changes, waits 5 seconds, then resets it (to 339599).

I just learned how to write a script that finds a specific thing (in this case, exp) every time the game runs, so I don't have much knowledge yet.

Any assistance would be greatly appreciated.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 18

Joined: 01 Feb 2016
Posts: 1550

PostPosted: Sat Jun 30, 2018 4:25 pm    Post subject: Reply with quote

you need to:

- compare [max xp - 1] with current xp
- if current xp equal to [max xp -1] then goto sleep
- otherwise move [max xp - 1] to current xp
and sleep again, but you must not use sleep for game threads.
you have to use createthread function, otherwise expect a crash.

sleep:
push 1388
call kernel32.Sleep
loop back to code

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
DarknessCalling
How do I cheat?
Reputation: 0

Joined: 30 Jun 2018
Posts: 2

PostPosted: Sat Jun 30, 2018 5:35 pm    Post subject: Reply with quote

OldCheatEngineUser wrote:
you need to:

- compare [max xp - 1] with current xp
- if current xp equal to [max xp -1] then goto sleep
- otherwise move [max xp - 1] to current xp
and sleep again, but you must not use sleep for game threads.
you have to use createthread function, otherwise expect a crash.

sleep:
push 1388
call kernel32.Sleep
loop back to code


I'm sorry, I'm brand spankin' new to whatever language this is. I've no idea how to do any of that. Could you give me a place to look? Perhaps another thread? Barring that, could you go a bit more in depth?
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 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