thistle

Member
Okay, so i have this issue that when a player equips an items that has hit point increase it does not raise their hit points, however if they equip an item that has Str Bonus it raises their str and their hit points. not sure why it does this but would like to fix it if possible =]
 
Strength determines Hit Points. It doesn't matter what you set HP to if Str is controlling it.
 
add this to the constructable: this.Attributes.BonusHits = 100;

example
Code:
[Constructable]
        public HP_BonusJewelry()
        {
           
            this.Name = "Magical Jewelry";

            
			this.Attributes.BonusHits = 100;

            this.LootType = LootType.Regular;
        }
 
yes i know, i'm saying if i player put on an item like that magical jewelry you just posted, when it is equipped the player wont get the 100 hit point bonus
 
maybe use OnEquip to increase their HitsMax as well?
it's possible you're hitting a HitPoint max set somewhere else in your scripts.

Code:
public override bool OnEquip(Mobile from)
{
from.HitsMax += 100;
return base.OnEquip(from);
}

public override void OnRemoved(object parent)
{
parent.HitsMax -= 100;
base.OnRemoved(parent);
}
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back