Example #1
0
        public static void Execute()
        {
            var sphere =
                ObjectManager.Get <Obj_AI_Base>().FirstOrDefault(a => a.Name == "Seed" && a.IsValid);

            var target = TargetSelector.GetTarget(SpellsManager.W.Range, DamageType.Magical);

            if ((target == null) || target.IsInvulnerable)
            {
                return;
            }
            //Cast Q
            if (ComboMenu["Q"].Cast <CheckBox>().CurrentValue)
            {
                if (target.IsValidTarget(SpellsManager.Q.Range) && SpellsManager.Q.IsReady())
                {
                    var pred = SpellsManager.Q.GetPrediction(target);
                    SpellsManager.Q.Cast(pred.CastPosition);
                }
            }
            //Cast W
            if (ComboMenu["W"].Cast <CheckBox>().CurrentValue)
            {
                if (target.IsValidTarget(SpellsManager.W.Range + 200) && SpellsManager.W.IsReady() && !target.IsDead)
                {
                    var pred = SpellsManager.W.GetPrediction(target);
                    SpellsManager.W.Cast(Functions.GrabWPost(true));
                    Core.DelayAction(() => SpellsManager.W.Cast(pred.CastPosition), 10);
                }
            }

            if (ComboMenu["QE"].Cast <CheckBox>().CurrentValue)
            {
                if (target.IsValidTarget(SpellsManager.QE.Range) && SpellsManager.E.IsReady())
                {
                    if (sphere.CountEnemyMinionsInRange(300) >= 1)
                    {
                        SpellsManager.Q.Cast(target);
                    }
                }
            }
            SpellsManager.E.Cast(target);


            //Cast r
            // if (Menus.ComboMenu["R"].Cast<CheckBox>().CurrentValue)
            //   if (rtarget.IsValidTarget(SpellsManager.R.Range) && SpellsManager.R.IsReady())
            //      SpellsManager.R.TryToCast(SpellsManager.R.GetKillableHero(), Menus.ComboMenu);


            if (SpellsManager.R.IsReady() && target.IsValidTarget(SpellsManager.R.Range) && !target.HasUndyingBuff() &&
                Prediction.Health.GetPrediction(target, SpellsManager.R.CastDelay) <=
                SpellsManager.RDamage(SpellSlot.R, target))
            {
                SpellsManager.R.Cast(target);
            }
        }
Example #2
0
        private static void Loading_OnLoadingComplete(EventArgs bla)
        {
            if (Player.Instance.Hero != Champion.Syndra)
            {
                return;
            }
            SpellsManager.InitializeSpells();
            Menus.CreateMenu();
            ModeManager.InitializeModes();
            DrawingsManager.InitializeDrawings();


            Obj_AI_Base.OnProcessSpellCast += delegate(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
            {
                if (sender.IsMe && (int)args.Slot < 4)
                {
                    LockedSpellCasts = true;
                }
            };

            Obj_AI_Base.OnSpellCast += delegate(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
            {
                if (sender.IsMe && (int)args.Slot < 4)
                {
                    LockedSpellCasts = false;
                }
            };

            Spellbook.OnCastSpell += delegate(Spellbook sender, SpellbookCastSpellEventArgs args)
            {
                if (sender.Owner.IsMe && (int)args.Slot < 4 && Player.GetSpell(args.Slot).IsReady)
                {
                    if (LockedSpellCasts)
                    {
                        args.Process = false;
                    }
                    else
                    {
                        LockedSpellCasts = true;
                    }
                }
            };

            Game.OnTick += delegate
            {
                if (_lockedTime > 0 && LockedSpellCasts && Core.GameTickCount - _lockedTime > 250)
                {
                    LockedSpellCasts = false;
                }
            };


            Chat.Print("<font color='#FA5858'>Wladis Syndra loaded</font>");
            Chat.Print("Credits to ExRaZor, T2N1Scar, Definitely not Kappa, gero, MarioGK, 2Phones");
        }
Example #3
0
        private static void Loading_OnLoadingComplete(EventArgs bla)
        {
            if (Player.Instance.Hero != Champion.Syndra)
            {
                return;
            }
            SpellsManager.InitializeSpells();
            Menus.CreateMenu();
            ModeManager.InitializeModes();
            DrawingsManager.InitializeDrawings();
            EventsManager.Initialize();


            Chat.Print("<font color='#FA5858'>Wladis Syndra loaded</font>");
            Chat.Print("Credits to ExRaZor, T2N1Scar, Definitely not Kappa, gero, MarioGK, 2Phones");
        }
Example #4
0
        public static void Execute2()
        {
            var qtarget = TargetSelector.GetTarget(SpellsManager.Q.Range, DamageType.Magical);

            if ((qtarget == null) || qtarget.IsInvulnerable)
            {
                return;
            }
            //Cast Q
            if (SpellsManager.Q.IsReady() && qtarget.IsValidTarget((SpellsManager.Q.Range)) &&
                Prediction.Health.GetPrediction(qtarget, SpellsManager.Q.CastDelay) <=
                SpellsManager.GetTotalDamage(qtarget, SpellSlot.Q))
            {
                SpellsManager.Q.Cast(qtarget);
            }
        }
Example #5
0
        public static void Execute5()
        {
            var rtarget = TargetSelector.GetTarget(SpellsManager.R.Range, DamageType.Magical);

            if ((rtarget == null) || rtarget.IsInvulnerable)
            {
                return;
            }


            if (SpellsManager.R.IsReady() && rtarget.IsValidTarget(SpellsManager.R.Range) &&
                Prediction.Health.GetPrediction(rtarget, SpellsManager.R.CastDelay) <=
                SpellsManager.RDamage(SpellSlot.R, rtarget))
            {
                SpellsManager.R.Cast(rtarget);
            }
        }
Example #6
0
        public static void Execute()
        {
            var sphere = ObjectManager.Get <Obj_AI_Base>().FirstOrDefault(a => a.Name == "Seed" && a.IsValid);

            var target = TargetSelector.GetTarget(SpellsManager.W.Range, DamageType.Magical);

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

            if (ComboMenu["QE"].Cast <CheckBox>().CurrentValue&& target.IsValidTarget(SpellsManager.QE.Range) && SpellsManager.Q.IsReady() && SpellsManager.E.IsReady())
            {
                var pred = SpellsManager.Q.GetPrediction(target);
                SpellsManager.Q.Cast(Player.Instance.Position.Extend(pred.CastPosition, SpellsManager.E.Range - 10).To3D());
                SpellsManager.E.Cast(Player.Instance.Position.Extend(pred.CastPosition, SpellsManager.E.Range - 10).To3D());
            }

            if (ComboMenu["Q"].Cast <CheckBox>().CurrentValue&& target.IsValidTarget(SpellsManager.Q.Range) && SpellsManager.Q.IsReady())
            {
                var pred = SpellsManager.Q.GetPrediction(target);
                SpellsManager.Q.Cast(pred.CastPosition);
            }

            if (ComboMenu[target.ChampionName].Cast <CheckBox>().CurrentValue&& SpellsManager.R.IsReady() && target.IsValidTarget(SpellsManager.R.Range) && !target.HasUndyingBuff() &&
                Prediction.Health.GetPrediction(target, SpellsManager.R.CastDelay) <=
                SpellsManager.RDamage(SpellSlot.R, target))
            {
                SpellsManager.R.Cast(target);
            }

            //Cast W
            if (ComboMenu["W"].Cast <CheckBox>().CurrentValue&& target.IsValidTarget(SpellsManager.W.Range) && SpellsManager.W.IsReady())
            {
                var pred = SpellsManager.W.GetPrediction(target);

                if (!myhero.HasBuff("SyndraW") && lastWCast + 500 < Environment.TickCount)
                {
                    SpellsManager.W.Cast(Functions.GrabWPost(true));
                    lastWCast = Environment.TickCount;
                }
                if (myhero.HasBuff("SyndraW") && lastWCast + 200 < Environment.TickCount)
                {
                    SpellsManager.W.Cast(pred.CastPosition);
                    lastWCast = Environment.TickCount;
                }
            }


            var Summ = TargetSelector.GetTarget(Ignite.Range, DamageType.Mixed);

            if ((Summ == null) || Summ.IsInvulnerable)
            {
                return;
            }
            //Ignite
            if (ComboMenu["Ignite"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.CountEnemyChampionsInRange(600) >= 1 && Ignite.IsReady() && Ignite.IsLearned && Summ.IsValidTarget(Ignite.Range))
                {
                    if (target.Health >
                        target.GetTotalDamage())
                    {
                        Ignite.Cast(Summ);
                    }
                }
            }
        }