Posted: Thu Jan 20, 2022 10:32 am Post subject: enemy player health help
I have a problem, I have found the health address. but if I do a NOP, my health doesn't go down, but the enemy's doesn't either. I want to know what I have to do so that only my health stops.
I attach an image with the code, in green, it is the health code. help. Do I have to codecave with that green address? and what should I put?
Find out what addresses access this instruction. Then filter out your health address from your enemies' health addresses. Add your HP address to group 1 and a few others to group 2 then scan for commonalities.
Locate a row where the value for the offset you chose is different from all the enemies' value.
Once you have that information you can just use a compare instruction:
Code:
label(isEnemy)
...
cmp [register+offset], value
// if the value isn't the player's value then jump to isEnemy
jne isEnemy
// code to execute for player here
jmp code // or jmp return depending on the situation/instructions used
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