Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing MP restore speed for ID
#1
====================================================================================================​====
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!
Reply
Thanks given by: Bamboori


Messages In This Thread
Changing MP restore speed for ID - by bashscrazy - 07-22-2014, 05:35 PM
RE: Changing MP restore speed for ID - by A-Man - 07-22-2014, 06:22 PM
RE: Changing MP restore speed for ID - by Boop - 07-22-2014, 06:49 PM
RE: Changing MP restore speed for ID - by A-Man - 07-22-2014, 07:55 PM
RE: Changing MP restore speed for ID - by Boop - 07-22-2014, 08:01 PM
RE: Changing MP restore speed for ID - by Boop - 07-24-2014, 05:37 PM
RE: Changing MP restore speed for ID - by A-Man - 07-24-2014, 05:59 PM
RE: Changing MP restore speed for ID - by Boop - 07-24-2014, 06:15 PM



Users browsing this thread: 1 Guest(s)