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 


Move max health into current health (brain freeze)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
XaneXXXX
Expert Cheater
Reputation: 0

Joined: 29 Nov 2012
Posts: 212

PostPosted: Sun Dec 18, 2016 10:25 am    Post subject: Move max health into current health (brain freeze) Reply with quote

I've done this a few times before but i cannot remember how or where those tables are.. So I'm asking.

Originalcode: fcomp dword ptr [ecx+00001CB8]

Current health: [ecx+00001CB8]

Max Health: [ecx+00001CBC]

I tried with mov ecx+00001CB8,ecx+00001CBC]

But that diesn't compile.. So I've forgotten, could anyone fresh up my memory? Cheers!


Update: I did it like this:

Code:
code:
push eax
mov eax,[ecx+00001CBC]
mov [ecx+00001CB8],eax
pop eax
  fcomp dword ptr [ecx+00001CB8]
  jmp return


And it worked, Does it seems okay or is it a better way or doing it?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Dec 18, 2016 10:36 am    Post subject: Reply with quote

That's perfectly fine. Could've also done:
Code:
push [ecx+00001CBC]
pop [ecx+00001CB8]
Back to top
View user's profile Send private message
XaneXXXX
Expert Cheater
Reputation: 0

Joined: 29 Nov 2012
Posts: 212

PostPosted: Sun Dec 18, 2016 10:38 am    Post subject: Reply with quote

Zanzer wrote:
That's perfectly fine. Could've also done:
Code:
push [ecx+00001CBC]
pop [ecx+00001CB8]


Great! THank you very much! Smile
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 Gamehacking 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