DisableStatInfluences() public static method

public static DisableStatInfluences ( ) : void
return void
示例#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);
            }
        }
示例#2
0
        public static void Configure()
        {
            Core.Expansion = Expansion;

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

            TownCryerSystem.Enabled = Core.TOL;

            ObjectPropertyList.Enabled = Core.AOS;

            Mobile.InsuranceEnabled  = false; //Core.AOS && !Siege.SiegeShard; UOSI Removed Item Insurance
            Mobile.VisibleDamageType = Core.AOS ? VisibleDamageType.Related : VisibleDamageType.None;
            Mobile.GuildClickMessage = !Core.AOS;
            Mobile.AsciiClickMessage = !Core.AOS;

            if (!Core.AOS)
            {
                return;
            }

            AOS.DisableStatInfluences();

            if (ObjectPropertyList.Enabled)
            {
                PacketHandlers.SingleClickProps = true;                 // single click for everything is overriden to check object property list
            }

            Mobile.ActionDelay      = Core.TOL ? 500 : Core.AOS ? 1000 : 500;
            Mobile.AOSStatusHandler = AOS.GetStatus;
        }
示例#3
0
        public static void Configure()
        {
            Core.Expansion = Expansion;

            bool Enabled = Core.AOS;

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

            if (Enabled)
            {
                AOS.DisableStatInfluences();

                if (ObjectPropertyList.Enabled)
                {
                    PacketHandlers.SingleClickProps = true;                     // single click for everything is overridden to check object property list
                }
            }

            Item.DefaultDyeType = typeof(DyeTub);
        }
示例#4
0
        public static void Configure()
        {
            Core.Expansion = ServerConfiguration.GetOrUpdateSetting("currentExpansion", Expansion.TOL);

            AccountGold.Enabled        = ServerConfiguration.GetSetting("accountGold.enable", Core.TOL);
            AccountGold.ConvertOnBank  = ServerConfiguration.GetSetting("accountGold.convertOnBank", true);
            AccountGold.ConvertOnTrade = ServerConfiguration.GetSetting("accountGold.convertOnTrade", false);
            VirtualCheck.UseEditGump   = ServerConfiguration.GetSetting("virtualChecks.useEditGump", true);

            Mobile.InsuranceEnabled    = ServerConfiguration.GetSetting("insurance.enable", Core.AOS);
            ObjectPropertyList.Enabled = ServerConfiguration.GetSetting("opl.enable", Core.AOS);
            var visibleDamage = ServerConfiguration.GetSetting("visibleDamage", Core.AOS);

            Mobile.VisibleDamageType = visibleDamage ? VisibleDamageType.Related : VisibleDamageType.None;
            Mobile.GuildClickMessage = ServerConfiguration.GetSetting("guildClickMessage", !Core.AOS);
            Mobile.AsciiClickMessage = ServerConfiguration.GetSetting("asciiClickMessage", !Core.AOS);

            Mobile.ActionDelay = ServerConfiguration.GetSetting("actionDelay", Core.AOS ? 1000 : 500);

            if (Core.AOS)
            {
                AOS.DisableStatInfluences();

                if (ObjectPropertyList.Enabled)
                {
                    PacketHandlers.SingleClickProps =
                        true; // single click for everything is overridden to check object property list
                }

                Mobile.AOSStatusHandler = AOS.GetStatus;
            }
        }
        public static void Configure()
        {
            Core.Expansion = Expansion;

            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 = AOS.GetStatus;
            }
        }
示例#6
0
        public static void Configure()
        {
            Mobile.InsuranceEnabled    = ServerConfiguration.GetSetting("insurance.enable", Core.AOS);
            ObjectPropertyList.Enabled = ServerConfiguration.GetSetting("opl.enable", Core.AOS);
            var visibleDamage = ServerConfiguration.GetSetting("visibleDamage", Core.AOS);

            Mobile.VisibleDamageType = visibleDamage ? VisibleDamageType.Related : VisibleDamageType.None;
            Mobile.GuildClickMessage = ServerConfiguration.GetSetting("guildClickMessage", !Core.AOS);
            Mobile.AsciiClickMessage = ServerConfiguration.GetSetting("asciiClickMessage", !Core.AOS);

            Mobile.ActionDelay = ServerConfiguration.GetSetting("actionDelay", Core.AOS ? 1000 : 500);

            if (Core.AOS)
            {
                AOS.DisableStatInfluences();

                if (ObjectPropertyList.Enabled)
                {
                    // single click for everything is overridden to check object property list
                    IncomingEntityPackets.SingleClickProps = true;
                }

                Mobile.AOSStatusHandler = AOS.GetStatus;
            }
        }
示例#7
0
        public static void Configure()
        {
            Core.Expansion = Expansion;

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

            TownCryerSystem.Enabled = true;

            ObjectPropertyList.Enabled = true;

            Mobile.InsuranceEnabled  = !Siege.SiegeShard;
            Mobile.VisibleDamageType = VisibleDamageType.Related;

            Mobile.GuildClickMessage = false;             // Maybe we can remove after?
            Mobile.AsciiClickMessage = false;             // Maybe we can remove after?

            AOS.DisableStatInfluences();

            if (ObjectPropertyList.Enabled)
            {
                PacketHandlers.SingleClickProps = true;                 // single click for everything is overriden to check object property list
            }

            Mobile.ActionDelay      = 500;
            Mobile.AOSStatusHandler = AOS.GetStatus;
        }
示例#8
0
        public static void Configure()
        {
            Core.Expansion = Expansion.UOR;

            ObjectPropertyList.Enabled = false;

            if (ObjectPropertyList.Enabled)
            {
                PacketHandlers.SingleClickProps = true;                 // single click for everything is overriden to check object property list

                CharacterList.AdditionalFlags |= CharacterListFlags.ExpansionUOR;
            }

            Mobile.GuildClickMessage = !ObjectPropertyList.Enabled;
            Mobile.AsciiClickMessage = !ObjectPropertyList.Enabled;
            Mobile.OldPropertyTitles = !ObjectPropertyList.Enabled;

            Mobile.InsuranceEnabled  = Core.AOS;
            Mobile.VisibleDamageType = VisibleDamageType.Related;

            if (Core.AOS)
            {
                AOS.DisableStatInfluences();

                Mobile.ActionDelay = TimeSpan.FromSeconds(0.5);
            }
        }
示例#9
0
        public static void Configure()
        {
            AccountGold.Enabled        = true;
            AccountGold.ConvertOnBank  = true;
            AccountGold.ConvertOnTrade = false;
            VirtualCheck.UseEditGump   = true;

            TownCryerSystem.Enabled = true;

            Mobile.InsuranceEnabled  = !Siege.SiegeShard;
            Mobile.VisibleDamageType = VisibleDamageType.Related;

            AOS.DisableStatInfluences();

            Mobile.AOSStatusHandler = AOS.GetStatus;
        }
示例#10
0
        public static void Configure()
        {
            Core.Expansion = Expansion;

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

            TownCryerSystem.Enabled = true;

            Mobile.InsuranceEnabled  = !Siege.SiegeShard;
            Mobile.VisibleDamageType = VisibleDamageType.Related;

            Mobile.GuildClickMessage = false;             // Maybe we can remove after?
            Mobile.AsciiClickMessage = false;             // Maybe we can remove after?

            AOS.DisableStatInfluences();

            Mobile.ActionDelay      = 500;
            Mobile.AOSStatusHandler = AOS.GetStatus;
        }
示例#11
0
        public static void Configure()
        {
            Core.Expansion = Expansion;


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

            if (true)
            {
                AOS.DisableStatInfluences();

                //Disable prop lists for now to keep 203 working, renable for 4+ only.

                if (ObjectPropertyList.Enabled)
                {
                    PacketHandlers.SingleClickProps = true;                     // single click for everything is overriden to check object property list
                }
            }
        }
示例#12
0
        public static void Configure()
        {
            Core.Expansion = Expansion;

            bool Enabled = Core.AOS;

            Mobile.InsuranceEnabled    = Enabled;           // Scriptiz : on retire le ! pour activer le système d'assurance
            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      = TimeSpan.FromSeconds(1.0);
                Mobile.AOSStatusHandler = new AOSStatusHandler(AOS.GetStatus);
            }
        }