//auto agree to surrender
 private void Game_OnNotify(GameNotifyEventArgs args)
 {
     if (args.EventId == GameEventId.OnSurrenderVote)
     {
         Core.DelayAction(() => SafeFunctions.SayChat("/ff"), RandGen.R.Next(2000, 5000));
     }
 }
Пример #2
0
        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();
            }
        }
Пример #3
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);
        }
Пример #4
0
        private void Game_OnNotify(GameNotifyEventArgs args)
        {
            if (args.EventId == GameEventId.OnSurrenderVote)
            {
                switch (MainMenu.GetMenu("AB").Get <Slider>("ff").CurrentValue)
                {
                case 1:
                    Core.DelayAction(() => SafeFunctions.SayChat("/ff"), RandGen.r.Next(2000, 5000));
                    break;

                case 2:
                    Core.DelayAction(() => SafeFunctions.SayChat("/noff"), RandGen.r.Next(2000, 5000));
                    break;
                }
            }
        }
Пример #5
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();
            }
        }