Quote:
Originally Posted by Garedx
I have no idea where does the subclass +stat comefrom ... I can't find the code for it
I already checked
It do the basic hp
then calculates itemsHP and gems (Enchantment, and pluses work pretty fine)
But about subclasses .... I have no idea where their increments are :/
|
You have to create their increments. That's your whole problem.
Look in the client (or search the official co website) to see what bonus hp each level of the class gets. You can then create a table of class type, bonus value, etc (if you don't already have one) and then you can use the character's class to run your character stat calculations to assign bonus stats properly.
That or just write a basic calculation that describes how much bonus hp you get and if your subclass is the right type run it to boost max hp.
Quote:
Originally Posted by shadowman123
you can make it Through Boolean Checker like
when the player Opens Subclass Interface he gains Hp as he is in Wrangler everytime he Opens the Interface so here you are
bool GotHp = false
if (!GotHp)
{
Increase the players Hp by w.e then set the GotHop Boolean variable to true by that he will gain Hp just One time
}
|
<facepalm>
Opening the subclass page does not and cannot effect your max hp. You should ONLY calculate max hp when you login or when it's possibly changed (base stats, profession, items or subclass are changed)