| View previous topic :: View next topic |
| Author |
Message |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Dec 09, 2016 7:14 pm Post subject: |
|
|
Guess I was wrong, use this instead: | Code: | push [newAmmo]
pop [ebx]
push [newAmmo+4]
pop [ebx+4] |
|
|
| Back to top |
|
 |
Kronogenics Advanced Cheater
Reputation: 0
Joined: 01 Dec 2016 Posts: 82
|
Posted: Fri Dec 09, 2016 7:26 pm Post subject: |
|
|
| So that doesn't throw any errors but it seems that nothing is running through the actual compare, even though at [ebx+2F0] there is a string, and the first two characters of that string are "@y" and this is the correct instruction for modifying my ammo because noping the other one doesn't change ammo going down, and this is the only other one (can't nop it because it writes to many other places). This is also the correct ammo value because if I change it to something else it changes my ingame ammo. I also made a check by allocating some test memory and writing it a one before the jump and a different piece of memory a two after the jump, first one is set to a 1, second stays at 0.
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Dec 09, 2016 7:36 pm Post subject: |
|
|
| Code: | | cmp word ptr [ebx+2F0],'@y' |
|
|
| Back to top |
|
 |
Kronogenics Advanced Cheater
Reputation: 0
Joined: 01 Dec 2016 Posts: 82
|
Posted: Fri Dec 09, 2016 7:37 pm Post subject: |
|
|
| You are a god Thank you!
|
|
| Back to top |
|
 |
|