![]() |
|
#11
|
|||
|
P.S. The relevant file (for anyone who is curious) is "Magelo_body.php" in the "Magelo" folder. Even if you don't know PHP, but you have some programming background, the code is fairly straightforward and most programmers should be able to understand it.
For instance, here's the function to calculate total HP; as you can see it is fugly PHP code [You must be logged in to view images. Log in or Register.] ... but it is straightforward : Code:
function get_total_hp($level, $class, $sta, $item_hp)
{
$lmod = Magelo::get_class_level_factor($level,$class);
$post_255 = 0;
if ($sta-255/2 > 0)
$post_255 = ($sta-255/2);
$base_hp = (5)+($level*$lmod/10) + ((($sta-$post_255)*$level*$lmod/3000)) +
(($post_255*$level)*$lmod/6000);
$nd = 10000;
$max_hp = $base_hp + $item_hp;
$max_hp = ($max_hp * $nd) / 10000;
return round($max_hp);
}
__________________
Loramin Frostseer <Anonymous>, Hetch<Anonymous>, Tecla <Kingdom>, ... Check out the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details. | ||
|
|