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 


Cheat engine tutorial step 9 help!

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

Joined: 21 Mar 2020
Posts: 1

PostPosted: Sat Mar 21, 2020 4:33 pm    Post subject: Cheat engine tutorial step 9 help! Reply with quote

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
View user's profile Send private message
DanyDollaro
Master Cheater
Reputation: 3

Joined: 01 Aug 2019
Posts: 334

PostPosted: Sun Mar 22, 2020 3:31 am    Post subject: Reply with quote

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
View user's profile Send private message
xTnsv
Newbie cheater
Reputation: 0

Joined: 25 Mar 2020
Posts: 10
Location: Philadelphia

PostPosted: Sat Apr 04, 2020 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials 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