예제 #1
0
        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()); });
            }
        }
예제 #2
0
 /// <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();
     }
 }
예제 #3
0
 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();
 }
예제 #4
0
 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);
 }
예제 #5
0
 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);
     }
 }
예제 #6
0
 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);
 }
예제 #7
0
 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());
         }
     }
 }
예제 #8
0
 //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));
         }
     }
 }
예제 #9
0
파일: TalonSharp.cs 프로젝트: betw01/detu
 public static void OnProcessSpell(LeagueSharp.Obj_AI_Base obj, LeagueSharp.GameObjectProcessSpellCastEventArgs arg)
 {
 }
예제 #10
0
 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);
 }