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 


DYNASTY WARRIORS 7 XLDE - One Hit Kill

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

Joined: 17 Sep 2024
Posts: 2

PostPosted: Tue Sep 17, 2024 6:56 pm    Post subject: DYNASTY WARRIORS 7 XLDE - One Hit Kill Reply with quote

Hi, I'm still new to using Cheat Engine and have problems creating the One Hit Kill script in the DYNASTY WARRIORS 7 XLDE game because no one has created that cheat before.

The problem I face is that when I turn on the script and hit the enemy, the enemy's blood only drops to value 1 and when I hit again the enemy's blood will remain at value 1 until I turn off the script and hit the enemy.

Can anyone help me find out where the error in the script I made is?

The script is below:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"SM6EN.exe"+45E16)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

cmp [eax+184],0
jne originalcode
movss xmm0,[eax+00]
movss [eax+04],xmm0
jmp exit

originalcode:
subss xmm0,[eax+00]

exit:
jmp returnhere

"SM6EN.exe"+45E16:
jmp newmem
returnhere:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"SM6EN.exe"+45E16:
db F3 0F 11 40 04
//movss [eax+04],xmm0



Screenshot (113).png
 Description:
 Filesize:  166.35 KB
 Viewed:  3054 Time(s)

Screenshot (113).png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4697

PostPosted: Tue Sep 17, 2024 8:59 pm    Post subject: Reply with quote

Where did `subss` come from? The original code was `movss`

What's at [eax] (no need for explicit offset of 0) and [eax+184]?

If that instruction only accesses enemies' health addresses, you can set the xmm register to 0 with an xor operation:
Code:
...
newmem:
  pxor xmm0,xmm0
originalcode:
  movss [eax+04],xmm0
  jmp returnhere
...

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
jsuvac
How do I cheat?
Reputation: 0

Joined: 17 Sep 2024
Posts: 2

PostPosted: Tue Sep 17, 2024 10:27 pm    Post subject: Reply with quote

Sorry, previously I forgot to change subss xmm0,[eax+00] to movss [eax+04],xmm0

and for [eax] is the blood of the player and the enemy, that's why I use cmp [eax+184],0 so that when I attack the enemy I don't die too.
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