Need help with 5920 server

08/12/2014 17:18 justmadeit96#1
The hp bar doesn't go full , its the attribute points in vitality , got 538 vit points but the hp doesn't full up , anyone can help??
08/12/2014 21:58 -Sensei-#2
Its probably because your loading an item that is different info with your client..
08/12/2014 22:03 Novakhan#3
Quote:
Originally Posted by -Sensei- View Post
Its probably because your loading an item that is different info with your client..
He said that it's the vitality points.

justmadeit96 -> Check if the points give the HP in your source. (Not MaxHitPoints).
08/13/2014 09:08 Soulfly25#4
Here try to look at it. and Compare to yours
GameClient.CS or GameState


Code:
        public void CalculateHPBonus()
        {
            //if ((int)Account.State >= 3) return;
            switch (Entity.Class)
            {
                case 11: Entity.MaxHitpoints = (uint)(StatHP * 1.05F); break;
                case 12: Entity.MaxHitpoints = (uint)(StatHP * 1.08F); break;
                case 13: Entity.MaxHitpoints = (uint)(StatHP * 1.10F); break;
                case 14: Entity.MaxHitpoints = (uint)(StatHP * 1.12F); break;
                case 15: Entity.MaxHitpoints = (uint)(StatHP * 1.15F); break;
                default: Entity.MaxHitpoints = (uint)StatHP; break;
            }
         Entity.MaxHitpoints += Entity.ItemHP;
            var plus = Entity.SubClasses.Classes.SingleOrDefault(x => x.Value.ID == 9);
            if (plus.Value != null && Entity.SubClass == 9)
                Entity.MaxHitpoints += (uint)(plus.Value.Level * 100);
            Entity.Hitpoints = Math.Min(Entity.Hitpoints, Entity.MaxHitpoints);
        }
        public void CalculateStatBonus()
        {
            byte ManaBoost = 5;
            const byte HitpointBoost = 24;
            sbyte Class = (sbyte)(Entity.Class / 10);
            if (Class == 13 || Class == 14)
                ManaBoost += (byte)(5 * (Entity.Class - (Class * 10)));
            StatHP = (ushort)((Entity.Strength * 3) +
                                     (Entity.Agility * 3) +
                                     (Entity.Spirit * 3) +
                                     (Entity.Vitality * HitpointBoost));
            Entity.MaxMana = (ushort)((Entity.Spirit * ManaBoost) + Entity.ItemMP);
            Entity.Mana = Math.Min(Entity.Mana, Entity.MaxMana);
        }
08/13/2014 15:42 abdoumatrix#5
subclass and Jianghu that could cause these probleam that i'm sure that only few have them fixed