예제 #1
0
파일: Load.cs 프로젝트: Veids/AutoBuddy
        public void SetLane()
        {
            if (MainMenu.GetMenu("AB").Get <Slider>("lane").CurrentValue != 1)
            {
                switch (MainMenu.GetMenu("AB").Get <Slider>("lane").CurrentValue)
                {
                case 2:
                    ChangeLane(Lane.Top);
                    break;

                case 3:
                    ChangeLane(Lane.Mid);
                    break;

                case 4:
                    ChangeLane(Lane.Bot);
                    break;
                }
            }
            else if (ObjectManager.Get <Obj_AI_Turret>().Count() == 24)
            {
                waiting = true;
                Vector3 p = GetAllyTurret("R_03_A").Position;
                Core.DelayAction(() => SafeFunctions.Ping(PingCategory.OnMyWay, p.Randomized()), RandGen.r.Next(1500, 3000));
                AutoWalker.SetMode(Orbwalker.ActiveModes.Combo);
                AutoWalker.WalkTo(p.Extend(AutoWalker.MyNexus, 200 + RandGen.r.NextFloat(0, 100)).To3DWorld().Randomized());

                EarlySelectLane();
            }
            else
            {
                SelectMostPushedLane();
            }
        }
예제 #2
0
        public void Reset(Obj_AI_Base myTower, Obj_AI_Base enemyTower, Lane ln)
        {
            Vector3 pingPos = AutoWalker.P.Distance(AutoWalker.MyNexus) - 100 > myTower.Distance(AutoWalker.MyNexus)
                ? enemyTower.Position
                : myTower.Position;

            Core.DelayAction(() => SafeFunctions.Ping(PingCategory.OnMyWay, pingPos.Randomized()), RandGen.R.Next(3000));
            _lane         = ln;
            _currentWave  = new Obj_AI_Minion[0];
            MyTurret      = myTower;
            EnemyTurret   = enemyTower;
            _randomExtend = 0;
            _currentLogic.SetLogic(LogicSelector.MainLogics.PushLogic);
        }
예제 #3
0
        public void SetLane()
        {
            if (MainMenu.GetMenu("AB").Get <Slider>("lane").CurrentValue != 1)
            {
                switch (MainMenu.GetMenu("AB").Get <Slider>("lane").CurrentValue)
                {
                case 2:
                    SelectLane2(Lane.Top);
                    break;

                case 3:
                    SelectLane2(Lane.Mid);
                    break;

                case 4:
                    SelectLane2(Lane.Bot);
                    break;
                }
                return;
            }

            if (ObjectManager.Get <Obj_AI_Turret>().Count() == 24)
            {
                if (AutoWalker.p.Gold < 550 && MainMenu.GetMenu("AB").Get <CheckBox>("mid").CurrentValue)
                {
                    var p =
                        ObjectManager.Get <Obj_AI_Turret>()
                        .First(tur => tur.IsAlly && tur.Name.EndsWith("C_05_A"))
                        .Position;

                    Core.DelayAction(() => SafeFunctions.Ping(PingCategory.OnMyWay, p.Randomized()),
                                     RandGen.r.Next(1500, 3000));
                    Core.DelayAction(() => SafeFunctions.SayChat("mid"), RandGen.r.Next(200, 1000));
                    AutoWalker.SetMode(Orbwalker.ActiveModes.Combo);
                    AutoWalker.WalkTo(
                        p.Extend(AutoWalker.MyNexus, 200 + RandGen.r.NextFloat(0, 100)).To3DWorld().Randomized());
                }


                CanSelectLane();
            }
            else
            {
                SelectMostPushedLane();
            }
        }