Server.AOS.DisableStatInfluences C# (CSharp) Méthode

DisableStatInfluences() public static méthode

public static DisableStatInfluences ( ) : void
Résultat void
        public static void DisableStatInfluences()
        {
            for( int i = 0; i < SkillInfo.Table.Length; ++i )
            {
                SkillInfo info = SkillInfo.Table[i];

                info.StrScale = 0.0;
                info.DexScale = 0.0;
                info.IntScale = 0.0;
                info.StatTotal = 0.0;
            }
        }

Usage Example

Exemple #1
0
        public static void Configure()
        {
            Core.Expansion = Expansion;

            AccountGold.Enabled        = Core.TOL;
            AccountGold.ConvertOnBank  = true;
            AccountGold.ConvertOnTrade = false;
            VirtualCheck.UseEditGump   = true;

            bool Enabled = Core.AOS;

            Mobile.InsuranceEnabled    = Enabled;
            ObjectPropertyList.Enabled = Enabled;
            Mobile.VisibleDamageType   = Enabled ? VisibleDamageType.Related : VisibleDamageType.None;
            Mobile.GuildClickMessage   = !Enabled;
            Mobile.AsciiClickMessage   = !Enabled;

            if (Enabled)
            {
                AOS.DisableStatInfluences();

                if (ObjectPropertyList.Enabled)
                {
                    PacketHandlers.SingleClickProps = true;                     // single click for everything is overriden to check object property list
                }
                Mobile.ActionDelay      = 1000;
                Mobile.AOSStatusHandler = new AOSStatusHandler(AOS.GetStatus);
            }
        }
All Usage Examples Of Server.AOS::DisableStatInfluences