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 


how to run an assembly script one time edit: now i know how

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
hodayfa000h
Newbie cheater
Reputation: 0

Joined: 26 Dec 2022
Posts: 18

PostPosted: Mon Dec 26, 2022 5:09 pm    Post subject: how to run an assembly script one time edit: now i know how Reply with quote

so if i want to let's say make a teleport script in a 3d game i will have to change the x y z coords i did that in my script but i still need to enable and disable the script for it to work
so my question is: is there any way to run a script only once?
edit: using assembly only?
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 26, 2022 6:30 pm    Post subject: Reply with quote

I assume that you have solved this already. For others that may be searching for a solution, one way to do this is by setting up a flag that will be triggered once the script performs whatever action that you intended. Then include a check for that flag at the beginning of the script so that it will not execute your code if the flag has already been triggered.

It may look something like this:
Code:

newmem:
cmp byte ptr [flag],1
je originalcode

cmp byte ptr [teleport],1
je teleport
jmp originalcode

teleport:
mov byte ptr [flag],1
//teleport code
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