View previous topic :: View next topic |
Author |
Message |
SilverRabbit90 How do I cheat?
Reputation: 0
Joined: 21 Jan 2021 Posts: 7
|
Posted: Thu Jan 21, 2021 2:08 am Post subject: How can I multiply and Freez continous substract/add? |
|
|
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 |
|
 |
sbryzl Master Cheater
Reputation: 6
Joined: 25 Jul 2016 Posts: 252
|
Posted: Thu Jan 21, 2021 7:25 pm Post subject: |
|
|
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 |
|
 |
SilverRabbit90 How do I cheat?
Reputation: 0
Joined: 21 Jan 2021 Posts: 7
|
Posted: Fri Jan 22, 2021 2:43 pm Post subject: |
|
|
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 |
|
 |
sbryzl Master Cheater
Reputation: 6
Joined: 25 Jul 2016 Posts: 252
|
Posted: Fri Jan 22, 2021 3:43 pm Post subject: |
|
|
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 |
|
 |
SilverRabbit90 How do I cheat?
Reputation: 0
Joined: 21 Jan 2021 Posts: 7
|
Posted: Sat Jan 23, 2021 12:36 am Post subject: |
|
|
Thank you very much, you helped me a lot
|
|
Back to top |
|
 |
|