//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)); } }
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; } } }
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(); } }