Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (Disposed)
            {
                return;
            }

            if (disposing)
            {
                MagnusPlus.Context.Orbwalker.UnregisterMode(Mode);
                Mode.Deactivate();

                Renderer.Dispose();
                WithoutFail.Dispose();
                UpdateMode.Dispose();
                AutoCombo.Dispose();
                ComboKeyItem.Item.ValueChanged -= HotkeyChanged;

                MagnusPlus.Context.Particle.Dispose();
                Factory.Dispose();

                Game.ExecuteCommand("dota_camera_disable_zoom false");
            }

            Disposed = true;
        }
Beispiel #2
0
        public Config(SkywrathMagePlus main)
        {
            Main = main;

            ActivatePlugins();
            Screen       = new Vector2(Drawing.Width - 160, Drawing.Height);
            MultiSleeper = new MultiSleeper();

            Menu       = new MenuManager(this);
            Extensions = new Extensions(this);

            UpdateMode        = new UpdateMode(this);
            DamageCalculation = new DamageCalculation(this);
            LinkenBreaker     = new LinkenBreaker(this);
            AutoKillSteal     = new AutoKillSteal(this);
            AutoCombo         = new AutoCombo(this);
            SpamMode          = new SpamMode(this);
            AutoDisable       = new AutoDisable(this);
            WithoutFail       = new WithoutFail(this);
            AutoAbility       = new AutoAbility(this);

            Menu.ComboKeyItem.Item.ValueChanged += ComboKeyChanged;
            var key = KeyInterop.KeyFromVirtualKey((int)Menu.ComboKeyItem.Value.Key);

            Mode = new Mode(key, this);
            Main.Context.Orbwalker.RegisterMode(Mode);

            Renderer = new Renderer(this);
        }
Beispiel #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (Disposed)
            {
                return;
            }

            if (disposing)
            {
                Renderer.Dispose();

                Main.Context.Orbwalker.UnregisterMode(Mode);
                Menu.ComboKeyItem.Item.ValueChanged -= ComboKeyChanged;

                AutoAbility.Dispose();
                WithoutFail.Dispose();
                AutoDisable.Dispose();
                SpamMode.Dispose();
                AutoCombo.Dispose();
                AutoKillSteal.Dispose();
                DamageCalculation.Dispose();
                UpdateMode.Dispose();

                Main.Context.Particle.Dispose();

                Menu.Dispose();
            }

            Disposed = true;
        }
Beispiel #4
0
        protected virtual void Dispose(bool disposing)
        {
            if (Disposed)
            {
                return;
            }

            if (disposing)
            {
                Renderer.Dispose();
                AutoUsage.Dispose();
                WithoutFail.Dispose();
                UpdateMode.Dispose();
                AutoDisable.Dispose();
                AutoCombo.Dispose();
                SkywrathMagePlus.Context.Orbwalker.UnregisterMode(Mode);
                Mode.Deactivate();
                SpamMode.Dispose();
                SkywrathMagePlus.Context.Particle.Dispose();
                ComboKeyItem.Item.ValueChanged -= HotkeyChanged;
                Factory.Dispose();
            }

            Disposed = true;
        }
Beispiel #5
0
        public override void Dispose()
        {
            base.Dispose();

            ExecuteOrder.Dispose();
            EulControl.Dispose();
            Disable.Dispose();
            SpamArcaneBolt.Dispose();
            AutoArcaneBolt.Dispose();
            Farm.Dispose();
            AutoCombo.Dispose();

            UpdateMode.Dispose();
        }
Beispiel #6
0
        public Common()
        {
            TargetSelector    = new TargetSelectorManager(MenuConfig);
            DamageCalculation = new DamageCalculation(this);

            LinkenBreaker = new LinkenBreaker(this);
            KillSteal     = new KillSteal(this);
            Combo         = new Combo(this);

            UpdateMode = new UpdateMode(this);

            AutoCombo      = new AutoCombo(this);
            Farm           = new Farm(this);
            AutoArcaneBolt = new AutoArcaneBolt(this);
            SpamArcaneBolt = new SpamArcaneBolt(this);
            Disable        = new Disable(this);
            EulControl     = new EulControl(this);
            ExecuteOrder   = new ExecuteOrder(this);

            Renderer = new Renderer(this);
        }
Beispiel #7
0
        public Config(MagnusPlus magnusplus)
        {
            MagnusPlus = magnusplus;

            Factory = MenuFactory.CreateWithTexture("MagnusPlus", "npc_dota_hero_magnataur");
            Factory.Target.SetFontColor(Color.Aqua);

            var AbilitiesMenu = Factory.Menu("Abilities");

            AbilityToggler = AbilitiesMenu.Item("Use: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "magnataur_reverse_polarity", true },
                { "magnataur_skewer", true },
                { "magnataur_empower", true },
                { "magnataur_shockwave", true },
            }));

            var ItemsMenu = Factory.Menu("Items");

            ItemsToggler = ItemsMenu.Item("Use: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "item_refresher", true },
                { "item_shivas_guard", true },
                { "item_black_king_bar", true },
                { "item_guardian_greaves", true },
                { "item_arcane_boots", true },
                { "item_force_staff", true },
                { "item_blink", true }
            }));

            var AutoComboMenu = Factory.Menu("Auto Combo");

            AutoComboItem       = AutoComboMenu.Item("Use Auto Combo", true);
            AutoComboAmountItem = AutoComboMenu.Item("Amount", new Slider(4, 1, 5));
            AutoComboAmountItem.Item.SetTooltip("Can be Changed Using the Mouse Wheel");
            AutoAtackItem = AutoComboMenu.Item("Auto Atack", true);
            AutoAtackItem.Item.SetTooltip("1 Times Right Mouse Click Disable Auto Attack");
            AutoAbilitiesToggler = AutoComboMenu.Item("Abilities: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "magnataur_reverse_polarity", true },
                { "magnataur_skewer", false },
                { "magnataur_empower", true },
                { "magnataur_shockwave", true }
            }));

            AutoItemsToggler = AutoComboMenu.Item("Items: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "item_refresher", true },
                { "item_shivas_guard", true },
                { "item_black_king_bar", true },
                { "item_guardian_greaves", true },
                { "item_arcane_boots", true },
                { "item_force_staff", true },
                { "item_blink", true }
            }));

            var DrawingMenu = Factory.Menu("Drawing");

            TextItem        = DrawingMenu.Item("Text", true);
            ComboRadiusItem = DrawingMenu.Item("Combo Stable Radius", true);
            ComboRadiusItem.Item.SetTooltip("I suggest making a combo in this radius");

            ComboKeyItem = Factory.Item("Combo Key", new KeyBind('D'));
            AmountItem   = Factory.Item("Amount", new Slider(1, 1, 5));

            RPWithoutFailItem = Factory.Item("RP Without Fail", true);
            TargetItem        = Factory.Item("Target", new StringList("Lock", "Default"));

            ComboKeyItem.Item.ValueChanged += HotkeyChanged;

            AutoCombo   = new AutoCombo(this);
            UpdateMode  = new UpdateMode(this);
            WithoutFail = new WithoutFail(this);
            Renderer    = new Renderer(this);

            var Key = KeyInterop.KeyFromVirtualKey((int)ComboKeyItem.Value.Key);

            Mode = new Mode(MagnusPlus.Context, Key, this);
            MagnusPlus.Context.Orbwalker.RegisterMode(Mode);

            Game.ExecuteCommand("dota_camera_disable_zoom true");
        }
Beispiel #8
0
        public Config(SkywrathMagePlus skywrathmageplus)
        {
            SkywrathMagePlus = skywrathmageplus;

            Factory = MenuFactory.CreateWithTexture("SkywrathMagePlus", "npc_dota_hero_skywrath_mage");
            Factory.Target.SetFontColor(Color.Aqua);
            var AbilitiesMenu = Factory.Menu("Abilities");

            AbilityToggler = AbilitiesMenu.Item("Use: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "skywrath_mage_mystic_flare", true },
                { "skywrath_mage_ancient_seal", true },
                { "skywrath_mage_concussive_shot", true },
                { "skywrath_mage_arcane_bolt", true }
            }));

            var ItemsMenu = Factory.Menu("Items");

            ItemsToggler = ItemsMenu.Item("Use: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "item_shivas_guard", true },
                { "item_dagon_5", true },
                { "item_veil_of_discord", true },
                { "item_ethereal_blade", true },
                { "item_rod_of_atos", true },
                { "item_bloodthorn", true },
                { "item_orchid", true },
                { "item_sheepstick", true }
            }));

            var AutoComboMenu = Factory.Menu("Auto Combo");

            AutoComboItem        = AutoComboMenu.Item("Use Auto Combo", true);
            AutoAbilitiesToggler = AutoComboMenu.Item("Abilities: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "skywrath_mage_mystic_flare", true },
                { "skywrath_mage_ancient_seal", true },
                { "skywrath_mage_concussive_shot", true },
                { "skywrath_mage_arcane_bolt", true }
            }));

            AutoItemsToggler = AutoComboMenu.Item("Items: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "item_shivas_guard", true },
                { "item_dagon_5", true },
                { "item_veil_of_discord", true },
                { "item_ethereal_blade", true },
                { "item_rod_of_atos", true },
                { "item_bloodthorn", true },
                { "item_orchid", true },
                { "item_sheepstick", true }
            }));

            var AutoDisableMenu = Factory.MenuWithTexture("Auto Disable", "item_sheepstick");

            AutoDisableItem    = AutoDisableMenu.Item("Use Auto Disable", true);
            AutoDisableToggler = AutoDisableMenu.Item("Use: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "skywrath_mage_ancient_seal", true },
                { "item_bloodthorn", true },
                { "item_orchid", true },
                { "item_sheepstick", true }
            }));

            var LinkenBreakerMenu = Factory.MenuWithTexture("Linken Breaker", "item_sphere");

            LinkenBreakerToggler = LinkenBreakerMenu.Item("Use: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "skywrath_mage_ancient_seal", false },
                { "skywrath_mage_arcane_bolt", true },
                { "item_sheepstick", true },
                { "item_rod_of_atos", true },
                { "item_bloodthorn", true },
                { "item_orchid", true },
                { "item_cyclone", true },
                { "item_force_staff", true }
            }));

            LinkenBreakerChanger = LinkenBreakerMenu.Item("Priority: ", new PriorityChanger(new List <string>
            {
                { "skywrath_mage_ancient_seal" },
                { "skywrath_mage_arcane_bolt" },
                { "item_sheepstick" },
                { "item_rod_of_atos" },
                { "item_bloodthorn" },
                { "item_orchid" },
                { "item_cyclone" },
                { "item_force_staff" }
            }));

            var AntimageBreakerMenu = Factory.MenuWithTexture("Antimage Breaker", "antimage_spell_shield");

            AntimageBreakerToggler = AntimageBreakerMenu.Item("Use: ", new AbilityToggler(new Dictionary <string, bool>
            {
                { "skywrath_mage_ancient_seal", false },
                { "skywrath_mage_arcane_bolt", true },
                { "item_rod_of_atos", true },
                { "item_cyclone", true },
                { "item_force_staff", true }
            }));

            AntimageBreakerChanger = AntimageBreakerMenu.Item("Priority: ", new PriorityChanger(new List <string>
            {
                { "skywrath_mage_ancient_seal" },
                { "skywrath_mage_arcane_bolt" },
                { "item_rod_of_atos" },
                { "item_cyclone" },
                { "item_force_staff" }
            }));

            var BladeMailMenu = Factory.MenuWithTexture("Blade Mail", "item_blade_mail");

            BladeMailItem = BladeMailMenu.Item("Cancel Combo", true);
            BladeMailItem.Item.SetTooltip("Cancel Combo if there is enemy Blade Mail");
            EulBladeMailItem = BladeMailMenu.Item("Use Eul", true);
            EulBladeMailItem.Item.SetTooltip("Use Eul if there is BladeMail with ULT");

            var ConcussiveShotMenu = Factory.MenuWithTexture("Smart Concussive Shot", "skywrath_mage_concussive_shot");

            WWithoutFailItem = ConcussiveShotMenu.Item("Without Fail", true);
            WTargetItem      = ConcussiveShotMenu.Item("Use Only Target", true);
            WTargetItem.Item.SetTooltip("This only works with Combo");
            WRadiusItem = ConcussiveShotMenu.Item("Use in Radius", new Slider(1400, 800, 1600));
            WRadiusItem.Item.SetTooltip("This only works with Combo");

            var DrawingMenu = Factory.Menu("Drawing");

            TextItem        = DrawingMenu.Item("Text", true);
            ComboRadiusItem = DrawingMenu.Item("Combo Stable Radius", true);
            ComboRadiusItem.Item.SetTooltip("I suggest making a combo in this radius");
            WDrawItem = DrawingMenu.Item("Show W Target", true);

            ComboKeyItem = Factory.Item("Combo Key", new KeyBind('D'));
            AutoQKeyItem = Factory.Item("Auto Q Key", new KeyBind('F', KeyBindType.Toggle, false));
            AutoQKeyItem.Item.SetValue(new KeyBind(AutoQKeyItem.Item.GetValue <KeyBind>().Key, KeyBindType.Toggle, false));
            SpamKeyItem  = Factory.Item("Spam Q Key", new KeyBind('Q'));
            SpamUnitItem = Factory.Item("Spam Q Units", true);
            SpamUnitItem.Item.SetTooltip("Creeps, Neutrals and Roshan");
            MinDisInOrbwalk = Factory.Item("Min Distance in OrbWalk", new Slider(0, 0, 600));
            TargetItem      = Factory.Item("Target", new StringList("Lock", "Default"));

            ComboKeyItem.Item.ValueChanged += HotkeyChanged;

            var Key = KeyInterop.KeyFromVirtualKey((int)ComboKeyItem.Value.Key);

            Mode = new Mode(SkywrathMagePlus.Context, Key, this);
            SkywrathMagePlus.Context.Orbwalker.RegisterMode(Mode);

            Data          = new Data();
            LinkenBreaker = new LinkenBreaker(this);
            SpamMode      = new SpamMode(this);
            AutoCombo     = new AutoCombo(this);
            AutoDisable   = new AutoDisable(this);
            UpdateMode    = new UpdateMode(this);
            WithoutFail   = new WithoutFail(this);
            AutoUsage     = new AutoUsage(this);
            Renderer      = new Renderer(this);
        }