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 can I multiply and Freez continous substract/add?

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

Joined: 21 Jan 2021
Posts: 7

PostPosted: Thu Jan 21, 2021 2:08 am    Post subject: How can I multiply and Freez continous substract/add? Reply with quote

How can I multply this code x2 or more?

newmem:

originalcode:
mov eax,[ecx+14]
add eax,[ecx+10]

exit:
jmp returnhere


I've tried using this code but it doesn't work:

newmem:

shl [ecx+10],1

originalcode:
mov eax,[ecx+14]
add eax,[ecx+10]

exit:
jmp returnhere

And if I subtract or add a value that increas at infinite, how can I block the continuous decrease or increase in value?

EX:


newmem:

sub [ecx+10],1

originalcode:
mov eax,[ecx+14]
add eax,[ecx+10]

exit:
jmp returnhere


thx for the help ^^
Back to top
View user's profile Send private message
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Thu Jan 21, 2021 7:25 pm    Post subject: Reply with quote

You can create a counter to repeat the operations as much as you want or create a pointer to the address. Either way you will need an entry in the address list to affect it.


Code:

label(ce1cntr)
registersymbol(ce1cntr)

newmem:
cmp [ce1cntr],1
jb short @f
shl [ecx+10],1
dec [ce1cntr]

originalcode:
mov eax,[ecx+14]
add eax,[ecx+10]

exit:
jmp returnhere

ce1cntr:
dd 2
Back to top
View user's profile Send private message
SilverRabbit90
How do I cheat?
Reputation: 0

Joined: 21 Jan 2021
Posts: 7

PostPosted: Fri Jan 22, 2021 2:43 pm    Post subject: Reply with quote

WoW thanks a lot **
I have an other question...?

in this case:



label(NewV)

originalcode:
mov ecx,[NewV]
mov [esi+14],ecx
push Game.gCDamage_PS::`vftable'+6A0

exit:
jmp returnhere

NewV:
dq 100




I can set the variable NewV how I can desire....

Why I Can't Set the variable NewV in this case:


label(NewV)

newmem:

originalcode:
mov [ecx+10],[NewV]
mov eax,[ecx+14]
add eax,[ecx+10]

exit:
jmp returnhere

NewV:
dq 100


In line 12 that is where it is mov [ecx+10],[NewV] it tells me that the statement is not compiled, What can I do?.

"Those code are for two differents cheats"
Back to top
View user's profile Send private message
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Fri Jan 22, 2021 3:43 pm    Post subject: Reply with quote

It requires a more complex operation to move data directly from one address to another but you don't need to do that. You can just move a value into a register then into the address. Since eax is replaced next operation anyway you can use it here.

Code:
originalcode:
mov eax,[NewV]
mov [ecx+10],eax
mov eax,[ecx+14]
add eax,[ecx+10]
Back to top
View user's profile Send private message
SilverRabbit90
How do I cheat?
Reputation: 0

Joined: 21 Jan 2021
Posts: 7

PostPosted: Sat Jan 23, 2021 12:36 am    Post subject: Reply with quote

Thank you very much, you helped me a lot Wink
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