So i got a question. How make to add bonuses to each custom race in playermobile.cs? I think that must be added there :

C#:
#region [Stats]Max
        [CommandProperty(AccessLevel.GameMaster)]
        public override int HitsMax
        {
            get
            {
                int strBase;
                int strOffs = GetStatOffset(StatType.Str);

                if (Core.AOS)
                {
                    strBase = Str; //this.Str already includes GetStatOffset/str
                    strOffs = AosAttributes.GetValue(this, AosAttribute.BonusHits);

                    if (Core.ML && strOffs > 25 && IsPlayer())
                    {
                        strOffs = 25;
                    }

                    if (AnimalForm.UnderTransformation(this, typeof(BakeKitsune)) ||
                        AnimalForm.UnderTransformation(this, typeof(GreyWolf)))
                    {
                        strOffs += 20;
                    }
                }
                else
                {
                    strBase = RawStr;
                }

                return (strBase / 2) + 50 + strOffs;
            }
        }

        [CommandProperty(AccessLevel.GameMaster)]
        public override int StamMax { get { return base.StamMax + AosAttributes.GetValue(this, AosAttribute.BonusStam); } }
   

        [CommandProperty(AccessLevel.GameMaster)]
        public override int ManaMax { get
        {
            return base.ManaMax + AosAttributes.GetValue(this, AosAttribute.BonusMana) +
                   ((Core.ML && Race == Race.Elf) ? 20 : 0);
        } }
        #endregion
Can someone make example for me with 2 races like humans and elves.

Thx a lot for help to everyone!

Greetings
 
Back