private static void OnLoad(EventArgs args) { if (Player.Instance.ChampionName != "Fiora") { return; } Chat.Print("<font color='#0040FF'>T7</font><font color='#FF0505'> Fiora</font> : Loaded!(v" + Version + ")"); Chat.Print("<font color='#04B404'>By </font><font color='#FF0000'>T</font><font color='#FA5858'>o</font><font color='#FF0000'>y</font><font color='#FA5858'>o</font><font color='#FF0000'>t</font><font color='#FA5858'>a</font><font color='#0040FF'>7</font><font color='#FF0000'> <3 </font>"); Drawing.OnDraw += OnDraw; Obj_AI_Base.OnLevelUp += OnLvlUp; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; // Orbwalker.OnPostAttack += OnPostAttack; DatMenu(); Game.OnTick += OnTick; tiamat = new Item((int)ItemId.Tiamat_Melee_Only, 400); rhydra = new Item((int)ItemId.Ravenous_Hydra_Melee_Only, 400); thydra = new Item((int)ItemId.Titanic_Hydra); cutl = new Item((int)ItemId.Bilgewater_Cutlass, 550); blade = new Item((int)ItemId.Blade_of_the_Ruined_King, 550); yomus = new Item((int)ItemId.Youmuus_Ghostblade); potion = new Item((int)ItemId.Health_Potion); biscuit = new Item((int)ItemId.Total_Biscuit_of_Rejuvenation); ignt = new Spell.Targeted(myhero.GetSpellSlotFromName("summonerdot"), 600); Player.LevelSpell(SpellSlot.Q); SpellBlock.Initialize(); }
private static void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { var unit = sender as AIHeroClient; /* * Credits => JokerArt */ if (unit == null || !unit.IsValid) { return; } if (unit.IsMe && args.Slot.Equals(SpellSlot.E)) { Orbwalker.ResetAutoAttack(); return; } if (!unit.IsEnemy || !check(blocking, "BLOCK") || !DemSpells.W.IsReady()) { return; } if (Evade.SpellDatabase.GetByName(args.SData.Name) != null && !check(blocking, "evade")) { return; } if (!SpellBlock.Contains(unit, args)) { return; } if (args.End.Distance(Player.Instance) == 0) { return; } if (check(blocking, "RANGE") && unit.Distance(myhero.Position) > DemSpells.W.Range) { return; } var castUnit = unit; var type = args.SData.TargettingType; if (!unit.IsValidTarget()) { var target = TargetSelector.GetTarget(DemSpells.W.Range, DamageType.Mixed); if (target == null || !target.IsValidTarget(DemSpells.W.Range)) { target = TargetSelector.SelectedTarget; } if (target != null && target.IsValidTarget(DemSpells.W.Range)) { castUnit = target; } } if (unit.ChampionName.Equals("Caitlyn") && args.Slot == SpellSlot.Q) { Core.DelayAction(() => CastW(castUnit), ((int)(args.Start.Distance(Player.Instance) / args.SData.MissileSpeed * 1000) - (int)(args.End.Distance(Player.Instance) / args.SData.MissileSpeed) - 500) + 250); } if (unit.ChampionName.Equals("Cassiopeia")) { switch (args.Slot) { case SpellSlot.Q: if (Prediction.Position.PredictUnitPosition(myhero, 400).Distance(args.Target.Position) <= 75) { Core.DelayAction(() => CastW(castUnit), 300); } break; case SpellSlot.E: if (args.Target.IsMe) { Core.DelayAction(() => CastW(castUnit), ((int)(args.Start.Distance(Player.Instance) / args.SData.MissileSpeed * 1000) - (int)(args.End.Distance(Player.Instance) / args.SData.MissileSpeed) - 500)); } break; case SpellSlot.R: if (Prediction.Position.PredictUnitPosition(myhero, 500).Distance(args.Target.Position) <= 875 && PassiveManager.AngleBetween(myhero.Position.To2D(), unit.Position.To2D(), unit.Direction.To2D()) <= 85) { Core.DelayAction(() => CastW(castUnit), 400); } break; } } if (unit.ChampionName.Equals("Blitzcrank") && args.Slot == SpellSlot.R && unit.Distance(myhero.Position) < 600) { CastW(castUnit); } if (unit.ChampionName.Equals("Pantheon") && args.Slot == SpellSlot.W && args.Target.IsMe) { Core.DelayAction(() => CastW(castUnit), 50); } if (unit.ChampionName.Equals("Darius") && args.Slot == SpellSlot.Q && unit.Distance(myhero.Position) < 420) { Core.DelayAction(() => CastW(castUnit), 700); } if (unit.ChampionName.Equals("Jax") && args.Slot == SpellSlot.E && unit.Distance(myhero.Position) < 187.5f && Prediction.Position.PredictUnitPosition(myhero, 1000).Distance(unit.ServerPosition) < 187.5f) { Core.DelayAction(() => CastW(castUnit), 1100); } if (unit.ChampionName.Equals("Malphite") && args.Slot == SpellSlot.R && myhero.Position.Distance(args.End) < 300) { Core.DelayAction(() => CastW(castUnit), ((int)(args.Start.Distance(Player.Instance) / 700 * 1000) - (int)(args.End.Distance(Player.Instance) / 700) - 500) + 100); } if (unit.ChampionName.Equals("Morgana") && args.Slot == SpellSlot.R && unit.Distance(myhero.Position) < 1050 && Prediction.Position.PredictUnitPosition(myhero, 1000).Distance(unit.ServerPosition) < 1050) { Core.DelayAction(() => CastW(castUnit), 3000); } if (unit.ChampionName.Equals("KogMaw") && args.Slot == SpellSlot.R && myhero.Position.Distance(args.End) < 240) { Core.DelayAction(() => CastW(castUnit), 1200); } if (unit.ChampionName.Equals("Taric") && args.Slot == SpellSlot.E && Prediction.Position.PredictUnitPosition(myhero, 1000).Distance(unit.ServerPosition) < 575) { var loc = new EloBuddy.SDK.Geometry.Polygon.Rectangle(args.Start, args.End, 140); if (loc.IsInside(Prediction.Position.PredictUnitPosition(myhero, 1000)) || loc.Points.Where(x => x.Distance(Prediction.Position.PredictUnitPosition(myhero, 1000)) < myhero.BoundingRadius).Any()) { Core.DelayAction(() => CastW(castUnit), 900); } } if (unit.ChampionName.Equals("Ziggs") && args.Slot == SpellSlot.R && myhero.Position.Distance(args.End) < 550) { Core.DelayAction(() => CastW(castUnit), ((int)(args.Start.Distance(Player.Instance) / 2800 * 1000) - (int)(args.End.Distance(Player.Instance) / 2800) - 500) + 900); } if (unit.ChampionName.Equals("Karthus") && (args.Slot == SpellSlot.R || args.Slot == SpellSlot.Q)) { switch (args.Slot) { case SpellSlot.R: Core.DelayAction(() => CastW(castUnit), 2900); break; case SpellSlot.Q: if (Prediction.Position.PredictUnitPosition(myhero, 450).Distance(args.Target.Position) < 100) { Core.DelayAction(() => CastW(castUnit), 450); } break; } } if (unit.ChampionName.Equals("Shen") && args.Slot == SpellSlot.E && args.End.Distance(myhero.Position) < 100) { Core.DelayAction(() => CastW(castUnit), ((int)(args.Start.Distance(Player.Instance) / 1600 * 1000) - (int)(args.End.Distance(Player.Instance) / 1600) - 500) + 250); } if (unit.ChampionName.Equals("Zyra")) { Core.DelayAction(() => CastW(castUnit), (int)(args.Start.Distance(Player.Instance) / args.SData.MissileSpeed * 1000) - (int)(args.End.Distance(Player.Instance) / args.SData.MissileSpeed) - 500); } if (unit.ChampionName.Equals("Amumu") && args.Slot == SpellSlot.R && unit.Distance(myhero.Position) <= 550) { CastW(castUnit); } if (args.End.Distance(Player.Instance) < 250) { if (unit.ChampionName.Equals("Bard") && args.End.Distance(Player.Instance) < 300) { Core.DelayAction(() => CastW(castUnit), (int)(unit.Distance(Player.Instance) / 7f) + 400); } else if (unit.ChampionName.Equals("Ashe")) { Core.DelayAction(() => CastW(castUnit), (int)(args.Start.Distance(Player.Instance) / args.SData.MissileSpeed * 1000) - (int)args.End.Distance(Player.Instance)); return; } else if (unit.ChampionName.Equals("Varus") || unit.ChampionName.Equals("TahmKench") || unit.ChampionName.Equals("Lux")) { if (unit.ChampionName.Equals("Lux") && args.Slot == SpellSlot.R) { Core.DelayAction(() => CastW(castUnit), 400); } Core.DelayAction(() => CastW(castUnit), (int)(args.Start.Distance(Player.Instance) / args.SData.MissileSpeed * 1000) - (int)(args.End.Distance(Player.Instance) / args.SData.MissileSpeed) - 500); } else if (unit.ChampionName.Equals("Amumu")) { if (sender.Distance(Player.Instance) < 1100) { Core.DelayAction(() => CastW(castUnit), (int)(args.Start.Distance(Player.Instance) / args.SData.MissileSpeed * 1000) - (int)(args.End.Distance(Player.Instance) / args.SData.MissileSpeed) - 500); } } } if (args.Target != null && type.Equals(SpellDataTargetType.Unit)) { if (!args.Target.IsMe || (args.Target.Name.Equals("Barrel") && args.Target.Distance(Player.Instance) > 200 && args.Target.Distance(Player.Instance) < 400)) { return; } if (unit.ChampionName.Equals("Nautilus") || (unit.ChampionName.Equals("Caitlyn") && args.Slot.Equals(SpellSlot.R))) { var d = unit.Distance(Player.Instance); var travelTime = d / 3200; var delay = Math.Floor(travelTime * 1000) + 900; Console.WriteLine("TT: " + travelTime + " Delay: " + delay); Core.DelayAction(() => CastW(castUnit), (int)delay); return; } CastW(castUnit); } if (type.Equals(SpellDataTargetType.Unit)) { if (unit.ChampionName.Equals("Bard") && args.End.Distance(Player.Instance) < 300) { Core.DelayAction(() => CastW(castUnit), 400 + (int)(unit.Distance(Player.Instance) / 7f)); } else if (unit.ChampionName.Equals("Riven") && args.End.Distance(Player.Instance) < 260) { CastW(castUnit); } else { CastW(castUnit); } } else if (type.Equals(SpellDataTargetType.LocationAoe) && args.End.Distance(Player.Instance) < args.SData.CastRadius) { if (unit.ChampionName.Equals("Annie") && args.Slot.Equals(SpellSlot.R)) { return; } CastW(castUnit); } else if (type.Equals(SpellDataTargetType.Cone) && args.End.Distance(Player.Instance) < args.SData.CastRadius) { CastW(castUnit); } else if (type.Equals(SpellDataTargetType.SelfAoe) || type.Equals(SpellDataTargetType.Self)) { var d = args.End.Distance(Player.Instance.ServerPosition); var p = args.SData.CastRadius > 5000 ? args.SData.CastRange : args.SData.CastRadius; if (d < p) { CastW(castUnit); } } }