Exemple #1
0
        internal static void Combo()
        {
            var target = TargetSelector.GetTarget(1000, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }
            if (target.HealthPercent < Trynda.Player.HealthPercent + 50 && MyMenu.IsChecked("Combo.E"))
            {
                var minions     = ObjectManager.Get <Obj_AI_Base>().Where(m => m.Distance(target) < 400 && m.ObjectType == HesaEngine.SDK.Enums.GameObjectType.obj_AI_Minion).ToList();
                var eMinionPred = MySpells.E.GetLineFarmLocation(minions);
                if (!target.IsUnderEnemyTurret() && MySpells.E.IsReady())
                {
                    if (eMinionPred.MinionsHit > 3 && Trynda.Player.ManaPercent < 90)
                    {
                        MySpells.E.Cast(eMinionPred.Position);
                    }
                    else if (Calc.isFleeing(target) && Calc.NearestEnemyTurret(target).Distance(target) > 1000 && Trynda.Player.HealthPercent > target.HealthPercent)
                    {
                        if (target.Path[1].Distance(target) > 500)
                        {
                            MySpells.E.Cast(target.Path[1]);
                        }
                        else
                        {
                            MySpells.E.Cast((target.Path[1] - target.Position) / target.Path[1].Distance(target) * 500 + target.Position);
                        }
                    }
                    else if (Trynda.Player.ManaPercent < 40 && Trynda.Player.Distance(target) < 200 && Trynda.justAttacked)
                    {
                        MySpells.E.Cast(MySpells.Epos(target));
                    }
                }
                else if (Trynda.Player.IsUnderEnemyTurret() && Trynda.Player.TotalShieldHealth < target.Health)
                {
                    //                  Chat.Print("Cas s'enfuir de tour !");
                    MySpells.E.Cast(Calc.NearestEnemyTurret().Position - Trynda.Player.Position);
                }
            }
            if ((target.Distance(Trynda.Player) < 300 || (!target.IsFacing(Trynda.Player) || Calc.isFleeing(target))) && MyMenu.IsChecked("Combo.W"))
            {
                MySpells.W.Cast();
            }

            if (Trynda.Player.HealthPercent < 2 && Trynda.Player.CountEnemiesInRange(750) > 1 && target.IsFacing(Trynda.Player) && MyMenu.IsChecked("Perma.R"))
            {
                MySpells.R.Cast();
            }
        }
Exemple #2
0
        internal static void Init()
        {
            MySpells.Init();
            MyMenu.Init();


            Game.OnTick += Game_OnTick;
            Orbwalker.OnNonKillableMinion   += Orbwalker_OnNonKillableMinion;
            AIHeroClient.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast;
            Obj_AI_Base.OnBasicAttack       += Obj_AI_Base_OnBasicAttack;

            Drawing.OnDraw += Drawing_OnDraw;
            Chat.Print("Azeryo'Trynda Loaded !");
            Chat.Print("Please note that auto Q and R are brocken until some core function get patched");
        }