If this is true . . . ((( WisInt - 199 ) / 2) > 0)
Then set MindLesserFactor = ( WisInt - 199 ) / 2
If this is false . . . ((( WisInt - 199 ) / 2) > 0)
Then set MindLesserFactor = 0
MindFactor = WisInt - MindLesserFactor
If this is true . . . (WisInt > 100)
Then Max Mana is . . . = (((5 * (MindFactor + 20)) / 2) * 3 * (Your Current Level) / 40)
If this is false . . . (WisInt > 100)
Then Max Mana is . . . = (((5 * (MindFactor + 200)) / 2) * 3 * (Your Current Level) / 100)
After You have calculated your Max Mana then add in all your items that give you +Mana. This will give you your mana.
Notes: WisInt is equal to your Intelligence or Wisdom depending on what kind of caster you are.
Example: I am a 23 Necro with 123 Int and i get 135+ mana from items.
123 - 199 / 2 = -38
-38 is not greater then zero so we set MindLesserFactor to 0
MindFactor = 123
123 is larger then 100 so I am going to use this formula (((5 * (MindFactor + 20)) / 2) * 3 * (Your Current Level) / 40)
(((5 * (123+ 20)) / 2) * 3 * (23) / 40) = 616
Then we add my Manafrom my items which is 135
So 751 is my Max Mana
|