Beispiel #1
0
 private static void OnNewPath(Obj_AI_Base sender, GameObjectNewPathEventArgs args)
 {
     if (sender.IsMe)
     {
         LXOrbwalker.ResetAutoAttackTimer();
     }
 }
Beispiel #2
0
        private static void AfterAttack(Obj_AI_Base unit, Obj_AI_Base target)
        {
            if (!unit.IsMe || target.IsMinion)
            {
                return;
            }

            if (IsTiamat() && (LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo || LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Harass) &&
                target.IsValidTarget(Tiamat.Range))
            {
                Tiamat.Cast();
                LXOrbwalker.ResetAutoAttackTimer();
            }

            if (IsHydra() && (LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo || LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Harass) && target.IsValidTarget(Hydra.Range))
            {
                Hydra.Cast();
                LXOrbwalker.ResetAutoAttackTimer();
            }

            if (IsWCombo() && LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo && LXOrbwalker.InAutoAttackRange(target))
            {
                W.Cast();
                Utility.DelayAction.Add(100, () => Player.IssueOrder(GameObjectOrder.AttackTo, target));
                LXOrbwalker.ResetAutoAttackTimer();
            }
        }
Beispiel #3
0
        private static void AfterAttack(Obj_AI_Base unit, Obj_AI_Base target)
        {
            if (unit.IsMe && IsTiamat() &&
                (LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo || LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Harass) &&
                target.IsValidTarget(Tiamat.Range))
            {
                Tiamat.Cast();
                LXOrbwalker.ResetAutoAttackTimer();
            }

            if (unit.IsMe && IsHydra() &&
                (LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo || LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Harass) &&
                target.IsValidTarget(Hydra.Range))
            {
                Hydra.Cast();
                LXOrbwalker.ResetAutoAttackTimer();
            }

            if (unit.IsMe && IsQCombo() &&
                LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo &&
                target.IsValidTarget(Q.Range))
            {
                Q.Cast();
                LXOrbwalker.ResetAutoAttackTimer();
            }

            if (unit.IsMe && IsQHarass() &&
                LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Harass &&
                target.IsValidTarget(Q.Range))
            {
                Q.Cast();
                LXOrbwalker.ResetAutoAttackTimer();
            }
        }
Beispiel #4
0
        public void Game_OnProcessSpell(Obj_AI_Base unit, GameObjectProcessSpellCastEventArgs spell)
        {
            if (!unit.IsMe)
            {
                return;
            }
            if (spell.SData.Name.Contains("summoner"))
            {
                return;
            }

            if (spell.SData.Name.Contains("Attack"))
            {
                Utility.DelayAction.Add(50, () =>
                {
                    DoubleHit = false;
                    Utility.DelayAction.ActionList.Clear();
                });
            }
            else if (spell.SData.Name.Contains("Lucian") && !spell.SData.Name.Contains("Attack"))
            {
                LXOrbwalker.ResetAutoAttackTimer();

                Utility.DelayAction.Add(6000, () =>
                {
                    if (DoubleHit)
                    {
                        DoubleHit = false;
                    }
                });

                DoubleHit = true;
            }
        }
Beispiel #5
0
        private static void OnAfterAttack(Obj_AI_Base unit, Obj_AI_Base target)
        {
            if (unit.IsMe)
            {
                var useQCombo  = menu.Item("UseQCombo").GetValue <bool>();
                var useQHarass = menu.Item("UseQHarass").GetValue <bool>();

                if (unit.IsMe)
                {
                    if (menu.Item("ComboActive").GetValue <KeyBind>().Active ||
                        menu.Item("HarassActive").GetValue <KeyBind>().Active ||
                        menu.Item("HarassActiveT").GetValue <KeyBind>().Active)
                    {
                        if (Q.IsReady())
                        {
                            if (useQCombo || useQHarass)
                            {
                                Q.Cast();
                                LXOrbwalker.ResetAutoAttackTimer();
                                LXOrbwalker.Orbwalk(Game.CursorPos, target);
                            }
                        }
                    }
                }
            }
        }
Beispiel #6
0
 static void AfterAttack(Obj_AI_Base unit, Obj_AI_Base target)
 {
     if (unit.IsMe && QSpell.IsReady() && LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo && Config.Item("UseQCombo").GetValue <bool>() && target.IsValidTarget(QSpell.Range))
     {
         LXOrbwalker.ResetAutoAttackTimer();
         QSpell.Cast();
     }
 }
Beispiel #7
0
        public static void cancelAnim(bool aaToo = false)
        {
            if (aaToo)
            {
                LXOrbwalker.ResetAutoAttackTimer();
            }
            if (LXOrbwalker.GetPossibleTarget() != null && !Riven.useHydra(LXOrbwalker.GetPossibleTarget()))
            {
                if (W.IsReady())
                {
                    Riven.useWSmart(LXOrbwalker.GetPossibleTarget());
                }
            }
            moveTo(Game.CursorPos);


            //  Packet.C2S.Cast.Encoded(new Packet.C2S.Cast.Struct(fill iterator up)).Send();
        }
Beispiel #8
0
        static void AfterAttack(Obj_AI_Base unit, Obj_AI_Base target)
        {
            if (!unit.IsMe)
            {
                return;
            }

            if (target.IsMinion)
            {
                if (Config.Item("UseWL").GetValue <bool>() && W.IsReady() && LXOrbwalker.InAutoAttackRange(target) && LXOrbwalker.CurrentMode == LXOrbwalker.Mode.LaneClear)
                {
                    W.Cast();
                    LXOrbwalker.ResetAutoAttackTimer();
                }
                return;
            }
            else
            {
                if (Config.Item("UseWC").GetValue <bool>() && W.IsReady() && LXOrbwalker.InAutoAttackRange(target) && LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo)
                {
                    W.Cast();
                    LXOrbwalker.ResetAutoAttackTimer();
                }
                if (Config.Item("UseItemC").GetValue <bool>() && LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo)
                {
                    if (Utility.CountEnemysInRange(350) >= 1 && tiamat.IsReady() && !W.IsReady())
                    {
                        tiamat.Cast();
                        LXOrbwalker.ResetAutoAttackTimer();
                    }
                    if (Utility.CountEnemysInRange(350) >= 1 && hydra.IsReady() && !W.IsReady())
                    {
                        hydra.Cast();
                        LXOrbwalker.ResetAutoAttackTimer();
                    }
                }

                return;
            }
        }
        private static void LxOrbwalkerOnAfterAttack(Obj_AI_Base unit, Obj_AI_Base target)
        {
            if (!unit.IsMe)
            {
                return;
            }
            if (!target.IsValidTarget() || target.IsMinion)
            {
                return;
            }

            if (Items.HasItem(HydraId) && Items.CanUseItem(HydraId))
            {
                Items.UseItem(TiamatId);
                LXOrbwalker.ResetAutoAttackTimer();
            }
            else if (Items.HasItem(TiamatId) && Items.CanUseItem(TiamatId))
            {
                Items.UseItem(TiamatId);
                LXOrbwalker.ResetAutoAttackTimer();
            }
        }
Beispiel #10
0
        public static void OnGameProcessPacket(GamePacketEventArgs args)
        {
            try
            {
                if (isComboing())
                {
                    if (args.PacketData[0] == 35 && Riven.Q.IsReady())
                    {
                        Console.WriteLine("Gott");
                        GamePacket gp = new GamePacket(args.PacketData);
                        gp.Position = 2;
                        int netId = gp.ReadInteger();
                        if (LXOrbwalker.GetPossibleTarget() == null || LXOrbwalker.GetPossibleTarget().NetworkId != netId)
                        {
                            return;
                        }
                        if (!LXOrbwalker.CanAttack())
                        {
                            Riven.Q.Cast(LXOrbwalker.GetPossibleTarget().Position);
                        }
                    }

                    if (args.PacketData[0] == 0x17)
                    {
                        Console.WriteLine("cancel");

                        GamePacket packet = new GamePacket(args.PacketData);
                        packet.Position = 2;
                        int sourceId = packet.ReadInteger();
                        if (sourceId == Riven.Player.NetworkId)
                        {
                            Console.WriteLine("cancel wawf");
                            Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(Game.CursorPos.X, Game.CursorPos.Y)).Send();
                            if (LXOrbwalker.GetPossibleTarget() != null)
                            {
                                Riven.moveTo(LXOrbwalker.GetPossibleTarget().Position);
                                //Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(LXOrbwalker.GetPossibleTarget().Position.X, LXOrbwalker.GetPossibleTarget().Position.Y)).Send();

                                // LXOrbwalker.ResetAutoAttackTimer();
                                Riven.cancelAnim(true);
                            }
                        }
                    }

                    if (args.PacketData[0] == 0xDF && false)
                    {
                        Console.WriteLine("cancel");

                        GamePacket packet = new GamePacket(args.PacketData);
                        packet.Position = 2;
                        int sourceId = packet.ReadInteger();
                        if (sourceId == Riven.Player.NetworkId)
                        {
                            Console.WriteLine("cancel wawf");
                            Riven.moveTo(Game.CursorPos);
                            Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(Game.CursorPos.X, Game.CursorPos.Y)).Send();
                            LXOrbwalker.ResetAutoAttackTimer();
                            Riven.cancelAnim();
                        }
                    }

                    if (args.PacketData[0] == 0x61) //move
                    {
                        GamePacket packet = new GamePacket(args.PacketData);
                        packet.Position = 12;
                        int sourceId = packet.ReadInteger();
                        if (sourceId == Riven.Player.NetworkId)
                        {
                            if (LXOrbwalker.GetPossibleTarget() != null)
                            {
                                //    Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(LXOrbwalker.GetPossibleTarget().Position.X, LXOrbwalker.GetPossibleTarget().Position.Y)).Send();
                                LXOrbwalker.ResetAutoAttackTimer();
                            }
                        }
                    }
                    else if (args.PacketData[0] == 0x38) //animation2
                    {
                        GamePacket packet = new GamePacket(args.PacketData);
                        packet.Position = 1;
                        int sourceId = packet.ReadInteger();
                        if (packet.Size() == 9 && sourceId == Riven.Player.NetworkId)
                        {
                            Riven.moveTo(Game.CursorPos);
                            Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(Game.CursorPos.X, Game.CursorPos.Y)).Send();
                            LXOrbwalker.ResetAutoAttackTimer();
                            Riven.cancelAnim();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Beispiel #11
0
        public static void OnGameProcessPacket(GamePacketEventArgs args)
        {
            try
            {
                if (isComboing())
                {
                    if (args.PacketData[0] == 0x65 && Riven.Q.IsReady())
                    {
                        Packet.S2C.Damage.Struct dmg = Packet.S2C.Damage.Decoded(args.PacketData);

                        // LogPacket(args);
                        GamePacket gp = new GamePacket(args.PacketData);
                        gp.Position = 1;

                        int   targetID            = gp.ReadInteger();
                        int   dType               = (int)gp.ReadByte();
                        int   Unknown             = gp.ReadShort();
                        float DamageAmount        = gp.ReadFloat();
                        int   TargetNetworkIdCopy = gp.ReadInteger();
                        int   SourceNetworkId     = gp.ReadInteger();
                        if (Riven.Player.NetworkId != dmg.SourceNetworkId)
                        {
                            return;
                        }
                        Obj_AI_Base targ = ObjectManager.GetUnitByNetworkId <Obj_AI_Base>(dmg.TargetNetworkId);
                        if ((int)dmg.Type == 12 || (int)dmg.Type == 4 || (int)dmg.Type == 3 || (int)dmg.Type == 36 || (int)dmg.Type == 11)
                        {
                            Riven.Q.Cast(targ.Position);
                        }
                        else
                        {
                            Console.WriteLine("dtyoe: " + dType);
                        }
                    }
                    if (args.PacketData[0] == 0x34)// from yol0 :)
                    {
                        GamePacket packet = new GamePacket(args.PacketData);
                        packet.Position = 9;
                        int action = packet.ReadByte();
                        packet.Position = 1;
                        int sourceId = packet.ReadInteger();
                        if (action == 17 && sourceId == Riven.Player.NetworkId)
                        {
                            Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(Game.CursorPos.X, Game.CursorPos.Y)).Send();
                            if (LXOrbwalker.GetPossibleTarget() != null)
                            {
                                Riven.moveTo(LXOrbwalker.GetPossibleTarget().Position);
                                //Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(LXOrbwalker.GetPossibleTarget().Position.X, LXOrbwalker.GetPossibleTarget().Position.Y)).Send();

                                // LXOrbwalker.ResetAutoAttackTimer();
                                Riven.cancelAnim(true);
                            }
                        }
                    }
                    else if (args.PacketData[0] == 0x61) //move
                    {
                        GamePacket packet = new GamePacket(args.PacketData);
                        packet.Position = 12;
                        int sourceId = packet.ReadInteger();
                        if (sourceId == Riven.Player.NetworkId)
                        {
                            if (LXOrbwalker.GetPossibleTarget() != null)
                            {
                                //    Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(LXOrbwalker.GetPossibleTarget().Position.X, LXOrbwalker.GetPossibleTarget().Position.Y)).Send();
                                LXOrbwalker.ResetAutoAttackTimer();
                            }
                        }
                    }
                    else if (args.PacketData[0] == 0x38) //animation2
                    {
                        GamePacket packet = new GamePacket(args.PacketData);
                        packet.Position = 1;
                        int sourceId = packet.ReadInteger();
                        if (packet.Size() == 9 && sourceId == Riven.Player.NetworkId)
                        {
                            Riven.moveTo(Game.CursorPos);
                            Packet.C2S.Move.Encoded(new Packet.C2S.Move.Struct(Game.CursorPos.X, Game.CursorPos.Y)).Send();
                            LXOrbwalker.ResetAutoAttackTimer();
                            Riven.cancelAnim();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }