 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
lordieBelial How do I cheat?
Reputation: 0
Joined: 30 Dec 2023 Posts: 2
|
Posted: Sat Dec 30, 2023 4:22 pm Post subject: Help me to godmode or one hit kill |
|
|
I am completely illiterate about game cheats. I have been trying to solve it on my own for 10 days, but since I could not succeed, I gave up and decided to open a topic.
As far as I understand in the game, my health and the mobs' health are kept in the same place because the same code works when I take damage or theirs is too.
I don't know if this information is needed, but health values are float type.
Function is that.
| Code: |
mov eax,[esp+04]
movss xmm0,[esp+08]
movss [ecx+eax*4+00000320],xmm0
|
I hope someone can help me, my eyes hurt from searching.
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Dec 30, 2023 9:22 pm Post subject: |
|
|
You will want to complete the CE tutorial, especially the step that covers player ID (code filters).
The tutorial will only cover one method, but there are many.
Once you understand how to separate your health from the enemies health, then you can share your script here and someone can help you to set it up properly.
|
|
| Back to top |
|
 |
lordieBelial How do I cheat?
Reputation: 0
Joined: 30 Dec 2023 Posts: 2
|
Posted: Sun Dec 31, 2023 8:20 am Post subject: |
|
|
| ++METHOS wrote: | You will want to complete the CE tutorial, especially the step that covers player ID (code filters).
The tutorial will only cover one method, but there are many.
Once you understand how to separate your health from the enemies health, then you can share your script here and someone can help you to set it up properly. |
I researched, my difference from other mobs is my level, if I had to give an example, if level == 42, I write jmp original code, else I write it as kill enemy, but I can't succeed.
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Dec 31, 2023 9:00 am Post subject: |
|
|
If you already know how to separate your health from the enemy's health, then you can proceed with choosing an injection point and writing a script that will allow you to manipulate health for god-mode and one-hit kills.
With the proper instruction highlighted in Memory Viewer, click on Tools/Auto Assemble/Template/AOB Injection.
Once the script has been created, you can paste it here inside of code brackets if you need additional help.
There are different ways to set things up, but the most basic way would look something like this:
| Code: | //script above
newmem:
cmp [rcx+40],#42 //Check level
jne enemy //If level does not match player level, then jump to enemy code, else proceed with god-mode
mov [rcx+54],(float)999 //God-mode for player
jmp return
enemy:
cmp [rcx+54],(float)1 //Check if enemy health is 1
je originalcode //If enemy health is equal to 1, jump to originalcode so that damage can be applied and one-hit kill occurs, else reduce health to 1
mov [rcx+54],(float)1 //Reduce health to 1
originalcode:
movss [rcx+54],xmm0
//script below |
This is just one, basic example. Depending on the game, you may need to structure this differently (e.g. setting enemy health to 0 instead of 1; I use 1 here because setting health to 0 might automatically kill the enemy without you even touching them).
Usually, this kind of script works best if you can inject using an instruction that is constantly accessing health in lieu of writing to it, else you may need to hit enemies more than once.
|
|
| Back to top |
|
 |
|
|
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
|
|