Posted: Mon Dec 26, 2022 5:09 pm Post subject: how to run an assembly script one time edit: now i know how
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?
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
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