示例#1
0
        public static void Harass()
        {
            var _Target = TargetSelector.GetTarget(1500, DamageType.Magical);

            if (Orbwalker.IsAutoAttacking)
            {
                return;
            }

            if (_Target != null && _Target.IsValid)
            {
                if (Program.HarassMenu["hUseW"].Cast <CheckBox>().CurrentValue)
                {
                    Program._W.Cast(_Target);

                    if (Program.HarassMenu["hUseQ"].Cast <CheckBox>().CurrentValue&& !Orbwalker.IsAutoAttacking &&
                        Program._Q.IsReady() && Program._Q.IsInRange(_Target))
                    {
                        Program._Q.Cast(_Target);
                    }

                    if (Program.HarassMenu["hUseAA"].Cast <CheckBox>().CurrentValue)
                    {
                        if (_Target.IsInAutoAttackRange(Program._Player))
                        {
                            Player.IssueOrder(GameObjectOrder.AttackUnit, _Target);
                        }
                    }
                }
            }
        }
示例#2
0
        public static void Flee()
        {
            var _RTarget = TargetSelector.GetTarget(1500, DamageType.Magical);

            if (Program.FleeMenu["fUseWE"].Cast <CheckBox>().CurrentValue)
            {
                if (Program._W.IsReady())
                {
                    Program._W.Cast(Game.CursorPos);
                }
                if (Program.FleeMenu["fUseQ"].Cast <CheckBox>().CurrentValue)
                {
                    if (Program._Q.IsReady() && Orbwalker.ValidAzirSoldiers.Count > 0)
                    {
                        Program._Q.Cast(Game.CursorPos);
                    }
                }
                if (Program._E.IsReady())
                {
                    Program._E.Cast(Game.CursorPos);
                }
            }

            if (_RTarget != null && _RTarget.IsValid)
            {
                if (Program.FleeMenu["fUseR"].Cast <CheckBox>().CurrentValue)
                {
                    if (Program._Player.Health <= Program.FleeMenu["fUseRHealth"].Cast <Slider>().CurrentValue&&
                        Program._R.IsReady() && Program._R.IsInRange(_RTarget))
                    {
                        Program._R.Cast(_RTarget);
                    }
                }
            }
        }
示例#3
0
        public static void AutoIgnite()
        {
            if (Program._Ignite != null && Program._Ignite.IsReady())
            {
                var _IgniteTarget = TargetSelector.GetTarget(Program._Ignite.Range, DamageType.True);

                if (Program.Menu["mAutoIgnite"].Cast <CheckBox>().CurrentValue)
                {
                    if (_IgniteTarget != null && _IgniteTarget.IsValid)
                    {
                        if (Program._Ignite.IsInRange(_IgniteTarget))
                        {
                            if (_IgniteTarget.Health <
                                Damage.GetIgniteDamage(_IgniteTarget))
                            {
                                Program._Ignite.Cast(_IgniteTarget);
                            }
                        }
                    }
                }
            }
        }
示例#4
0
 /// <summary>
 /// Get target using target selector
 /// </summary>
 /// <returns></returns>
 public virtual AIHeroClient GetTarget()
 {
     return(TargetSelector.GetTarget(Range, DamageType));
 }
示例#5
0
        public static void Combo()
        {
            var Choice = 0;

            //Cast W = 1
            //Cast Q = 2
            //Cast E = 3
            //Cast R = 4
            //AA     = 5
            var _Target = TargetSelector.GetTarget(1500, DamageType.Magical);

            if (Program._Ignite != null && Program._Ignite.IsReady())
            {
                var _IgniteTarget = TargetSelector.GetTarget(Program._Ignite.Range, DamageType.True);

                if (_IgniteTarget != null && _IgniteTarget.IsValid)
                {
                    if (Program._Ignite.IsInRange(_Target))
                    {
                        if (_IgniteTarget.Health <
                            Damage.GetIgniteDamage(_Target))
                        {
                            Program._Ignite.Cast(_IgniteTarget);
                        }
                    }
                }
            }
            if (_Target != null && _Target.IsValid)
            {
                if (Program.ComboMenu["cUseW"].Cast <CheckBox>().CurrentValue&& Program._W.IsReady() &&
                    Program._W.IsInRange(_Target))
                {
                    Choice = 1;
                }
                if (Program.ComboMenu["cUseQ"].Cast <CheckBox>().CurrentValue&& Program._Q.IsReady() &&
                    Program._Q.IsInRange(_Target) && Orbwalker.ValidAzirSoldiers.Count > 0)
                {
                    Choice = 2;
                }
                if (Program.ComboMenu["cUseEGC"].Cast <CheckBox>().CurrentValue&& Program._E.IsReady() &&
                    !Program._Q.IsInRange(_Target))
                {
                    Choice = 3;
                }
                if (Program.ComboMenu["cUseE"].Cast <CheckBox>().CurrentValue&& Program._E.IsReady() &&
                    Program._E.IsInRange(_Target) && Orbwalker.ValidAzirSoldiers.Count > 0)
                {
                    Choice = 3;
                }
                if (Program.ComboMenu["cUseAA"].Cast <CheckBox>().CurrentValue&& Orbwalker.CanAutoAttack)
                {
                    Choice = 5;
                }
                if (Program.ComboMenu["cUseAA"].Cast <CheckBox>().CurrentValue&& Orbwalker.CanAutoAttack)
                {
                    Choice = 5;
                }
                //if (Program.ComboMenu["cUseE"].Cast<CheckBox>().CurrentValue && Program._E.IsReady() &&
                //    Program._E.IsInRange(_Target))
                //{
                //    Choice = 3;
                //}
                if (Program.ComboMenu["cUseAA"].Cast <CheckBox>().CurrentValue&& Orbwalker.CanAutoAttack)
                {
                    Choice = 5;
                }
                if (Program.ComboMenu["cUseAA"].Cast <CheckBox>().CurrentValue&& Orbwalker.CanAutoAttack)
                {
                    Choice = 5;
                }
                if (Program.ComboMenu["cUseR"].Cast <CheckBox>().CurrentValue&& Program._R.IsReady() &&
                    Program._R.IsInRange(_Target))
                {
                    Choice = 4;
                }

                switch (Choice)
                {
                case 1:
                {
                    if (!Orbwalker.IsAutoAttacking)
                    {
                        Program._W.Cast(_Target);
                    }
                    break;
                }

                case 2:
                {
                    if (!Orbwalker.IsAutoAttacking)
                    {
                        Program._Q.Cast(_Target);
                    }
                    break;
                }

                case 5:
                {
                    if (!Orbwalker.IsAutoAttacking && Orbwalker.ValidAzirSoldiers.Count > 0)
                    {
                        Orbwalker.ForcedTarget = _Target;
                    }
                    break;
                }

                case 3:
                {
                    if (!Orbwalker.IsAutoAttacking)
                    {
                        Program._E.Cast(_Target);
                    }
                    break;
                }

                case 4:
                {
                    if (!Orbwalker.IsAutoAttacking)
                    {
                        Program._R.Cast(_Target);
                    }
                    break;
                }
                }
            }
        }
示例#6
0
        public static void KillSteal()
        {
            var _Target = TargetSelector.GetTarget(1500, DamageType.Magical);

            if (_Target != null && _Target.IsValid)
            {
                if (Program.KSMenu["ksUseWQ"].Cast <CheckBox>().CurrentValue)
                {
                    if (_Target.Health < Damage.GetKSQDamage(_Target))
                    {
                        if (Program._W.IsReady() && Program._Q.IsReady())
                        {
                            Program._W.Cast(_Target);

                            if (Program._Q.IsInRange(_Target))
                            {
                                Program._Q.Cast(_Target);
                            }
                            else
                            {
                                if (Program.KSMenu["ksUseE"].Cast <CheckBox>().CurrentValue)
                                {
                                    foreach (var soldier in Orbwalker.ValidAzirSoldiers)
                                    {
                                        Program._E.Cast(soldier);
                                    }
                                    if (Program._Q.IsInRange(_Target))
                                    {
                                        Program._Q.Cast(_Target);
                                    }
                                }
                            }
                        }
                    }
                }

                if (Program.KSMenu["ksUseR"].Cast <CheckBox>().CurrentValue)
                {
                    if (_Target.Health < Damage.GetRDamage(_Target))
                    {
                        if (Program._R.IsReady())
                        {
                            if (Program._R.IsInRange(_Target))
                            {
                                Program._R.Cast(_Target);
                            }
                            else
                            {
                                if (Program.KSMenu["ksUseE"].Cast <CheckBox>().CurrentValue)
                                {
                                    foreach (var soldier in Orbwalker.ValidAzirSoldiers)
                                    {
                                        Program._E.Cast(soldier);
                                    }
                                    if (Program._R.IsInRange(_Target))
                                    {
                                        Program._R.Cast(_Target);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }