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 freeze flag in code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
pharaon
Advanced Cheater
Reputation: 1

Joined: 29 Jun 2012
Posts: 58

PostPosted: Fri Sep 08, 2017 4:02 am    Post subject: how to freeze flag in code Reply with quote

i have this code for shooting flag changing from 1 to 0
so i want to freeze it at 1 in code how can i do it

Code:
dec [esi+68]
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 5

Joined: 01 Feb 2016
Posts: 633

PostPosted: Fri Sep 08, 2017 7:41 pm    Post subject: Reply with quote

doesn't seems to be a flag idk why, assuming the value is being increased somewhere then you can basically nop it.
you can also remove the original instruction and move 1 to it.

Code:
newmem:
  mov [esi+68],01
  jmp return // or returnhere if its code injection

 code:
// dec  [esi+68]

or totally remove code and code label, so it will always be 1.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 34

Joined: 09 Nov 2005
Posts: 2530

PostPosted: Sat Sep 09, 2017 5:34 am    Post subject: Reply with quote

mov [esi+68],01
_________________
Cheat Requests/Tables- Fearless Cheat Engine
http://fearlessrevolution.com
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