Exemplo n.º 1
0
        public static void BurstCombo()
        {
            var eTarget = SimpleTs.GetTarget(R.Range, SimpleTs.DamageType.Magical);

            if (eTarget == null)
            {
                return;
            }

            var useQ           = Config.Item("UseQCombo").GetValue <bool>();
            var useW           = Config.Item("UseWCombo").GetValue <bool>();
            var useE           = Config.Item("UseECombo").GetValue <bool>();
            var useR           = Config.Item("UseRCombo").GetValue <bool>();
            var useIgnite      = Config.Item("UseIgnite").GetValue <bool>();
            var packetCast     = Config.Item("PacketCast").GetValue <bool>();
            var UseRMinEnemies = Config.Item("UseRMinEnemies").GetValue <Slider>().Value;

            double totalComboDamage = 0;

            if (R.IsReady())
            {
                totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.R);
            }
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.Q);
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.Q);
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.W);

            if (itemManager.IsReadyDFG())
            {
                totalComboDamage = totalComboDamage * 1.2;
            }

            if (itemManager.IsReadyDFG())
            {
                totalComboDamage += Player.GetItemDamage(eTarget, Damage.DamageItems.Dfg);
            }

            totalComboDamage += summonerSpellManager.IsReadyIgnite() ? Player.GetSummonerSpellDamage(eTarget, Damage.SummonerSpell.Ignite) : 0;

            double totalManaCost = 0;

            if (R.IsReady())
            {
                totalManaCost += Player.Spellbook.GetSpell(SpellSlot.R).ManaCost;
            }
            totalManaCost += Player.Spellbook.GetSpell(SpellSlot.Q).ManaCost;

            if (mustDebug)
            {
                Game.PrintChat("BurstCombo Damage {0}/{1} {2}", Convert.ToInt32(totalComboDamage), Convert.ToInt32(eTarget.Health), eTarget.Health < totalComboDamage ? "BustKill" : "Harras");
                Game.PrintChat("BurstCombo Mana {0}/{1} {2}", Convert.ToInt32(totalManaCost), Convert.ToInt32(eTarget.Mana), Player.Mana >= totalManaCost ? "Mana OK" : "No Mana");
            }

            // R Combo
            if (eTarget.Health < totalComboDamage && Player.Mana >= totalManaCost)
            {
                if (totalComboDamage * 0.3 < eTarget.Health) // Anti OverKill
                {
                    if (mustDebug)
                    {
                        Game.PrintChat("BurstCombo R -> " + eTarget.BaseSkinName);
                    }

                    if (itemManager.IsReadyDFG())
                    {
                        itemManager.CastDFG(eTarget);
                    }

                    if (R.IsReady() && useR)
                    {
                        var pred = R.GetPrediction(eTarget, true);
                        R.Cast(pred.CastPosition, packetCast);
                    }

                    dtBurstComboStart = DateTime.Now;
                }
                dtBurstComboStart = DateTime.Now;
            }


            // R if Hit X Enemies
            if (R.IsReady() && useR)
            {
                if (DevHelper.CountEnemyInPositionRange(eTarget.ServerPosition, 250) >= UseRMinEnemies)
                {
                    if (itemManager.IsReadyDFG())
                    {
                        itemManager.CastDFG(eTarget);
                    }

                    var pred = R.GetPrediction(eTarget, true);
                    R.Cast(pred.CastPosition, packetCast);

                    dtBurstComboStart = DateTime.Now;
                }
            }

            // Ignite
            if (dtBurstComboStart.AddSeconds(4) > DateTime.Now && summonerSpellManager.IsReadyIgnite())
            {
                if (mustDebug)
                {
                    Game.PrintChat("Ignite -> " + eTarget.BaseSkinName);
                }
                summonerSpellManager.CastIgnite(eTarget);;
            }
        }
Exemplo n.º 2
0
        public static void BurstCombo()
        {
            var eTarget = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical);

            if (eTarget == null)
            {
                return;
            }

            var useQ       = Config.Item("UseQCombo").GetValue <bool>();
            var useW       = Config.Item("UseWCombo").GetValue <bool>();
            var useE       = Config.Item("UseECombo").GetValue <bool>();
            var useR       = Config.Item("UseRCombo").GetValue <bool>();
            var useIgnite  = Config.Item("UseIgnite").GetValue <bool>();
            var packetCast = Config.Item("PacketCast").GetValue <bool>();

            double totalComboDamage = 0;

            if (R.IsReady())
            {
                totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.R);
                totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.Q);
                totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.E);
            }
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.Q);
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.E);
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.E);
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.E);
            totalComboDamage += summonerSpellManager.GetIgniteDamage(eTarget);

            double totalManaCost = 0;

            if (R.IsReady())
            {
                totalManaCost += Player.Spellbook.GetSpell(SpellSlot.R).ManaCost;
            }
            totalManaCost += Player.Spellbook.GetSpell(SpellSlot.Q).ManaCost;

            if (mustDebug)
            {
                Game.PrintChat("BurstCombo Damage {0}/{1} {2}", Convert.ToInt32(totalComboDamage), Convert.ToInt32(eTarget.Health), eTarget.Health < totalComboDamage ? "BustKill" : "Harras");
                Game.PrintChat("BurstCombo Mana {0}/{1} {2}", Convert.ToInt32(totalManaCost), Convert.ToInt32(eTarget.Mana), Player.Mana >= totalManaCost ? "Mana OK" : "No Mana");
            }

            if (eTarget.Health < totalComboDamage && Player.Mana >= totalManaCost && !eTarget.IsInvulnerable)
            {
                if (R.IsReady() && useR && eTarget.IsValidTarget(R.Range) && eTarget.IsFacing(Player))
                {
                    if (totalComboDamage * 0.3 < eTarget.Health) // Anti R OverKill
                    {
                        if (mustDebug)
                        {
                            Game.PrintChat("BurstCombo R");
                        }
                        if (R.Cast(eTarget, packetCast, true) == Spell.CastStates.SuccessfullyCasted)
                        {
                            dtBurstComboStart = Environment.TickCount;
                        }
                    }
                    else
                    {
                        if (mustDebug)
                        {
                            Game.PrintChat("BurstCombo OverKill");
                        }
                        dtBurstComboStart = Environment.TickCount;
                    }
                }
            }


            if (dtBurstComboStart + 5000 > Environment.TickCount && summonerSpellManager.IsReadyIgnite() && eTarget.IsValidTarget(600))
            {
                if (mustDebug)
                {
                    Game.PrintChat("Ignite");
                }
                summonerSpellManager.CastIgnite(eTarget);
            }
        }
Exemplo n.º 3
0
        public static void BurstCombo()
        {
            var eTarget = SimpleTs.GetTarget(R.Range, SimpleTs.DamageType.Magical);

            if (eTarget == null)
            {
                return;
            }

            var useQ       = Config.Item("UseQCombo").GetValue <bool>();
            var useW       = Config.Item("UseWCombo").GetValue <bool>();
            var useE       = Config.Item("UseECombo").GetValue <bool>();
            var useR       = Config.Item("UseRCombo").GetValue <bool>();
            var useIgnite  = Config.Item("UseIgnite").GetValue <bool>();
            var packetCast = Config.Item("PacketCast").GetValue <bool>();

            double totalComboDamage = 0;

            if (R.IsReady())
            {
                totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.R);
                totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.Q);
                totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.E);
            }
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.Q);
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.E);
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.E);
            totalComboDamage += Player.GetSpellDamage(eTarget, SpellSlot.E);
            totalComboDamage += summonerSpellManager.GetIgniteDamage(eTarget);

            double totalManaCost = 0;

            if (R.IsReady())
            {
                totalManaCost += Player.Spellbook.GetSpell(SpellSlot.R).ManaCost;
            }
            totalManaCost += Player.Spellbook.GetSpell(SpellSlot.Q).ManaCost;

            if (mustDebug)
            {
                Game.PrintChat("BurstCombo Damage {0}/{1} {2}", Convert.ToInt32(totalComboDamage), Convert.ToInt32(eTarget.Health), eTarget.Health < totalComboDamage ? "BustKill" : "Harras");
                Game.PrintChat("BurstCombo Mana {0}/{1} {2}", Convert.ToInt32(totalManaCost), Convert.ToInt32(eTarget.Mana), Player.Mana >= totalManaCost ? "Mana OK" : "No Mana");
            }

            if (eTarget.Health < totalComboDamage && Player.Mana >= totalManaCost)
            {
                if (R.IsReady() && useR && eTarget.IsValidTarget(R.Range) && eTarget.IsFacing(Player))
                {
                    if (totalComboDamage * 0.3 < eTarget.Health) // Anti R OverKill
                    {
                        if (mustDebug)
                        {
                            Game.PrintChat("BurstCombo R");
                        }
                        R.Cast(eTarget.ServerPosition, packetCast);
                        dtBurstComboStart = DateTime.Now;
                    }
                    else
                    {
                        if (mustDebug)
                        {
                            Game.PrintChat("BurstCombo OverKill");
                        }
                        dtBurstComboStart = DateTime.Now;
                    }
                }
            }


            if (dtBurstComboStart.AddSeconds(5) > DateTime.Now && summonerSpellManager.IsReadyIgnite() && eTarget.IsValidTarget(600))
            {
                if (mustDebug)
                {
                    Game.PrintChat("Ignite");
                }
                summonerSpellManager.CastIgnite(eTarget);
            }
        }