示例#1
0
        private static void ComboAfterAttackEvent(AttackableUnit orbTarget)
        {
            try
            {
                Obj_AI_Hero target = null;

                if (myTarget.IsValidTarget(600))
                {
                    target = myTarget;
                }
                else if (orbTarget is Obj_AI_Hero)
                {
                    target = (Obj_AI_Hero)orbTarget;
                }

                if (target != null && target.IsValidTarget(400))
                {
                    if (Q.Ready && target.IsValidTarget(400))
                    {
                        MyExtraManager.CastQ(target);
                        return;
                    }

                    if (ComboMenu["FlowersRiven.ComboMenu.RMode"].As <MenuList>().Value != 3 &&
                        R.Ready && isRActive && qStack == 2 && Q.Ready &&
                        ComboMenu["FlowersRiven.ComboMenu.RMode"].As <MenuList>().Value != 1 &&
                        MyExtraManager.R2Logic(target))
                    {
                        return;
                    }

                    if (ComboMenu["FlowersRiven.ComboMenu.WCancel"].Enabled && W.Ready &&
                        target.IsValidTarget(W.Range) && !target.HaveShiled())
                    {
                        W.Cast();
                        return;
                    }

                    if (!Q.Ready && !W.Ready && E.Ready && target.IsValidTarget(400))
                    {
                        E.Cast(target.ServerPosition);
                        return;
                    }

                    if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&&
                        R.Ready && !isRActive &&
                        ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled)
                    {
                        MyExtraManager.R1Logic(target);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.ComboAfterAttackEvent." + ex);
            }
        }
示例#2
0
        private static void HarassAfterAttackEvent(AttackableUnit orbTarget)
        {
            try
            {
                Obj_AI_Hero target = null;

                if (myTarget.IsValidTarget())
                {
                    target = myTarget;
                }
                else if (orbTarget is Obj_AI_Hero)
                {
                    target = (Obj_AI_Hero)orbTarget;
                }

                if (target == null || !target.IsValidTarget())
                {
                    return;
                }

                if (HarassMenu["FlowersRiven.HarassMenu.Mode"].As <MenuList>().Value == 0)
                {
                    if (qStack == 1)
                    {
                        MyExtraManager.CastQ(target);
                    }
                }
                else
                {
                    if (HarassMenu["FlowersRiven.HarassMenu.Q"].Enabled && Q.Ready)
                    {
                        MyExtraManager.CastQ(target);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.HarassAfterAttackEvent." + ex);
            }
        }
示例#3
0
        private static void BurstAfterAttackEvent()
        {
            try
            {
                var target = TargetSelector.GetSelectedTarget();

                if (target == null || !target.IsValidTarget())
                {
                    return;
                }

                UseItem();

                if (R.Ready && isRActive)
                {
                    R.Cast(target.ServerPosition);
                    return;
                }

                if (Q.Ready && MyExtraManager.CastQ(target))
                {
                    return;
                }

                if (W.Ready && target.IsValidTarget(W.Range) && W.Cast())
                {
                    return;
                }

                if (E.Ready)
                {
                    E.Cast(target.ServerPosition);
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.BurstAfterAttackEvent." + ex);
            }
        }
示例#4
0
        private static void RivenDoubleCastEvent(string spellName, bool isBurstMode)
        {
            var target = myTarget.IsValidTarget(600f) ? myTarget : TargetSelector.GetTarget(600);

            if (target != null && target.IsValidTarget())
            {
                switch (spellName.ToLower())
                {
                case "itemtiamatcleave":
                    if (W.Ready && target.IsValidTarget(W.Range))
                    {
                        W.Cast();
                    }
                    else if (Q.Ready && target.IsValidTarget(400))
                    {
                        MyExtraManager.CastQ(target);
                    }
                    break;

                case "rivenmartyr":
                    if (isBurstMode)
                    {
                        if (R.Ready && isRActive)
                        {
                            R.Cast(target.ServerPosition);
                        }
                        else if (Q.Ready && target.IsValidTarget(400))
                        {
                            MyExtraManager.CastQ(target);
                        }
                    }
                    else
                    {
                        if (Q.Ready && target.IsValidTarget(400))
                        {
                            MyExtraManager.CastQ(target);
                        }
                        else if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive &&
                                 ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled)
                        {
                            MyExtraManager.R1Logic(target);
                        }
                    }
                    break;

                case "rivenfeint":
                    if (isBurstMode)
                    {
                        if (BurstMenu["FlowersRiven.BurstMenu.Mode"].As <MenuList>().Value == 0)
                        {
                            UseYoumuu();

                            if (R.Ready && !isRActive)
                            {
                                R.Cast();
                            }
                        }
                    }
                    else
                    {
                        if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive &&
                            target.IsValidTarget(500f) &&
                            ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled)
                        {
                            MyExtraManager.R1Logic(target);
                        }
                    }
                    break;

                case "rivenfengshuiengine":
                    if (!isBurstMode)
                    {
                        if (ComboMenu["FlowersRiven.ComboMenu.WCancel"].Enabled && W.Ready && target.IsValidTarget(W.Range))
                        {
                            W.Cast();
                        }
                    }
                    break;

                case "rivenizunablade":
                    if (Q.Ready && target.IsValidTarget(400))
                    {
                        Q.Cast(target.ServerPosition);
                    }
                    break;

                default:
                    return;
                }
            }
        }
示例#5
0
        private static void HarassEvent()
        {
            try
            {
                if (Me.IsUnderEnemyTurret())
                {
                    return;
                }

                var target = TargetSelector.GetTarget(E.Range + Me.BoundingRadius);

                if (target.IsValidTarget())
                {
                    if (HarassMenu["FlowersRiven.HarassMenu.Mode"].As <MenuList>().Value == 0)
                    {
                        if (E.Ready && qStack == 2)
                        {
                            var pos = Me.ServerPosition + (Me.ServerPosition - target.ServerPosition).Normalized() * E.Range;

                            if (pos != Vector3.Zero)
                            {
                                E.Cast(pos);
                            }
                        }

                        if (Q.Ready && qStack == 2)
                        {
                            var pos = Me.ServerPosition + (Me.ServerPosition - target.ServerPosition).Normalized() * E.Range;

                            if (pos != Vector3.Zero)
                            {
                                DelayAction.Queue(100, () => Q.Cast(pos));
                            }
                        }

                        if (W.Ready && target.IsValidTarget(W.Range) && qStack == 1)
                        {
                            W.Cast();
                        }

                        if (Q.Ready)
                        {
                            if (qStack == 0)
                            {
                                MyExtraManager.CastQ(target);
                                Orbwalker.ForceTarget(target);
                            }

                            if (qStack == 1 && Environment.TickCount - lastQTime > 600)
                            {
                                MyExtraManager.CastQ(target);
                                Orbwalker.ForceTarget(target);
                            }
                        }
                    }
                    else
                    {
                        if (E.Ready && HarassMenu["FlowersRiven.HarassMenu.E"].Enabled &&
                            target.DistanceToPlayer() <= E.Range + (Q.Ready ? Q.Range : Me.AttackRange))
                        {
                            E.Cast(target.ServerPosition);
                        }

                        if (Q.Ready && HarassMenu["FlowersRiven.HarassMenu.Q"].Enabled &&
                            target.IsValidTarget(Q.Range) && qStack == 0 && Game.TickCount - lastQTime > 500)
                        {
                            MyExtraManager.CastQ(target);
                            Orbwalker.ForceTarget(target);
                        }

                        if (W.Ready && HarassMenu["FlowersRiven.HarassMenu.W"].Enabled &&
                            target.IsValidTarget(W.Range) && (!Q.Ready || qStack == 1))
                        {
                            W.Cast();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.HarassEvent." + ex);
            }
        }
示例#6
0
        private static void ComboEvent()
        {
            try
            {
                var target = TargetSelector.GetTarget(800);

                if (target != null && target.IsValidTarget(800f))
                {
                    if (ComboMenu["FlowersRiven.ComboMenu.Ignite"].Enabled && IgniteSlot != SpellSlot.Unknown &&
                        Ignite.Ready && target.IsValidTarget(600) &&
                        (target.Health < MyExtraManager.GetComboDamage(target) && target.IsValidTarget(400) ||
                         target.Health < Me.GetIgniteDamage(target)))
                    {
                        Ignite.Cast(target);
                    }

                    if (ComboMenu["FlowersRiven.ComboMenu.Youmuu"].Enabled)
                    {
                        UseYoumuu();
                    }

                    if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive &&
                        ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled &&
                        target.Health <= MyExtraManager.GetComboDamage(target) * 1.3 && target.IsValidTarget(600f))
                    {
                        MyExtraManager.R1Logic(target);
                    }

                    if (ComboMenu["FlowersRiven.ComboMenu.RMode"].As <MenuList>().Value != 3 && R.Ready && isRActive &&
                        ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled)
                    {
                        MyExtraManager.R2Logic(target);
                    }

                    if (ComboMenu["FlowersRiven.ComboMenu.QGapcloser"].Enabled && Q.Ready &&
                        Game.TickCount - lastQTime > 1200 && !Me.IsDashing() && target.IsValidTarget(500f) &&
                        target.DistanceToPlayer() > Me.GetFullAttackRange(target) + 50 &&
                        Prediction.GetPrediction(target, 0.25f).UnitPosition.DistanceToPlayer() >
                        Me.GetFullAttackRange(target) + 50)
                    {
                        Q.Cast(target);
                        return;
                    }


                    if (ComboMenu["FlowersRiven.ComboMenu.EGapcloser"].Enabled && E.Ready && target.IsValidTarget(600) &&
                        target.DistanceToPlayer() > Me.GetFullAttackRange(target) + 50)
                    {
                        E.Cast(target.ServerPosition);
                    }


                    if (W.Ready && target.IsValidTarget(W.Range))
                    {
                        if (qStack == 0 && W.Cast())
                        {
                            return;
                        }

                        if (Q.Ready && qStack > 1 && W.Cast())
                        {
                            return;
                        }

                        if (Me.HasBuff("RivenFeint") && W.Cast())
                        {
                            return;
                        }

                        if (!target.IsFacing(Me))
                        {
                            W.Cast();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.ComboEvent." + ex);
            }
        }