public void LoadOKTW() { Q = new LeagueSharp.Common.Spell(SpellSlot.Q); E = new LeagueSharp.Common.Spell(SpellSlot.E); W = new LeagueSharp.Common.Spell(SpellSlot.W); R = new LeagueSharp.Common.Spell(SpellSlot.R); Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWard", "Auto Ward").SetValue(true)); Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("autoBuy", "Auto buy blue trinket after lvl 9").SetValue(false)); Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWardBlue", "Auto Blue Trinket").SetValue(true)); Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWardCombo", "Only combo mode").SetValue(true)); Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWardPink", "Auto VisionWard, OracleLens").SetValue(true)); foreach (var hero in HeroManager.Enemies) { if (hero.ChampionName == "Rengar") { rengar = true; } if (hero.ChampionName == "Vayne") { Vayne = hero; } } Game.OnUpdate += Game_OnUpdate; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; GameObject.OnCreate += GameObject_OnCreate; GameObject.OnDelete += GameObject_OnDelete; }
/// <summary> /// Gets Prediction result /// </summary> /// <param name="target">Target</param> /// <returns>Prediction result as <see cref="Prediction.Result"/></returns> public static Prediction.Result GetSPrediction(this LeagueSharp.Common.Spell s, AIHeroClient target) { #region if common prediction selected if (ConfigMenu.SelectedPrediction.SelectedIndex == 1) { var pred = s.GetPrediction(target); var result = new Prediction.Result(new Prediction.Input(target, s), target, pred.CastPosition.To2D(), pred.UnitPosition.To2D(), pred.Hitchance, default(Collision.Result)); result.Lock(false); return(result); } #endregion switch (s.Type) { case SkillshotType.SkillshotLine: return(LinePrediction.GetPrediction(target, s.Width, s.Delay, s.Speed, s.Range, s.Collision, target.GetWaypointsLS(), target.AvgMovChangeTime(), target.LastMovChangeTime(), target.AvgPathLenght(), target.LastAngleDiff(), s.From.To2D(), s.RangeCheckFrom.To2D())); case SkillshotType.SkillshotCircle: return(CirclePrediction.GetPrediction(target, s.Width, s.Delay, s.Speed, s.Range, s.Collision, target.GetWaypointsLS(), target.AvgMovChangeTime(), target.LastMovChangeTime(), target.AvgPathLenght(), target.LastAngleDiff(), s.From.To2D(), s.RangeCheckFrom.To2D())); case SkillshotType.SkillshotCone: return(ConePrediction.GetPrediction(target, s.Width, s.Delay, s.Speed, s.Range, s.Collision, target.GetWaypointsLS(), target.AvgMovChangeTime(), target.LastMovChangeTime(), target.AvgPathLenght(), target.LastAngleDiff(), s.From.To2D(), s.RangeCheckFrom.To2D())); } throw new NotSupportedException("Unknown skill shot type"); }
private static void InitChoGath() { Q = new Spell(SpellSlot.Q, 950); Q.SetSkillshot(1.2f, 175f, float.MaxValue, false, SkillshotType.SkillshotCircle); W = new Spell(SpellSlot.W, 300); W.SetSkillshot(0.25f, 250f, float.MaxValue, false, SkillshotType.SkillshotCone); E = new Spell(SpellSlot.E, 500); E.SetSkillshot( E.Instance.SData.SpellCastTime, E.Instance.SData.LineWidth, E.Speed, false, SkillshotType.SkillshotLine); R = new Spell(SpellSlot.R, 175); RFlash = new Spell(SpellSlot.R, 555); }
public MissileReturn(string missile, string missileReturnName, LeagueSharp.Common.Spell qwer) { Config.SubMenu(Player.ChampionName).SubMenu(qwer.Slot + " Config").SubMenu("Auto AIM OKTW system").AddItem(new MenuItem("aim", "Auto aim returned missile", true).SetValue(true)); Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("drawHelper", "Show " + qwer.Slot + " helper", true).SetValue(true)); MissileName = missile; MissileReturnName = missileReturnName; QWER = qwer; GameObject.OnCreate += SpellMissile_OnCreateOld; GameObject.OnDelete += Obj_SpellMissile_OnDelete; Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnProcessSpellCast; Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Drawing_OnDraw; }
public OKTWdash(LeagueSharp.Common.Spell qwer) { DashSpell = qwer; Config.SubMenu(Player.ChampionName).SubMenu(qwer.Slot + " Config").AddItem(new MenuItem("DashMode", "Dash MODE", true).SetValue(new StringList(new[] { "Game Cursor", "Side", "Safe position" }, 2))); Config.SubMenu(Player.ChampionName).SubMenu(qwer.Slot + " Config").AddItem(new MenuItem("EnemyCheck", "Block dash in x enemies ", true).SetValue(new Slider(3, 5, 0))); Config.SubMenu(Player.ChampionName).SubMenu(qwer.Slot + " Config").AddItem(new MenuItem("WallCheck", "Block dash in wall", true).SetValue(true)); Config.SubMenu(Player.ChampionName).SubMenu(qwer.Slot + " Config").AddItem(new MenuItem("TurretCheck", "Block dash under turret", true).SetValue(true)); Config.SubMenu(Player.ChampionName).SubMenu(qwer.Slot + " Config").AddItem(new MenuItem("AAcheck", "Dash only in AA range", true).SetValue(true)); Config.SubMenu(Player.ChampionName).SubMenu(qwer.Slot + " Config").SubMenu("Gapcloser").AddItem(new MenuItem("GapcloserMode", "Gapcloser MODE", true).SetValue(new StringList(new[] { "Game Cursor", "Away - safe position", "Disable" }, 1))); foreach (var enemy in HeroManager.Enemies) { Config.SubMenu(Player.ChampionName).SubMenu(qwer.Slot + " Config").SubMenu("Gapcloser").AddItem(new MenuItem("EGCchampion" + enemy.ChampionName, enemy.ChampionName, true).SetValue(true)); } AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser; }
private static void CastSpell(LeagueSharp.Common.Spell qwer, Obj_AI_Base target) { var predInput2 = new SebbyLib.Prediction.PredictionInput { Speed = qwer.Speed, Delay = qwer.Delay, Range = qwer.Range, From = Player.ServerPosition, Radius = qwer.Width, Unit = target, Type = SebbyLib.Prediction.SkillshotType.SkillshotCircle }; var poutput2 = SebbyLib.Prediction.Prediction.GetPrediction(predInput2); if (poutput2.Hitchance >= SebbyLib.Prediction.HitChance.VeryHigh) { qwer.Cast(poutput2.CastPosition); } }