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 


Auto assembler help - how to make 2 hit kill cheat

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
themandem
Cheater
Reputation: 0

Joined: 06 Dec 2019
Posts: 41

PostPosted: Wed Jul 29, 2020 6:49 pm    Post subject: Auto assembler help - how to make 2 hit kill cheat Reply with quote

I want to learn how to make a 2 hit kill cheat. i already know how to make 1 hit kill, simply write 0 to the enemies' Health.

but you have to understand there are some games with conditions like where you're not supposed to kill a boss in a fight, there's supposed to be a cutscene maybe so when you kill them in 1 hit, the game gets stuck and you have to restart...

or there's a game like dark souls where you can have a one hit kill active but soon as you activate the bonfire (which writes to ALL surrounding enemies' health) they immediately die. its not supposed to do that.

i've looked everywhere. on sneaky mofo's channel, on cheat the game and i cannot find a tutorial on this anywhere.

so i need to know how to make a 2 hit kill cheat or even 3 hit kill.

Here is a script i am already working on in "Lightning Returns: Final Fantasy 13"

Code:
newmem:
  cmp [esi+338],#22000
  jne code
  mov [esi+2E0],#3680  // health cap writing into current health
  jmp return

code:
  mov [esi+000002E0],0 // we put zero here for one hit kills
  jmp return



the original code was:
mov [esi+000002E0],edi
jmp return

so how do i make it so that instead of 0, we write 1 into our enemies' health and the following hit kills him? if i simply replace the 0 with 1, that won't work. that will keep writing 1 into enemies' HP and their HP will only be equal to 1, i would have to deactivate the cheat to finish him off but i don't wanna do that. i need to learn to properly put it in code. any help is greatly appreciated!
Back to top
View user's profile Send private message
zhaihouxi
Newbie cheater
Reputation: 0

Joined: 27 Jul 2020
Posts: 17

PostPosted: Thu Jul 30, 2020 2:47 am    Post subject: Reply with quote

Advanced Cheat Engine Tutorial: Backtracing Shared Instructions from Visual Addresses! [Eldritch]
on youtube

shows how to find player label using struct dissector

then

cmp // player label
je code
cmp health,1
je code
move health,1
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Thu Jul 30, 2020 3:26 am    Post subject: Re: Auto assembler help - how to make 2 hit kill cheat Reply with quote

Code:
newmem:

Separate:
  cmp [esi+338],#22000
  jne short DecEnemyHealth

HeroHealth:
  mov edi,#3680  // health cap writing into current health
  mov [esi+000002E0],edi
  jmp return

DecEnemyHealth:
  cmp [esi+000002E0],#1  // Compare if enemy health is 1
  je short KillThem  // If it is then jump to do default health
  mov [esi+000002E0],#1  // If its not 1 then move 1 in to health

KillThem:
  mov [esi+000002E0],edi  // Default health stuff
  jmp return
Back to top
View user's profile Send private message
themandem
Cheater
Reputation: 0

Joined: 06 Dec 2019
Posts: 41

PostPosted: Thu Jul 30, 2020 12:53 pm    Post subject: Re: Auto assembler help - how to make 2 hit kill cheat Reply with quote

Betcha wrote:
Code:
newmem:

Separate:
  cmp [esi+338],#22000
  jne short DecEnemyHealth

HeroHealth:
  mov edi,#3680  // health cap writing into current health
  mov [esi+000002E0],edi
  jmp return

DecEnemyHealth:
  cmp [esi+000002E0],#1  // Compare if enemy health is 1
  je short KillThem  // If it is then jump to do default health
  mov [esi+000002E0],#1  // If its not 1 then move 1 in to health

KillThem:
  mov [esi+000002E0],edi  // Default health stuff
  jmp return


what if the enemy monster regenerates HP? so their hp is always greater than 1. the code then gets stuck and keeps making their HP 1, and won't jump to (KillThem).
Also your cheat works but there is one little thing, it doesn't work unless I put jmp return after (DecEnemyHealth) before (KillThem)
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Thu Jul 30, 2020 1:24 pm    Post subject: Re: Auto assembler help - how to make 2 hit kill cheat Reply with quote

themandem wrote:
what if the enemy monster regenerates HP?

Code:
DecEnemyHealth:
  cmp [esi+000002E0],#10  // Depends how fast health reg / your damage
  jbe short KillThem  // If health below or equal to 10 jump kill them
  mov [esi+000002E0],#1  // if above move 1 into health
  jmp return
Back to top
View user's profile Send private message
themandem
Cheater
Reputation: 0

Joined: 06 Dec 2019
Posts: 41

PostPosted: Thu Jul 30, 2020 1:49 pm    Post subject: Re: Auto assembler help - how to make 2 hit kill cheat Reply with quote

Betcha wrote:
themandem wrote:
what if the enemy monster regenerates HP?

Code:
DecEnemyHealth:
  cmp [esi+000002E0],#10  // Depends how fast health reg / your damage
  jbe short KillThem  // If health below or equal to 10 jump kill them
  mov [esi+000002E0],#1  // if above move 1 into health
  jmp return


thank you so much. that works. you're a genius. just out of curiosity, what would we do if their health regenerated really fast? would we increase the cmp number so if #10 doesn't work then try #50 if that doesn't work try #100 and so on?
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Thu Jul 30, 2020 3:35 pm    Post subject: Re: Auto assembler help - how to make 2 hit kill cheat Reply with quote

themandem wrote:
what would we do if their health regenerated really fast?

Nop instruction which regens their health.
If only one instruction which Decrease/Increase, Then -
Play around with compares, till it works the way you like.
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 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