public static void OnProcessSpell(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs arg) { if (!sender.IsMe) { return; } // Game.PrintChat(arg.SData.Name); if (Config.Item("forceQE").GetValue <bool>() && sender.IsMe && arg.SData.Name.Contains("RivenFeint") && Riven.Q.IsReady() && LXOrbwalker.GetPossibleTarget() != null) { Console.WriteLine("force q"); Riven.Q.Cast(LXOrbwalker.GetPossibleTarget().Position); Riven.forceQ = true; // Riven.timer = new System.Threading.Timer(obj => { Riven.Player.IssueOrder(GameObjectOrder.MoveTo, Riven.difPos()); }, null, (long)100, System.Threading.Timeout.Infinite); } if (arg.SData.Name.Contains("RivenFeint") || arg.SData.Name.Contains("TriCleave") || arg.SData.Name.Contains("RivenFMartyr")) { Utility.DelayAction.Add(Game.Ping + LXOrbwalker.GetCurrentWindupTime() + 50, delegate { Riven.cancelAnim(true); }); } if (arg.SData.Name.Contains("RivenFeint") && Riven.R.IsReady() && Config.Item("useR").GetValue <bool>()) { Utility.DelayAction.Add(Game.Ping + 50, delegate { Riven.useRSmart(LXOrbwalker.GetPossibleTarget()); }); } }
/// <summary> /// Called when a spell cast is processed by the client. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="LeagueSharp.GameObjectProcessSpellCastEventArgs"/> instance containing the event data.</param> internal static void OnProcessSpellCast(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs args) { if (sender.IsValid && sender.Team != ObjectManager.Player.Team && args.SData.Name == "YasuoWMovingWall") { _wallCastT = Utils.TickCount; _yasuoWallCastedPos = sender.ServerPosition.To2D(); } }
static void OnSpellCast(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs args) { if (args.SData.Name != "NocturneParanoia2" || !menu.Item("noct").GetValue <bool>()) { return; } Packet.S2C.Ping.Encoded(new Packet.S2C.Ping.Struct(args.Target.Position.X, args.Target.Position.Y, 0, 0, Packet.PingType.Danger)).Process(); }
static void OnCast(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs args) { if (!sender.IsMe) { return; } //Console.WriteLine(args.SData.Name + " was sent on " + args.Target.Name+" in "+Game.Time); }
public static void OnProcessSpell(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs arg) { if (Config.Item("forceQE").GetValue <bool>() && sender.IsMe && arg.SData.Name.Contains("RivenFeint") && Riven.Q.IsReady() && LXOrbwalker.GetPossibleTarget() != null) { Console.WriteLine("force q"); Riven.Q.Cast(LXOrbwalker.GetPossibleTarget().Position); Riven.forceQ = true; // Riven.timer = new System.Threading.Timer(obj => { Riven.Player.IssueOrder(GameObjectOrder.MoveTo, Riven.difPos()); }, null, (long)100, System.Threading.Timeout.Infinite); } }
public static void OnProcessSpell(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs arg) { // if (sender.Name.Contains("missile") || sender.Name.Contains("Minion")) // return; //Console.WriteLine("Spell: "+sender.Name + " - " + arg.SData.SpellCastTime); if (arg.SData.Name.Contains("RivenBasic")) { // Riven.timer = new System.Threading.Timer(obj => { Riven.Player.IssueOrder(GameObjectOrder.MoveTo, Riven.difPos()); }, null, (long)100, System.Threading.Timeout.Infinite); } //Console.WriteLine(sender.Name + " - " + objis.SkinName); }
public static void OnProcessSpell(LeagueSharp.Obj_AI_Base obj, LeagueSharp.GameObjectProcessSpellCastEventArgs arg) { if (testSpells.ToList().Contains(arg.SData.Name)) { LeeSin.testSpellCast = arg.End.To2D(); Polygon pol; if ((pol = map.getInWhichPolygon(arg.End.To2D())) != null) { LeeSin.testSpellProj = pol.getProjOnPolygon(arg.End.To2D()); } } }
//TODO: Remove static void OnCast(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs args) { if (!sender.IsEnemy) { return; } if (args.SData.Name == "TrinketTotemLvl3B" || args.SData.Name == "VisionWard" && menu.SubMenu("misc").Item("antipink").GetValue <bool>()) { if (args.End.Distance(player.Position) < 1200) { Utility.DelayAction.Add(200, () => AntiPink(args.End)); } } }
public static void OnLevelUp(LeagueSharp.Obj_AI_Base sender, LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args) { if (sender.NetworkId == Yasuo.Player.NetworkId) { if (!Config.Item("autoLevel").GetValue <bool>()) { return; } if (Config.Item("levUpSeq").GetValue <StringList>().SelectedIndex == 0) { Yasuo.sBook.LevelUpSpell(Yasuo.levelUpSeq[args.NewLevel - 1].Slot); } else if (Config.Item("levUpSeq").GetValue <StringList>().SelectedIndex == 1) { Yasuo.sBook.LevelUpSpell(Yasuo.levelUpSeq2[args.NewLevel - 1].Slot); } } }
public static void Unit_OnLevelUp(LeagueSharp.Obj_AI_Base sender, LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args) { if (sender.IsMe) { if (!_config.Item("AutoLevel").GetValue <bool>()) { return; } if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 0) { _player.Spellbook.LevelUpSpell(Tiger[args.NewLevel - 1].Slot); } else if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 1) { _player.Spellbook.LevelUpSpell(Phoenix[args.NewLevel - 1].Slot); } } }
private static void OnLevelUp(LeagueSharp.Obj_AI_Base sender, LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args) { if (!sender.IsValid || !sender.IsMe) { return; } if (!_config.Item("AutoLevel").GetValue <bool>()) { return; } if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 0) { _player.Spellbook.LevelUpSpell((SpellSlot)tristap[args.NewLevel - 1]); } else if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 1) { _player.Spellbook.LevelUpSpell((SpellSlot)tristad[args.NewLevel - 1]); } }
public static void OnProcessSpell(LeagueSharp.Obj_AI_Base obj, LeagueSharp.GameObjectProcessSpellCastEventArgs arg) { }
public static void OnProcessSpell(LeagueSharp.Obj_AI_Base obj, LeagueSharp.GameObjectProcessSpellCastEventArgs arg) { // if (obj.Name.Contains("Turret") || obj.Name.Contains("Minion")) // return; // Console.WriteLine(obj.BasicAttack.Name+" -:- "+obj.SkinName); }
public override bool ShouldBeDead(LeagueSharp.Obj_AI_Base target, float additionalSpellDamage = 0f) { return(base.ShouldBeDead(target, TwitchE.GetRemainingPoisonDamageMinusRegeneration(target))); }