Project 1999

Go Back   Project 1999 > Class Discussions > Priests

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2022, 11:10 AM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,648
Default

Quote:
Originally Posted by greenspectre [You must be logged in to view images. Log in or Register.]
Question to Loramin actually here- My Magelo shows my max HP unbuffed at 2068, yet its 2148 in-game. I checked my gear and stats over and over but can't figure out where the discrepancy is. Do you, Master of the Wiki (tm) have any idea why? Help would be appreciated!
The Magelo feature was probably accurate years ago, when it was first written by Rahvin (the true wiki god) ... but the P99 devs have since changed their formula. Given that he no longer plays, I'm guessing that he won't have much interest in updating the formula, although he has fixed wiki bugs in the past so it could happen.

But if you really want to see it fixed ... and you know the programming language PHP ... you could "fix it yourself" by downloading the source code from https://wiki.project1999.com/utils/wikiUtils.php (click "Custom Extensions Source", and then the Magelo stuff is in a "Magelo" folder).

If you or anyone else could make a fix to the algorithm, I'd imagine Ravhin would add it to the wiki (and if not I'd be happy to beg Rogean until he does it). But without that, you may be waiting a long time for a fix [You must be logged in to view images. Log in or Register.]
__________________

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.
Reply With Quote
  #2  
Old 07-23-2022, 11:16 AM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,648
Default

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.
Reply With Quote
  #3  
Old 07-23-2022, 02:44 PM
Vivitron Vivitron is offline
Sarnak


Join Date: Apr 2020
Posts: 497
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
  #4  
Old 07-23-2022, 02:36 PM
Spithridates Spithridates is offline
Orc


Join Date: Jun 2022
Posts: 34
Default

You guys always do this.
Reply With Quote
  #5  
Old 07-24-2022, 12:41 AM
Crede Crede is offline
Planar Protector


Join Date: Oct 2013
Posts: 2,323
Default

OP, rerolling to troll/iksar/ogre with 25 points into intelligence would result in a much better shaman than a barb who optimized his starting stats.
Reply With Quote
  #6  
Old 07-24-2022, 05:11 PM
ArbiterBlixen ArbiterBlixen is offline
Aviak


Join Date: Sep 2020
Posts: 71
Default

Quote:
Originally Posted by Crede [You must be logged in to view images. Log in or Register.]
OP, rerolling to troll/iksar/ogre with 25 points into intelligence would result in a much better shaman than a barb who optimized his starting stats.
/mic drop
Reply With Quote
  #7  
Old 07-25-2022, 08:18 AM
eqravenprince eqravenprince is offline
Planar Protector


Join Date: Oct 2009
Posts: 1,472
Default

Quote:
Originally Posted by Crede [You must be logged in to view images. Log in or Register.]
OP, rerolling to troll/iksar/ogre with 25 points into intelligence would result in a much better shaman than a barb who optimized his starting stats.
Much better is a bit of a stretch. I like not having to invis every single time I run through a town.
Reply With Quote
  #8  
Old 07-25-2022, 10:21 AM
ArbiterBlixen ArbiterBlixen is offline
Aviak


Join Date: Sep 2020
Posts: 71
Default

Quote:
Originally Posted by eqravenprince [You must be logged in to view images. Log in or Register.]
Much better is a bit of a stretch. I like not having to invis every single time I run through a town.
Just bank in OT, dumbass
Reply With Quote
  #9  
Old 07-25-2022, 10:26 AM
eqravenprince eqravenprince is offline
Planar Protector


Join Date: Oct 2009
Posts: 1,472
Default

Quote:
Originally Posted by ArbiterBlixen [You must be logged in to view images. Log in or Register.]
Just bank in OT, dumbass
Umm ok lol cause that's convenient.
Reply With Quote
  #10  
Old 07-25-2022, 10:39 AM
DeathsSilkyMist DeathsSilkyMist is offline
Planar Protector

DeathsSilkyMist's Avatar

Join Date: Jan 2014
Posts: 8,577
Default

Quote:
Originally Posted by eqravenprince [You must be logged in to view images. Log in or Register.]
Umm ok lol cause that's convenient.
I think he is referring to the wall trick. You can bank through the wall, even if you are KoS. Between that and OT hammer it is pretty convenient regardless of faction. You just need to invis over to the bank so you don't get attacked by the guards.

You basically right click one of the corners of the wall where the banker is on the other side and you can actually bank with them.
Reply With Quote
Reply


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 02: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 - 2026, Jelsoft Enterprises Ltd.