Project 1999

Go Back   Project 1999 > Class Discussions > Priests

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 07-23-2022, 02:44 PM
Vivitron Vivitron is offline
Sarnak


Join Date: Apr 2020
Posts: 468
Default

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
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);
}
That's interesting; it looks like it's trying to soft-cap sta at 255, but due to an error soft caps it at 127.5.

One of the wiki pages I found claimed STA soft caps at 255, but I ignored it because I don't believe stats have any effect post 255 in era, a belief the posters in this thread implicitly share.

But, the code seems (without knowing php) to have an error: it calculates the post_255 sta as sta - 255/2 instead of sta - 255. This puts the soft cap at 127.5 instead of 255.

Lobnor posted 181 sta, 2068 magelo hp, and 2148 game hp. Lets run the numbers on him.

(181 - 127.5) = 53.5 sta that will only give half return on the magelo but full in game.

And (53.5 * 3) / 2 = 80.25; sure enough 2068 + 80.25 = 2148.25.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:13 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.