Exemple #1
0
        /// <summary>
        ///     Fired when the game loads.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void OnGameLoad()
        {
            try
            {
                if (Player.ChampionName != "Zilean")
                {
                    return;
                }

                var igniteSlot = Player.GetSpellSlot("summonerdot");
                if (igniteSlot != SpellSlot.Unknown)
                {
                    IgniteSpell = new Spell(igniteSlot, 600f);
                }

                foreach (var ally in HeroManager.Allies)
                {
                    IncomingDamageManager.AddChampion(ally);
                }

                IncomingDamageManager.Skillshots = true;


                Q = new EloBuddy.SDK.Spell.Skillshot(SpellSlot.Q, 900 + 100, EloBuddy.SDK.Enumerations.SkillShotType.Circular, 300, 2000, 100);
                W = new Spell(SpellSlot.W, Player.GetAutoAttackRange(Player));
                E = new Spell(SpellSlot.E, 700f);
                R = new Spell(SpellSlot.R, 900f);

                GenerateMenu();

                Game.OnUpdate  += OnUpdate;
                Drawing.OnDraw += OnDraw;
                Interrupter2.OnInterruptableTarget += OnInterruptableTarget;
                Obj_AI_Base.OnProcessSpellCast     += OnProcessSpellCast;
                Orbwalker.OnPreAttack += BeforeAttack;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Exemple #2
0
        /// <summary>
        ///     Fired when the game loads.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void OnGameLoad()
        {
            try
            {
                if (Player.ChampionName != "Zilean")
                {
                    return;
                }

                var igniteSlot = Player.GetSpellSlot("summonerdot");
                if (igniteSlot != SpellSlot.Unknown)
                {
                    IgniteSpell = new Spell(igniteSlot, 600f);
                }

                foreach (var ally in HeroManager.Allies)
                {
                    IncomingDamageManager.AddChampion(ally);
                }

                IncomingDamageManager.Skillshots = true;

                Q = new EloBuddy.SDK.Spell.Skillshot(SpellSlot.Q, 900 + 100, EloBuddy.SDK.Enumerations.SkillShotType.Circular, 300, 2000, 100);
                W = new Spell(SpellSlot.W, Player.GetAutoAttackRange(Player));
                E = new Spell(SpellSlot.E, 700f);
                R = new Spell(SpellSlot.R, 900f);

                GenerateMenu();

                Game.OnUpdate += OnUpdate;
                Drawing.OnDraw += OnDraw;
                Interrupter2.OnInterruptableTarget += OnInterruptableTarget;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
                Orbwalker.OnPreAttack += BeforeAttack;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Exemple #3
0
        private static void OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Viktor")
            {
                return;
            }
            Utils.ClearConsole();

            #region Spells
            Q = new Spell(SpellSlot.Q, 700);
            W = new Spell(SpellSlot.W, 700);
            E = new Spell(SpellSlot.E, 700);
            R = new Spell(SpellSlot.R, 700);

            Q.SetTargetted(0.25f, 2000);
            W.SetSkillshot(0.25f, 300, float.MaxValue, false, SkillshotType.SkillshotCircle);
            E.SetSkillshot(0.0f, 90, 1200, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(0.25f, 250, float.MaxValue, false, SkillshotType.SkillshotCircle);

            EELO = new EloBuddy.SDK.Spell.Skillshot(SpellSlot.E, 525, EloBuddy.SDK.Enumerations.SkillShotType.Linear, 250, int.MaxValue, 100);
            EELO.AllowedCollisionCount = int.MaxValue;
            #endregion

            #region Menu
            Menu = new Menu("Apollo's Viktor", "Viktor", true);

            TargetSelector.AddToMenu(Menu.SubMenu("Target Selector"));
            Orbwalker = new Orbwalking.Orbwalker(Menu.AddSubMenu(new Menu("Orbwalking", "Orbwalking")));

            Menu.SubMenu("Combo").AddItem(new MenuItem("UseQC", "Use Q").SetValue(true));
            Menu.SubMenu("Combo").AddItem(new MenuItem("UseWC", "Use W").SetValue(true));
            Menu.SubMenu("Combo").AddItem(new MenuItem("UseEC", "Use E").SetValue(true));
            Menu.SubMenu("Combo").AddItem(new MenuItem("UseRC", "Use R").SetValue(true));
            Menu.SubMenu("Combo").AddItem(new MenuItem("kek", ""));
            Menu.SubMenu("Combo").AddItem(new MenuItem("PredEC", "Minimum HitChance E").SetValue(new StringList((new[] { "Low", "Medium", "High", "Very High" }), 2)));
            Menu.SubMenu("Combo").AddItem(new MenuItem("HitRC", "Minimum Hit R").SetValue(new Slider(3, 1, 5)));
            Menu.SubMenu("Combo").AddItem(new MenuItem("UseIgniteC", "Use Ignite").SetValue(true));
            Menu.SubMenu("Combo").AddItem(new MenuItem("KeyC", "Combo (" + Utils.KeyToText(Menu.Item("Orbwalk").GetValue <KeyBind>().Key) + ")", true)).DontSave();

            Menu.SubMenu("Harass").AddItem(new MenuItem("UseQH", "Use Q").SetValue(true));
            Menu.SubMenu("Harass").AddItem(new MenuItem("UseEH", "Use E").SetValue(true));
            Menu.SubMenu("Harass").AddItem(new MenuItem("kek", ""));
            Menu.SubMenu("Harass").AddItem(new MenuItem("PredEH", "Minimum HitChance E").SetValue(new StringList((new[] { "Low", "Medium", "High", "Very High" }), 3)));
            Menu.SubMenu("Harass").AddItem(new MenuItem("ManaH", "Minimum Mana%").SetValue(new Slider(30)));
            Menu.SubMenu("Harass").AddItem(new MenuItem("KeyH", "Harass (" + Utils.KeyToText(Menu.Item("Farm").GetValue <KeyBind>().Key) + ")", true)).DontSave();

            Menu.SubMenu("LaneClear").AddItem(new MenuItem("UseQL", "Use Q").SetValue(true));
            Menu.SubMenu("LaneClear").AddItem(new MenuItem("UseEL", "Use E").SetValue(true));
            Menu.SubMenu("LaneClear").AddItem(new MenuItem("kek", ""));
            Menu.SubMenu("LaneClear").AddItem(new MenuItem("HitEL", "Minimum Hit E").SetValue(new Slider(3, 1, 10)));
            Menu.SubMenu("LaneClear").AddItem(new MenuItem("ManaL", "Minimum Mana%").SetValue(new Slider(30)));
            Menu.SubMenu("LaneClear").AddItem(new MenuItem("KeyL", "LaneClear (" + Utils.KeyToText(Menu.Item("LaneClear").GetValue <KeyBind>().Key) + ")", true)).DontSave();

            Menu.SubMenu("Misc").AddItem(new MenuItem("UseQinAA", "Only use Q in AA range").SetValue(false));
            Menu.SubMenu("Misc").AddItem(new MenuItem("AutoW", "Auto W").SetValue(true));
            Menu.SubMenu("Misc").AddItem(new MenuItem("AutoFollowR", "Auto Follow R").SetValue(true));
            Menu.SubMenu("Misc").AddItem(new MenuItem("KsE", "Use E for KS").SetValue(false));
            Menu.SubMenu("Misc").AddItem(new MenuItem("GapcloserW", "Use W as AntiGapcloser").SetValue(true));
            Menu.SubMenu("Misc").AddItem(new MenuItem("InterrupterW", "Use W as Interrupter").SetValue(true));
            Menu.SubMenu("Misc").AddItem(new MenuItem("InterrupterR", "Use R as Interrupter").SetValue(false));

            Menu.SubMenu("Drawings").AddItem(new MenuItem("DrawQ", "Q Range").SetValue(new Circle(true, Color.AntiqueWhite)));
            Menu.SubMenu("Drawings").AddItem(new MenuItem("DrawW", "W Range").SetValue(new Circle(false, Color.AntiqueWhite)));
            Menu.SubMenu("Drawings").AddItem(new MenuItem("DrawE", "E Range").SetValue(new Circle(true, Color.AntiqueWhite)));
            Menu.SubMenu("Drawings").AddItem(new MenuItem("DrawR", "R Range").SetValue(new Circle(false, Color.AntiqueWhite)));
            Menu.SubMenu("Drawings").AddItem(new MenuItem("CDDraw", "Draw CD").SetValue(new Circle(false, Color.DarkRed)));
            MenuItem drawComboDamageMenu = new MenuItem("DmgDraw", "Draw Combo Damage", true).SetValue(true);
            MenuItem drawFill            = new MenuItem("DmgFillDraw", "Draw Combo Damage Fill", true).SetValue(new Circle(true, Color.FromArgb(90, 255, 169, 4)));
            Menu.SubMenu("Drawings").AddItem(drawComboDamageMenu);
            Menu.SubMenu("Drawings").AddItem(drawFill);
            DamageIndicator.DamageToUnit      = ComboDmg;
            DamageIndicator.Enabled           = drawComboDamageMenu.GetValue <bool>();
            DamageIndicator.Fill              = drawFill.GetValue <Circle>().Active;
            DamageIndicator.FillColor         = drawFill.GetValue <Circle>().Color;
            drawComboDamageMenu.ValueChanged +=
                delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
            };
            drawFill.ValueChanged +=
                delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DamageIndicator.Fill      = eventArgs.GetNewValue <Circle>().Active;
                DamageIndicator.FillColor = eventArgs.GetNewValue <Circle>().Color;
            };

            Menu.AddToMainMenu();
            #endregion

//            UpdateChecker.Init("Apollo16", "Viktor");
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += OnDraw;
            Interrupter2.OnInterruptableTarget += OnInterruptableTarget;
            AntiGapcloser.OnEnemyGapcloser     += OnEnemyGapcloser;
            ShowNotification("Apollo's " + ObjectManager.Player.ChampionName + " Loaded", NotificationColor, 7000);
        }