View previous topic :: View next topic |
Author |
Message |
Triad0112 How do I cheat? Reputation: 0
Joined: 25 Dec 2022 Posts: 2
|
Posted: Sun Dec 25, 2022 1:14 am Post subject: First Learning about flow of assembly... |
|
|
I wonder how is assembly order of execution.
I am trying to find out how make address at "ecx+168" is only change when its not player by putting out jump to enemy hp if it wasn't player.
My expectation will be it will not change the value of "ecx+168" into "ecx+C" if it wasn't player. But instead it also change not player value ... anybody can give me enlightment?
Code: |
newmem:
cmp [ecx+00000478],#0 // check player (0)
jne enemyhp // jump original code if not player
mov eax,[ecx+0000000C] // change to max HP
mov [ecx+00000168],eax
jmp return
enemyhp:
mov eax,[ebp+0C]
mov [ecx+00000168],eax
jmp return
| [/code]
Last edited by Triad0112 on Sun Dec 25, 2022 1:37 am; edited 1 time in total |
|
Back to top |
|
|
cooleko Grandmaster Cheater Reputation: 11
Joined: 04 May 2016 Posts: 717
|
Posted: Sun Dec 25, 2022 1:23 am Post subject: |
|
|
[ecx+478] must never equal 0. Figure out what address does change only for enemy addresses and to what value and change the offset and value to match what you are looking for.
|
|
Back to top |
|
|
Triad0112 How do I cheat? Reputation: 0
Joined: 25 Dec 2022 Posts: 2
|
Posted: Sun Dec 25, 2022 1:52 am Post subject: |
|
|
cooleko wrote: | [ecx+478] must never equal 0. Figure out what address does change only for enemy addresses and to what value and change the offset and value to match what you are looking for. |
Oh ya my bad ... i just checked again. The Value is zero... thanks!
|
|
Back to top |
|
|
cooleko Grandmaster Cheater Reputation: 11
Joined: 04 May 2016 Posts: 717
|
Posted: Sun Dec 25, 2022 3:02 pm Post subject: |
|
|
Is it something other than an integer? If it is a byte, float, or double you can't compare to an integer.
|
|
Back to top |
|
|
|