07-22-2014, 05:35 PM
========================================================================================================
ID of mp's restore speed
0041FB6D > 8B91 68030000 mov edx,dword ptr ds:[ecx+368]
0041FB73 . 8B92 F4060000 mov edx,dword ptr ds:[edx+6F4]
0041FB79 . 83FA 33 cmp edx,33←←←←←←←←←←←←←←id 51 Firzen
0041FB7C . 74 05 je short lf2.0041FB83
0041FB7E . 83FA 34 cmp edx,34←←←←←←←←←←←←←←id 52 Julian
0041FB81 . 75 05 jnz short lf2.0041FB88
0041FB83 > 99 cdq
0041FB84 . 2BC2 sub eax,edx
0041FB86 . D1F8 sar eax,1 ←←←←←←←←←←←←←←add some character's restore speed
0041FB88 > BA F4010000 mov edx,1F4
0041FB8D . 2BD0 sub edx,eax
0041FB8F . B8 1F85EB51 mov eax,51EB851F
0041FB94 . F7EA imul edx
0041FB96 . C1FA 05 sar edx,5
0041FB99 . 8BC2 mov eax,edx
0041FB9B . C1E8 1F shr eax,1F
0041FB9E . 8D5402 01 lea edx,dword ptr ds:[edx+eax+1]←←←←←←←←←←[edx+eax+X],X=basic restore speed of every character
========================================================================================================
I am aware of this from ADDRESS OF LF 2.0 HEX thread
The addresses are a bit different in 2.0a like the first line is actually 0041FABD
I modified this line 0041FB9E . 8D5402 01 lea edx,dword ptr ds:[edx+eax+1]←←←←←←←←←←[edx+eax+X],X=basic restore speed of every character
The problem was I can't do negatives so 1 is the normal rate and 0 just doesnt regen at all at full health but it does regen when you lose like 100 hp or something.
So I went to this line: 0041FB88 > BA F4010000 mov edx,1F4
1F4 is 500, I changed the decimal value to 1000 and mp regened faster. I put it at 393, 399, 400, there was no regeneration. At 401 there was some regen. At 100, mp drained really fast. So now I know I can make mp decrease by default and using the last line I can probably increase the number from 1 to a higher number and then some characters can have mp drainage while others restore by default. Only problem is I don't know how to change the restore speed to a specific ID.
That way by default everyone's MP drops. But I can also make everyone have increased speed. Using both the draining method and the restore method can also result in slower mp restore speeds than the default base 1 speed.
I hope you understand my question/problem? Thanks!
ID of mp's restore speed
0041FB6D > 8B91 68030000 mov edx,dword ptr ds:[ecx+368]
0041FB73 . 8B92 F4060000 mov edx,dword ptr ds:[edx+6F4]
0041FB79 . 83FA 33 cmp edx,33←←←←←←←←←←←←←←id 51 Firzen
0041FB7C . 74 05 je short lf2.0041FB83
0041FB7E . 83FA 34 cmp edx,34←←←←←←←←←←←←←←id 52 Julian
0041FB81 . 75 05 jnz short lf2.0041FB88
0041FB83 > 99 cdq
0041FB84 . 2BC2 sub eax,edx
0041FB86 . D1F8 sar eax,1 ←←←←←←←←←←←←←←add some character's restore speed
0041FB88 > BA F4010000 mov edx,1F4
0041FB8D . 2BD0 sub edx,eax
0041FB8F . B8 1F85EB51 mov eax,51EB851F
0041FB94 . F7EA imul edx
0041FB96 . C1FA 05 sar edx,5
0041FB99 . 8BC2 mov eax,edx
0041FB9B . C1E8 1F shr eax,1F
0041FB9E . 8D5402 01 lea edx,dword ptr ds:[edx+eax+1]←←←←←←←←←←[edx+eax+X],X=basic restore speed of every character
========================================================================================================
I am aware of this from ADDRESS OF LF 2.0 HEX thread
The addresses are a bit different in 2.0a like the first line is actually 0041FABD
I modified this line 0041FB9E . 8D5402 01 lea edx,dword ptr ds:[edx+eax+1]←←←←←←←←←←[edx+eax+X],X=basic restore speed of every character
The problem was I can't do negatives so 1 is the normal rate and 0 just doesnt regen at all at full health but it does regen when you lose like 100 hp or something.
So I went to this line: 0041FB88 > BA F4010000 mov edx,1F4
1F4 is 500, I changed the decimal value to 1000 and mp regened faster. I put it at 393, 399, 400, there was no regeneration. At 401 there was some regen. At 100, mp drained really fast. So now I know I can make mp decrease by default and using the last line I can probably increase the number from 1 to a higher number and then some characters can have mp drainage while others restore by default. Only problem is I don't know how to change the restore speed to a specific ID.
That way by default everyone's MP drops. But I can also make everyone have increased speed. Using both the draining method and the restore method can also result in slower mp restore speeds than the default base 1 speed.
I hope you understand my question/problem? Thanks!
DBZ LF2 website
DBZ LF2 v0.4.3 - Namek Goku Update Trailer - September 25, 2024
DBZ LF2 mod v0.4.3 (September 28, 2024): Download
DBZ LF2 v0.4.3 - Namek Goku Update Trailer - September 25, 2024
DBZ LF2 mod v0.4.3 (September 28, 2024): Download