View previous topic :: View next topic |
Author |
Message |
hamad12a How do I cheat? Reputation: 0
Joined: 21 Mar 2020 Posts: 1
|
Posted: Sat Mar 21, 2020 4:33 pm Post subject: Cheat engine tutorial step 9 help! |
|
|
I followed the answer to step 9 in cheat engine tutorial on youtube,
however, I want to use different offset other than 14, say for e.g., the case which includes two offsets, offset 0: 60 ; offset 1: 1B0.
My question is how to include that in the script? using
Code: | cmp [rbx+"?"],?
je short exit
| [/url]
|
|
Back to top |
|
|
DanyDollaro Master Cheater Reputation: 3
Joined: 01 Aug 2019 Posts: 334
|
Posted: Sun Mar 22, 2020 3:31 am Post subject: |
|
|
You have to use a register so you can load the pointers up to the value you want, the implementation would be this:
Code: | push rbx // Save the value of rbx on the stack
mov rbx, [rbx + Offset_0]
mov rbx, [rbx + Offset_1]
cmp rbx, The_Value_You_Want
je short exit
...
exit:
pop rbx // Restore the value of rbx
|
|
|
Back to top |
|
|
xTnsv Newbie cheater Reputation: 0
Joined: 25 Mar 2020 Posts: 10 Location: Philadelphia
|
Posted: Sat Apr 04, 2020 7:00 pm Post subject: |
|
|
You really only need offset 04 and 10 which is HP and Team.
Code: |
newmem:
cmp [ebx+10],1
je originalcode
mov [ebx+04],0
jmp originalcode
|
Very basic here: [ebx+10] holds the team value (1 for friend, 2 for enemy).
So if it's a friendly it jumps to the original code and we take a normal hit.
If it's an enemy (not equal to 1) it will move a 0 into the value stored at [ebx+04] which holds the HP and leaves the enemy dead.
|
|
Back to top |
|
|
|