private void GameOnOnGameUpdate(EventArgs args) { try { if (ActiveMode == Orbwalking.OrbwalkingMode.None) { OrbDancer.MoveTo((_orbwalkingPoint.To2D().IsValid()) ? _orbwalkingPoint : Game.CursorPos, _config.Item("HoldPosRadius").GetValue <Slider>().Value); } } catch (Exception e) { Console.WriteLine(e); } /* * if (ActiveMode == Orbwalking.OrbwalkingMode.None) * { * return; * } * * //Prevent canceling important spells * if (Player.IsCastingInterruptableSpell(true)) * { * return; * } * * var target = GetTarget(); * Orbwalking.Orbwalk( * target, (_orbwalkingPoint.To2D().IsValid()) ? _orbwalkingPoint : Game.CursorPos, * _config.Item("ExtraWindup").GetValue<Slider>().Value, * _config.Item("HoldPosRadius").GetValue<Slider>().Value); * } * catch (Exception e) * { * Console.WriteLine(e); * }*/ }
static void MainMenu() { UrgotConfig = new Menu("Prince " + ObjectManager.Player.ChampionName, "Prince" + ObjectManager.Player.ChampionName, true); UrgotConfig.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); //Orbwalker = new Orbwalking.Orbwalker(UrgotConfig.SubMenu("Orbwalking")); Orbwalker = new OrbDancer(UrgotConfig.SubMenu("Orbwalking")); TargetSelectorMenu = new Menu("Target Selector", "Common_TargetSelector"); TargetSelector.AddToMenu(TargetSelectorMenu); UrgotConfig.AddSubMenu(TargetSelectorMenu); new ComboClass(UrgotConfig); new HarassClass(UrgotConfig); new LaneClearClass(UrgotConfig); new ItemClass(UrgotConfig); new DrawingClass(UrgotConfig); UrgotConfig.AddToMainMenu(); Orbwalker.setMode(Orbwalking.OrbwalkingMode.Combo); /*private static void BuffTest() * { * foreach (var turret in ObjectManager.Get<Obj_AI_Turret>().Where(t => t.IsVisible && !t.IsMe && (Player.Position.Distance(turret.Position) < 1500f))) * { * foreach (var bufflist in turret.Buffs) * { * * Drawing.DrawText(Drawing.WorldToScreen(turret.Position).X, Drawing.WorldToScreen(turret.Position).Y, Color.LimeGreen, string.Format("{0}", bufflist.Name)); * * } * * } * * }*/ }