Ejemplo n.º 1
0
        public float RDamage(Obj_AI_Hero target, SyndraCore core)
        {
            var damagePerBall = (GetR.GetDamage(target) / 3);
            var totalDamageR  = GetR.GetDamage(target) + damagePerBall * core.GetOrbs.Count;

            return(totalDamageR);
        }
Ejemplo n.º 2
0
        public bool CastR(SyndraCore core)
        {
            if (!GetR.IsReady())
            {
                return(false);
            }

            var rTarget = TargetSelector.GetTarget(GetR.Range, TargetSelector.DamageType.Magical);

            if (rTarget == null)
            {
                return(false);
            }
            if (!CastRCheck(rTarget, core))
            {
                return(false);
            }
            if (!NotKilleableWithOtherSpells(rTarget, core))
            {
                return(false);
            }

            var totalDamageR = RDamage(rTarget, core);

            if (rTarget.Health <= totalDamageR)
            {
                GetR.Cast(rTarget);
            }
            return(false);
        }
Ejemplo n.º 3
0
        public virtual void Update(SyndraCore core)
        {
            switch (Orbwalker.ActiveMode)
            {
            case OrbwalkerMode.Combo:
                Combo(core);
                break;

            case OrbwalkerMode.Harass:
                Harash(core);
                break;

            case OrbwalkerMode.LaneClear:
                Laneclear(core);
                Jungleclear(core);
                break;

            case OrbwalkerMode.LastHit:
                LastHit(core);
                break;

            default:
                break;
            }
            Keys(core);
        }
Ejemplo n.º 4
0
        public virtual void Update(SyndraCore core)
        {
            switch (core.GetMenu.Orb.ActiveMode)
            {
            case LeagueSharp.Common.Orbwalking.OrbwalkingMode.Combo:
                Combo(core);
                break;

            case LeagueSharp.Common.Orbwalking.OrbwalkingMode.Mixed:
                Harash(core);
                break;

            case LeagueSharp.Common.Orbwalking.OrbwalkingMode.LaneClear:
                Laneclear(core);
                Jungleclear(core);
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                LastHit(core);
                break;

            case Orbwalking.OrbwalkingMode.Freeze:
                break;

            case Orbwalking.OrbwalkingMode.CustomMode:
                break;

            case Orbwalking.OrbwalkingMode.None:
                break;

            default:
                break;
            }
            Keys(core);
        }
Ejemplo n.º 5
0
        public override void Laneclear(SyndraCore core)
        {
            var useQ       = core.GetMenu.GetBoolOption("LQ");
            var useW       = core.GetMenu.GetBoolOption("LW");
            var miniumMana = 0; //core.GetMenu.GetMenu.Item("LM").GetValue<Slider>().Value;

            if (core.Hero.ManaPercent < miniumMana)
            {
                return;
            }
            if (useQ)
            {
                var minionQ =
                    MinionManager.GetMinions(
                        ObjectManager.Player.Position,
                        core.GetSpells.GetQ.Range,
                        MinionTypes.All,
                        GameObjectTeam.Chaos);

                if (minionQ != null && core.GetSpells.GetQ.IsReady())
                {
                    //Mejorable
                    var QfarmPos = core.GetSpells.GetQ.GetCircularFarmLocation(minionQ);// minionQ.FirstOrDefault(); //core.GetSpells.GetQ.GetPrediction(minionQ);// core.GetSpells.GetQ.GetCircularFarmLocation(minionQ);
                    //    if (QfarmPos.Position.IsValid())
                    if (QfarmPos.MinionsHit >= 2)
                    {
                        // {
                        //  Game.Print("no hiteo ni de coña");
                        core.GetSpells.GetQ.Cast(QfarmPos.Position);
                    }
                    //}
                }
            }
            if (useW)
            {
                var minionW =
                    MinionManager.GetMinions(
                        core.Hero.Position,
                        core.GetSpells.GetW.Range,
                        MinionTypes.All,
                        GameObjectTeam.Chaos
                        );
                if (minionW != null)
                {
                    var WfarmPos = core.GetSpells.GetQ.GetCircularFarmLocation(minionW);
                    //   if (WfarmPos.Position.IsValid())
                    //  {
                    if (WfarmPos.MinionsHit >= 2)
                    {
                        core.GetSpells.CastWToPos(WfarmPos.Position);
                    }
                    // }
                }
            }
            base.Laneclear(core);
        }
Ejemplo n.º 6
0
        public override void Laneclear(SyndraCore core)
        {
            var useQ       = core.GetMenu.GetMenu.Item("LQ").GetValue <bool>();
            var useW       = core.GetMenu.GetMenu.Item("LW").GetValue <bool>();
            var miniumMana = core.GetMenu.GetMenu.Item("LM").GetValue <Slider>().Value;

            if (core.Hero.ManaPercent < miniumMana)
            {
                return;
            }
            if (useQ)
            {
                var minionQ =
                    MinionManager.GetMinions(
                        core.Hero.Position,
                        core.GetSpells.GetQ.Range,
                        MinionTypes.All,
                        MinionTeam.Enemy,
                        MinionOrderTypes.MaxHealth);
                if (minionQ != null)
                {
                    var QfarmPos = core.GetSpells.GetQ.GetCircularFarmLocation(minionQ);
                    if (QfarmPos.Position.IsValid())
                    {
                        if (QfarmPos.MinionsHit >= 2)
                        {
                            core.GetSpells.GetQ.Cast(QfarmPos.Position);
                        }
                    }
                }
            }
            if (useW)
            {
                var minionW =
                    MinionManager.GetMinions(
                        core.Hero.Position,
                        core.GetSpells.GetW.Range,
                        MinionTypes.All,
                        MinionTeam.Enemy,
                        MinionOrderTypes.MaxHealth);
                if (minionW != null)
                {
                    var WfarmPos = core.GetSpells.GetQ.GetCircularFarmLocation(minionW);
                    if (WfarmPos.Position.IsValid())
                    {
                        if (WfarmPos.MinionsHit >= 3)
                        {
                            core.GetSpells.CastWToPos(WfarmPos.Position);
                        }
                    }
                }
            }
            base.Laneclear(core);
        }
Ejemplo n.º 7
0
 public virtual void LoadMenu(SyndraCore azir)
 {
     GetMenu        = new EnsoulSharp.SDK.MenuUI.Menu(_menuName, _menuName, true);;
     _orbWalkerMenu = new EnsoulSharp.SDK.MenuUI.Menu("Orbwalker", "Orbwalker");
     //  Orb = new Orbwalking.Orbwalker(_orbWalkerMenu);
     _targetSelectorMenu = new EnsoulSharp.SDK.MenuUI.Menu("TargetSelector", "TargetSelector");
     LoadLaneClearMenu();
     LoadHarashMenu();
     LoadComboMenu();
     LoadJungleClearMenu();
     LoadDrawings();
     LoadkeyMenu();
     //  LoadMiscInterrupt(azir);
     LoadMiscMenu();
 }
Ejemplo n.º 8
0
 public virtual void LoadMenu(SyndraCore azir)
 {
     GetMenu             = new LeagueSharp.Common.Menu(_menuName, _menuName, true).SetFontStyle(FontStyle.Regular, Color.YellowGreen);;
     _orbWalkerMenu      = new LeagueSharp.Common.Menu("Orbwalker", "Orbwalker");
     Orb                 = new Orbwalking.Orbwalker(_orbWalkerMenu);
     _targetSelectorMenu = new LeagueSharp.Common.Menu("TargetSelector", "TargetSelector");
     LoadLaneClearMenu();
     LoadHarashMenu();
     LoadComboMenu();
     LoadJungleClearMenu();
     LoadDrawings();
     LoadkeyMenu();
     //  LoadMiscInterrupt(azir);
     LoadMiscMenu();
 }
Ejemplo n.º 9
0
 public void loadNotRSpells(SyndraCore core)
 {
     foreach (var tar in GameObjects.EnemyHeroes)
     {
         foreach (var s in Lists.DontRSpellList)
         {
             var result       = s.Split('-');
             var championName = result[0];
             if (tar.CharacterName.ToLower() == championName.ToLower())
             {
                 var championSpell = result[1];
                 listChampions.Add(new Champion(stringToSpell(championSpell), championName));
             }
         }
     }
     core.championsWithDodgeSpells = listChampions;
 }
Ejemplo n.º 10
0
        public bool CastRCheck(Obj_AI_Hero target, SyndraCore core)
        {
            var checkZhoniaMenu = core.GetMenu.GetMenu.Item("DONTRZHONYA").GetValue <bool>();

            if (checkZhoniaMenu)
            {
                //Zhonias lol
                const string zhonyaName = "ZhonyasHourglass";
                for (var i = 1; i <= 6; i++)
                {
                    var slot = core.Events.intToSpellSlot(i);
                    if (target.GetSpell(slot).Name != zhonyaName)
                    {
                        continue;
                    }
                    if (target.GetSpell(slot).IsReady())
                    {
                        return(false);
                    }
                }
            }
            if (target.IsInvulnerable)
            {
                return(false);
            }
            foreach (var tar in core.championsWithDodgeSpells)
            {
                var tarslo     = tar.SpellSlot;
                var result     = tar.Name + "-" + SpellSlotToString(tarslo);
                var checkFirst = core.GetMenu.GetMenu.Item(result).GetValue <bool>();
                if (!checkFirst)
                {
                    continue;
                }
                if (target.ChampionName != tar.Name)
                {
                    continue;
                }
                if (core.GetMenu.GetMenu.Item(target.ChampionName).GetValue <bool>())
                {
                    return(tar.CastRToDat());
                }
            }
            return(core.GetMenu.GetMenu.Item(target.ChampionName).GetValue <bool>());
        }
Ejemplo n.º 11
0
 private bool NotKilleableWithOtherSpells(Obj_AI_Hero target, SyndraCore core)
 {
     if (GetQ.IsReady() && GetQ.IsKillable(target))
     {
         CastQ();
         return(false);
     }
     if (GetW.IsReady() && GetW.IsKillable(target))
     {
         CastW();
         return(false);
     }
     if (GetE.IsReady() && GetE.IsKillable(target))
     {
         CastE(core);
         return(false);
     }
     return(true);
 }
Ejemplo n.º 12
0
        public float RDamage(AIHeroClient target, SyndraCore core)
        {
            // calcular daño por esfera.
            var damageBaseSphere = 0;
            var damageBaseR      = 0;

            switch (GetR.Level)
            {
            case 0:
                break;
                ;

            case 1:
                damageBaseSphere = 90;
                break;

            case 2:
                damageBaseSphere = 140;
                damageBaseR      = 420;
                break;

            case 3:
                damageBaseSphere = 190;
                damageBaseR      = 570;
                break;

            default:
                break;
            }

            float magicDamage = (int)(GameObjects.Player.TotalMagicalDamage * 0.20f);

            var damagePerBall = damageBaseSphere + magicDamage;

            var damageR       = damageBaseR + (int)(GameObjects.Player.TotalMagicalDamage * 0.60f);
            var damageRTarget = damageR;//+target.get;
            // Game.Print("damage magic: " + target.);//GetR.GetDamage(target, DamageStage.Default));
            // Game.Print("Total damage r : " +target.BonusArmor);
            var totalDamageR = damageRTarget + damagePerBall * core.GetOrbs.Count;

            return(totalDamageR);
        }
Ejemplo n.º 13
0
        public override void Harash(SyndraCore core)
        {
            var useQ = core.GetMenu.GetMenu.Item("HQ").GetValue <bool>();
            var useW = core.GetMenu.GetMenu.Item("HW").GetValue <bool>();
            var useE = core.GetMenu.GetMenu.Item("HE").GetValue <bool>();

            if (useQ)
            {
                core.GetSpells.CastQ();
            }
            if (useW)
            {
                core.GetSpells.CastW();
            }
            if (useE)
            {
                core.GetSpells.CastE(core);
            }
            base.Harash(core);
        }
Ejemplo n.º 14
0
        public override void Harash(SyndraCore core)
        {
            var useQ = core.GetMenu.GetBoolOption("HQ");
            var useW = core.GetMenu.GetBoolOption("HW");
            var useE = core.GetMenu.GetBoolOption("HE");

            if (useQ)
            {
                core.GetSpells.CastQ();
            }
            if (useW)
            {
                core.GetSpells.CastW();
            }
            if (useE)
            {
                core.GetSpells.CastE(core);
            }
            base.Harash(core);
        }
Ejemplo n.º 15
0
        public bool CastE(SyndraCore core)
        {
            if (!GetE.IsReady())
            {
                return(false);
            }
            if (GetW.IsReady())
            {
                return(false);
            }
            if (GetOrbs.WObject(false) != null)
            {
                return(false);
            }
            for (var index = 0; index < core.GetOrbs.Count; index++)
            {
                foreach (Obj_AI_Hero tar in HeroManager.Enemies)
                {
                    if (!(tar.Distance(core.Hero) <= GetE.Range))
                    {
                        continue;
                    }
                    var orb = core.GetOrbs[index];
                    if (orb.IsValid())
                    {
                        if (!GetE.IsInRange(orb))
                        {
                            continue;
                        }
                    }
                    //500 extended range.
                    var finalBallPos = HeroManager.Player.Position.Extend(orb, 500);

                    if (CalcE(orb, finalBallPos, tar))
                    {
                        GetE.Cast(orb);
                    }
                }
            }
            return(false);
        }
Ejemplo n.º 16
0
        public override void Combo(SyndraCore core)
        {
            var useQ     = core.GetMenu.GetMenu.Item("CQ").GetValue <bool>();
            var useW     = core.GetMenu.GetMenu.Item("CW").GetValue <bool>();
            var useE     = core.GetMenu.GetMenu.Item("CE").GetValue <bool>();
            var useR     = core.GetMenu.GetMenu.Item("CR").GetValue <bool>();
            var qeRange  = core.GetSpells.GetQ.Range + 500;
            var qeTarget = TargetSelector.GetTarget(qeRange, TargetSelector.DamageType.Magical);

            if (qeTarget != null)
            {
                if (!core.GetSpells.castE(qeTarget))
                {
                    if (useQ)
                    {
                        core.GetSpells.CastQ();
                    }
                    if (useW)
                    {
                        core.GetSpells.CastW();
                    }
                }
                if (useE)
                {
                    var eTarget = TargetSelector.GetTarget(core.GetSpells.EQ.Range, TargetSelector.DamageType.Magical);
                    if (eTarget != null && core.GetSpells.GetE.IsReady())
                    {
                        core.GetSpells.castE(eTarget);
                    }
                }
            }
            if (useR)
            {
                core.GetSpells.CastR(core);
            }
            base.Combo(core);
        }
Ejemplo n.º 17
0
 public DrawDamage(SyndraCore core)
 {
     this.core = core;
     LeagueSharp.Drawing.OnDraw += Ondraw;
 }
Ejemplo n.º 18
0
        public override void Keys(SyndraCore core)
        {
            if (core.GetSpells.GetQ.IsReady() && core.GetSpells.GetE.IsReady())
            {
                QE     = false;
                AutoQE = false;
            }
            if (core.GetMenu.GetMenu.Item("RKey").GetValue <KeyBind>().Active)
            {
                if (core.GetSpells.GetR.IsReady())
                {
                    var rTarget = TargetSelector.GetTarget(core.GetSpells.GetR.Range, TargetSelector.DamageType.Magical);
                    if (rTarget != null)
                    {
                        core.GetSpells.GetR.Cast(rTarget);
                    }
                }
            }
            if (core.GetMenu.GetMenu.Item("HKey").GetValue <KeyBind>().Active)
            {
                // if (!HeroManager.Player.CanAttack)
                // {
                core.GetSpells.CastQ();
                // }
            }
            if (core.GetMenu.GetMenu.Item("QEkey").GetValue <KeyBind>().Active)
            {
                if (!QE)
                {
                    var gameCursor = Game.CursorPos;
                    core.GetSpells.GetQ.Cast(core.Hero.Position.Extend(Game.CursorPos, core.GetSpells.GetQ.Range));
                    LeagueSharp.Common.Utility.DelayAction.Add(250 + Game.Ping, () => core.GetSpells.GetE.Cast(gameCursor));
                    QE = true;
                }
            }
            if (core.GetMenu.GetMenu.Item("AUTOQE").GetValue <KeyBind>().Active)
            {
                if (!AutoQE)
                {
                    var qeRange  = core.GetSpells.GetQ.Range + 500;
                    var qeTarget = TargetSelector.GetTarget(qeRange, TargetSelector.DamageType.Magical);

                    /*
                     *  if (qeTarget != null)
                     *  {
                     *      var predpos = Prediction.GetPrediction(qeTarget, 500);
                     *      if (predpos.UnitPosition.Distance(core.Hero.Position) < qeRange)
                     *      {
                     *          var ballPos = core.Hero.Position.Extend(predpos.UnitPosition, core.GetSpells.GetQ.Range);
                     *          core.GetSpells.GetQ.Cast(ballPos);
                     *          LeagueSharp.Common.Utility.DelayAction.Add(250 + Game.Ping, () => core.GetSpells.GetE.Cast(ballPos));
                     *          AutoQE = true;
                     *      }
                     *  }*/
                    if (qeTarget != null)
                    {
                        core.GetSpells.TryBallE(qeTarget);
                    }
                }
            }
            base.Keys(core);
        }
Ejemplo n.º 19
0
        public override void Jungleclear(SyndraCore core)
        {
            var useQ       = core.GetMenu.GetMenu.Item("JQ").GetValue <bool>();
            var useW       = core.GetMenu.GetMenu.Item("JW").GetValue <bool>();
            var useE       = core.GetMenu.GetMenu.Item("JE").GetValue <bool>();
            var miniumMana = core.GetMenu.GetMenu.Item("JM").GetValue <Slider>().Value;

            if (core.Hero.ManaPercent < miniumMana)
            {
                return;
            }
            if (useQ)
            {
                var minionQ =
                    MinionManager.GetMinions(
                        core.Hero.Position,
                        core.GetSpells.GetQ.Range,
                        MinionTypes.All,
                        MinionTeam.Neutral,
                        MinionOrderTypes.MaxHealth);
                if (minionQ != null)
                {
                    var QfarmPos = core.GetSpells.GetQ.GetCircularFarmLocation(minionQ);
                    if (QfarmPos.Position.IsValid())
                    {
                        core.GetSpells.GetQ.Cast(QfarmPos.Position);
                    }
                }
            }
            if (useW)
            {
                var minionW  = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, core.GetSpells.GetW.Range, MinionTypes.All, MinionTeam.NotAlly);
                var minionss = minionW.Any(x => x.Team == GameObjectTeam.Neutral);
                if (minionss)
                {
                    var WfarmPos = core.GetSpells.GetQ.GetCircularFarmLocation(minionW);
                    if (WfarmPos.Position.IsValid())
                    {
                        core.GetSpells.CastWToPos(WfarmPos.Position);
                    }
                    else
                    {
                        core.GetSpells.CastWToPos(Game.CursorPos.To2D());
                    }
                }
            }
            if (useE)
            {
                var minionE =
                    MinionManager.GetMinions(
                        core.Hero.Position,
                        core.GetSpells.GetQ.Range,
                        MinionTypes.All,
                        MinionTeam.Neutral,
                        MinionOrderTypes.MaxHealth);


                if (minionE != null)
                {
                    var EfarmPos = core.GetSpells.GetQ.GetCircularFarmLocation(minionE);
                    if (EfarmPos.Position.IsValid())
                    {
                        core.GetSpells.GetE.Cast(EfarmPos.Position);
                    }
                }
            }
            base.Jungleclear(core);
        }
Ejemplo n.º 20
0
 public virtual void Keys(SyndraCore core)
 {
 }
Ejemplo n.º 21
0
 public override void LastHit(SyndraCore core)
 {
     //Last hit with q when u cant kill minion with aa.
     base.LastHit(core);
 }
Ejemplo n.º 22
0
 private void LoadMiscInterrupt(SyndraCore azir)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 23
0
 public virtual void Harash(SyndraCore core)
 {
 }
Ejemplo n.º 24
0
 public virtual void Combo(SyndraCore core)
 {
 }
Ejemplo n.º 25
0
        public override void Keys(SyndraCore core)
        {
            if (core.GetSpells.GetQ.IsReady() && core.GetSpells.GetE.IsReady())
            {
                QE     = false;
                AutoQE = false;
            }
            if (core.GetMenu.Rkey.Active)
            {
                if (core.GetSpells.GetR.IsReady())
                {
                    var rTarget = TargetSelector.GetTarget(core.GetSpells.GetR.Range, DamageType.Magical);
                    if (rTarget != null)
                    {
                        core.GetSpells.GetR.Cast(rTarget);
                    }
                }
            }

            if (core.GetMenu.HKey.Active)
            {
                // if (!HeroManager.Player.CanAttack)
                // {
                core.GetSpells.CastQ();
                // }
            }
            if (core.GetMenu.QEkey.Active)
            {
                if (!QE)
                {
                    var gameCursor = Game.CursorPos;
                    core.GetSpells.GetQ.Cast(core.Hero.Position.Extend(Game.CursorPos, core.GetSpells.GetQ.Range));
                    EnsoulSharp.SDK.Utility.DelayAction.Add(250 + Game.Ping, () => core.GetSpells.GetE.Cast(gameCursor));
                    QE = true;
                }
            }
            if (core.GetMenu.AUTOQE.Active)
            {
                if (!AutoQE)
                {
                    var qeRange  = core.GetSpells.GetQ.Range + 500;
                    var qeTarget = TargetSelector.GetTarget(qeRange, DamageType.Magical);

                    if (qeTarget != null)
                    {
                        var predpos = TargetSelector.GetTarget(qeRange, DamageType.Magical);
                        if (predpos.Position.Distance(core.Hero.Position) < qeRange)
                        {
                            var ballPos = core.Hero.Position.Extend(predpos.Position, core.GetSpells.GetQ.Range);
                            core.GetSpells.GetQ.Cast(ballPos);
                            EnsoulSharp.SDK.Utility.DelayAction.Add(250 + Game.Ping, () => core.GetSpells.GetE.Cast(ballPos));
                            AutoQE = true;
                        }
                    }
                    if (qeTarget != null)
                    {
                        core.GetSpells.TryBallE(qeTarget);
                    }
                }
            }

            base.Keys(core);
        }
Ejemplo n.º 26
0
 public virtual void Laneclear(SyndraCore core)
 {
 }
Ejemplo n.º 27
0
 public virtual void Jungleclear(SyndraCore core)
 {
 }
Ejemplo n.º 28
0
 public virtual void LastHit(SyndraCore core)
 {
 }
Ejemplo n.º 29
0
 public Menu(string menuName, SyndraCore core)
 {
     this._menuName = menuName;
     LoadMenu(core);
     CloseMenu();
 }
Ejemplo n.º 30
0
 public DrawDamage(SyndraCore core)
 {
     this.core = core;
     EloBuddy.Drawing.OnDraw += Ondraw;
 }