예제 #1
0
파일: AzirModes.cs 프로젝트: riwalry1/AIO
        public override void Harash(AzirMain azir)
        {
            var wCount       = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Ammo;
            var useQ         = Menu._harashMenu["HQ"].Cast <CheckBox>().CurrentValue;
            var useW         = Menu._harashMenu["HW"].Cast <CheckBox>().CurrentValue;
            var savew        = Menu._harashMenu["HW2"].Cast <CheckBox>().CurrentValue;
            var nSoldiersToQ = Menu._harashMenu["hSoldiersToQ"].Cast <Slider>().CurrentValue;

            base.Harash(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);

            if (target != null)
            {
                if (target.Distance(azir.Hero.ServerPosition) < 450)
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.Medium)
                    {
                        if (savew && (wCount == 1))
                        {
                        }
                        else
                        {
                            if (useW)
                            {
                                if (azir.Spells.W.IsReady())
                                {
                                    azir.Spells.W.Cast(pred.CastPosition);
                                }
                            }
                        }
                    }
                }
                else
                {
                    //    if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                    //      if((!savew &&(savew&& (wCount > 0))))
                    if (savew && (wCount == 1))
                    {
                    }
                    else
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                        }
                    }
                }
                if (azir.soldierManager.SoldiersAttackingn(azir) <= nSoldiersToQ)
                {
                    StaticSpells.CastQ(azir, target, useQ, nSoldiersToQ);
                }
            }
        }
예제 #2
0
        public override void Harash(AzirMain azir)
        {
            var wCount = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Ammo;
            var useQ   = azir.Menu.GetMenu.Item("HQ").GetValue <bool>();
            var useW   = azir.Menu.GetMenu.Item("HW").GetValue <bool>();
            var savew  = azir.Menu.GetMenu.Item("HW2").GetValue <bool>();

            base.Harash(azir);
            var target = TargetSelector.GetTarget(900, TargetSelector.DamageType.Magical);

            if (target != null)
            {
                if (target.Distance(azir.Hero.ServerPosition) < 450)
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.Medium)
                    {
                        if (savew && (wCount == 1))
                        {
                        }
                        else
                        {
                            if (useW)
                            {
                                if (azir.Spells.W.IsReady())
                                {
                                    azir.Spells.W.Cast(pred.CastPosition);
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (!savew || (wCount != 1))
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                        }
                    }
                }
                var checksQ = azir.SoldierManager.ChecksToCastQ(azir, target);
                if (checksQ)
                {
                    StaticSpells.CastQ(azir, target, useQ);
                }
            }
        }
예제 #3
0
        public override void Harash(AzirMain azir)
        {
            var wCount = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Ammo;
            var useQ   = AzirMenu._harashMenu["HQ"].Cast <CheckBox>().CurrentValue;
            var useW   = AzirMenu._harashMenu["HW"].Cast <CheckBox>().CurrentValue;
            var savew  = AzirMenu._harashMenu["HW2"].Cast <CheckBox>().CurrentValue;

            base.Harash(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);

            if (target != null)
            {
                if (target.Distance(azir.Hero.ServerPosition) < 450)
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.HitChance >= EloBuddy.SDK.Enumerations.HitChance.Medium)
                    {
                        if (savew && (wCount == 1))
                        {
                        }
                        else
                        {
                            if (useW)
                            {
                                if (azir.Spells.W.IsReady())
                                {
                                    azir.Spells.W.Cast(pred.CastPosition);
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (!savew || (wCount != 1))
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                        }
                    }
                }
                var checksQ = azir.SoldierManager.ChecksToCastQ(azir, target);
                if (checksQ)
                {
                    StaticSpells.CastQ(azir, target, useQ);
                }
            }
        }
예제 #4
0
        public override void Combo(AzirMain azir)
        {
            var useQ = azir.Menu.GetMenu.Item("CQ").GetValue <bool>();
            var useW = azir.Menu.GetMenu.Item("CW").GetValue <bool>();

            base.Combo(azir);
            var target = TargetSelector.GetTarget(900, TargetSelector.DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (target.Distance(azir.Hero.ServerPosition) < 450)
            {
                if (target.IsRunningOfYou())
                {
                    var pos = Prediction.GetPrediction(target, 0.5f).UnitPosition;
                    azir.Spells.W.Cast(pos);
                }
                else
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.VeryHigh)
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(pred.CastPosition);
                        }
                    }
                }
            }
            else
            {
                if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                {
                    if (useW)
                    {
                        if (target.Distance(HeroManager.Player) <= 750)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                        }
                    }
                }
            }
            //Qc casting
            var checksQ = azir.SoldierManager.ChecksToCastQ(azir, target);

            if (checksQ)
            {
                StaticSpells.CastQ(azir, target, useQ);
            }



            else if (azir.Spells.R.IsKillable(target))
            {
                if (!azir.Menu.GetMenu.Item("CR").GetValue <bool>())
                {
                    return;
                }
                if (!(target.Health < azir.Spells.R.GetDamage(target)))
                {
                    return;
                }
                var pred = azir.Spells.R.GetPrediction(target);
                if (pred.Hitchance >= HitChance.High)
                {
                    azir.Spells.R.Cast(pred.CastPosition);
                }
                //      azir.Spells.R.Cast(target);
            }
        }
예제 #5
0
        public override void Combo(AzirMain azir)
        {
            var useQ = AzirMenu._comboMenu["CQ"].Cast <CheckBox>().CurrentValue;
            var useW = AzirMenu._comboMenu["CW"].Cast <CheckBox>().CurrentValue;

            base.Combo(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (target.Distance(azir.Hero.ServerPosition) < 450)
            {
                if (target.IsRunningOfYou())
                {
                    var pos = LeagueSharp.Common.Prediction.GetPrediction(target, 0.5f).UnitPosition;
                    azir.Spells.W.Cast(pos);
                }
                else
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.HitChance >= EloBuddy.SDK.Enumerations.HitChance.High)
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(pred.CastPosition);
                        }
                    }
                }
            }
            else
            {
                if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                {
                    if (useW)
                    {
                        if (target.Distance(HeroManager.Player) <= 750)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                        }
                    }
                }
            }
            //Qc casting
            var checksQ = azir.SoldierManager.ChecksToCastQ(azir, target);

            if (checksQ)
            {
                StaticSpells.CastQ(azir, target, useQ);
            }



            else if (azir.Spells.R.IsKillable(target))
            {
                if (!AzirMenu._comboMenu["CR"].Cast <CheckBox>().CurrentValue)
                {
                    return;
                }
                if (!(target.Health < azir.Spells.R.GetDamage(target)))
                {
                    return;
                }
                var pred = azir.Spells.R.GetPrediction(target);
                if (pred.HitChance >= EloBuddy.SDK.Enumerations.HitChance.High)
                {
                    azir.Spells.R.Cast(pred.CastPosition);
                }
                //      azir.Spells.R.Cast(target);
            }
        }
예제 #6
0
파일: AzirModes.cs 프로젝트: riwalry1/AIO
        public override void Combo(AzirMain azir)
        {
            var useQ         = Menu._comboMenu["CQ"].Cast <CheckBox>().CurrentValue;
            var useW         = Menu._comboMenu["CW"].Cast <CheckBox>().CurrentValue;
            var nSoldiersToQ = Menu._comboMenu["SoldiersToQ"].Cast <Slider>().CurrentValue;

            base.Combo(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (target.Distance(azir.Hero.ServerPosition) < 450)
            {
                if (target.isRunningOfYou())
                {
                    var pos = LeagueSharp.Common.Prediction.GetPrediction(target, 0.5f).UnitPosition;
                    azir.Spells.W.Cast(pos);
                }
                else
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.VeryHigh)
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(pred.CastPosition);
                        }
                    }
                }
            }
            else
            {
                if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                {
                    if (useW)
                    {
                        if (target.Distance(HeroManager.Player) <= 750)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                        }
                    }
                }
            }
            //Q

            if (azir.Spells.Q.IsReady() && azir.soldierManager.Soldiers.Count > 0 && azir.soldierManager.SoldiersAttackingn(azir) >= nSoldiersToQ)
            {
                StaticSpells.CastQ(azir, target, useQ, nSoldiersToQ);
            }
            if (azir.Spells.Q.IsKillable(target) && useQ)
            {
                if (target.Health < azir.Spells.Q.GetDamage(target))
                {
                    var pred = azir.Spells.Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        //       Game.PrintChat("Killeable with q");
                        azir.Spells.Q.Cast(pred.CastPosition);
                    }
                }
            }
            else if (azir.Spells.R.IsKillable(target))
            {
                if (Menu._comboMenu["CR"].Cast <CheckBox>().CurrentValue)
                {
                    if (target.Health < azir.Spells.R.GetDamage(target))
                    {
                        var pred = azir.Spells.R.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            azir.Spells.R.Cast(pred.CastPosition);
                        }
                    }
                    //      azir.Spells.R.Cast(target);
                }
            }
        }