Little Fighter Empire - Forums
Possibility of HP\MP feature - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43)
+--- Thread: Possibility of HP\MP feature (/showthread.php?tid=6433)



Possibility of HP\MP feature - Yinseko - 05-15-2011

*bow* hi everyone x)
while reading that forum, i'm being interested in special hp+mp exe.
but now mostly useful is dll method.
also "2500 exe" have changes basic values for any t:0\3 objects.

that my questions:
1. is any method to create specefic ID feature, that will set up max HP and max MP for each ID, not for any objects.
example:
- player 1 choise Davis, and his character starts game with 600 hp max
- player 2 choise Woody, and his character starts game with 1200 hp max

2. something like thing at point 1, but about max mana?

thanks for attantion and help:)


RE: Possibility of HP\MP feature - Boop - 05-15-2011

Code:
004063CA  |.  B9 F4010000   MOV ECX,1F4                              ;  set ecx to 500
004063CF      898E FC020000 MOV DWORD PTR DS:[ESI+2FC],ECX           ;  set red hp
004063D5  |.  898E 04030000 MOV DWORD PTR DS:[ESI+304],ECX           ;  set dark red hp
004063DB  |.  898E 00030000 MOV DWORD PTR DS:[ESI+300],ECX           ;  set mp
004063E1  |.  898E 08030000 MOV DWORD PTR DS:[ESI+308],ECX           ;  set dark mp

All you need to do is to write some code to check the ID and change the hp based off that. Read:

http://www.lf-empire.de/forum/showthread.php?tid=3329
https://spreadsheets.google.com/ccc?key=r5Xp6WYfcmlxDTUlwfdZHYQ#gid=0

It'd look something like

Code:
push eax
mov eax, dword ptr ds:[esi+368h]
mov eax, dword ptr ds:[eax+6f4h]
cmp eax,10
jnz skip
MOV DWORD PTR DS:[ESI+2FCh],600
MOV DWORD PTR DS:[ESI+304h],600

skip:
pop eax
......