Ejemplo n.º 1
0
 internal static void CreateMenu(this Menu mainMenu)
 {
     var evadeMenu = new Menu("Evade", "Evade Skillshot");
     {
         evadeMenu.Separator("Credit", "Credit: Evade#");
         var evadeSpells = new Menu("Spells", "Spells");
         {
             foreach (var spell in EvadeSpellDatabase.Spells)
             {
                 var subMenu = new Menu(spell.Name, string.Format("{0} ({1})", spell.Name, spell.Slot));
                 {
                     if (ObjectManager.Player.ChampionName == "Yasuo")
                     {
                         if (spell.Name == "YasuoDashWrapper")
                         {
                             subMenu.Bool("ETower", "Under Tower", false);
                         }
                         else if (spell.Name == "YasuoWMovingWall")
                         {
                             subMenu.Slider("WDelay", "Extra Delay", 100, 0, 150);
                         }
                     }
                     subMenu.Slider("DangerLevel", "If Danger Level >=", spell.DangerLevel, 1, 5);
                     if (spell.CastType == CastTypes.Target
                         && spell.ValidTargets.Contains(SpellTargets.AllyWards))
                     {
                         subMenu.Bool("WardJump", "Ward Jump");
                     }
                     subMenu.Bool("Enabled", "Enabled");
                     evadeSpells.Add(subMenu);
                 }
             }
             evadeMenu.Add(evadeSpells);
         }
         foreach (var hero in
             GameObjects.EnemyHeroes.Where(
                 i =>
                 SpellDatabase.Spells.Any(
                     a =>
                     string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
             )
         {
             evadeMenu.Add(new Menu(hero.ChampionName.ToLowerInvariant(), "-> " + hero.ChampionName));
         }
         foreach (var spell in
             SpellDatabase.Spells.Where(
                 i =>
                 GameObjects.EnemyHeroes.Any(
                     a =>
                     string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
             )
         {
             var subMenu = new Menu(spell.SpellName, string.Format("{0} ({1})", spell.SpellName, spell.Slot));
             {
                 subMenu.Slider("DangerLevel", "Danger Level", spell.DangerValue, 1, 5);
                 subMenu.Bool("IsDangerous", "Is Dangerous", spell.IsDangerous);
                 subMenu.Bool("DisableFoW", "Disable FoW Dodging", false);
                 subMenu.Bool("Enabled", "Enabled", !spell.DisabledByDefault);
                 ((Menu)evadeMenu[spell.ChampionName.ToLowerInvariant()]).Add(subMenu);
             }
         }
         evadeMenu.Bool("DrawStatus", "Draw Evade Status");
         evadeMenu.KeyBind("Enabled", "Enabled", Keys.K, KeyBindType.Toggle);
         evadeMenu.KeyBind("OnlyDangerous", "Dodge Only Dangerous", Keys.Space);
     }
     mainMenu.Add(evadeMenu);
 }
Ejemplo n.º 2
0
 internal static void Init()
 {
     LoadSpellData();
     var evadeMenu = MainMenu.Add(new Menu("EvadeTarget", "Evade Target"));
     {
         evadeMenu.Bool("W", "Use W");
         var aaMenu = new Menu("AA", "Auto Attack");
         {
             aaMenu.Bool("B", "Basic Attack");
             aaMenu.Slider("BHpU", "-> If Hp < (%)", 35);
             aaMenu.Bool("C", "Crit Attack");
             aaMenu.Slider("CHpU", "-> If Hp < (%)", 40);
             evadeMenu.Add(aaMenu);
         }
         foreach (var hero in
             GameObjects.EnemyHeroes.Where(
                 i =>
                 Spells.Any(
                     a =>
                     string.Equals(
                         a.ChampionName,
                         i.ChampionName,
                         StringComparison.InvariantCultureIgnoreCase))))
         {
             evadeMenu.Add(new Menu(hero.ChampionName.ToLowerInvariant(), "-> " + hero.ChampionName));
         }
         foreach (var spell in
             Spells.Where(
                 i =>
                 GameObjects.EnemyHeroes.Any(
                     a =>
                     string.Equals(
                         a.ChampionName,
                         i.ChampionName,
                         StringComparison.InvariantCultureIgnoreCase))))
         {
             ((Menu)evadeMenu[spell.ChampionName.ToLowerInvariant()]).Bool(
                 spell.MissileName,
                 spell.MissileName + " (" + spell.Slot + ")",
                 false);
         }
     }
     Game.OnUpdate += OnUpdateTarget;
     GameObject.OnCreate += ObjSpellMissileOnCreate;
     GameObject.OnDelete += ObjSpellMissileOnDelete;
 }
Ejemplo n.º 3
0
        public Zed()
        {
            Q = new Spell(SpellSlot.Q, 975);
            Q2 = new Spell(SpellSlot.Q, 975);
            W = new Spell(SpellSlot.W, 600);
            E = new Spell(SpellSlot.E, 290);
            R = new Spell(SpellSlot.R, 700);
            Q.SetSkillshot(0.25f, 50, 1700, true, SkillshotType.SkillshotLine);
            Q2.SetSkillshot(0.25f, 50, 1700, true, SkillshotType.SkillshotLine);
            E.SetTargetted(0, float.MaxValue);
            Q.DamageType = Q2.DamageType = E.DamageType = R.DamageType = DamageType.Physical;
            Q.MinHitChance = Q2.MinHitChance = HitChance.VeryHigh;

            var orbwalkMenu = new Menu("Orbwalk", "Orbwalk");
            {
                orbwalkMenu.Separator("blank0", "Q/E/Ignite/Item: Always On");
                orbwalkMenu.Separator("blank1", "W Settings");
                orbwalkMenu.Bool("WNormal", "Use For Non-R Combo");
                orbwalkMenu.List("WAdv", "Use For R Combo", new[] { "OFF", "Line", "Triangle", "Mouse" }, 1);
                orbwalkMenu.List("WSwapGap", "Swap To Gap Close", new[] { "OFF", "Smart", "Always" }, 1);
                orbwalkMenu.Separator("blank2", "R Settings");
                orbwalkMenu.Bool("R", "Use R");
                orbwalkMenu.Slider(
                    "RStopRange",
                    "Priorize If Ready And Distance <=",
                    (int)(R.Range + 200),
                    (int)R.Range,
                    (int)(R.Range + W.Range));
                orbwalkMenu.List("RSwapGap", "Swap To Gap Close", new[] { "OFF", "Smart", "Always" }, 1);
                orbwalkMenu.Slider("RSwapIfHpU", "Swap If Hp < (%)", 20);
                orbwalkMenu.Bool("RSwapIfKill", "Swap If Mark Can Kill Target");
                orbwalkMenu.Separator("blank3", "Extra R Settings");
                foreach (var enemy in GameObjects.EnemyHeroes)
                {
                    orbwalkMenu.Bool("RCast" + enemy.ChampionName, "Cast On " + enemy.ChampionName, false);
                }
                MainMenu.Add(orbwalkMenu);
            }
            var hybridMenu = new Menu("Hybrid", "Hybrid");
            {
                hybridMenu.List("Mode", "Mode", new[] { "W-E-Q", "E-Q", "Q" });
                hybridMenu.Separator("blank4", "Auto Q Settings");
                hybridMenu.KeyBind("AutoQ", "KeyBind", Keys.T, KeyBindType.Toggle);
                hybridMenu.Slider("AutoQMpA", "If Mp >=", 100, 0, 200);
                MainMenu.Add(hybridMenu);
            }
            var farmMenu = new Menu("Farm", "Farm");
            {
                farmMenu.Bool("Q", "Use Q");
                farmMenu.Bool("E", "Use E", false);
                MainMenu.Add(farmMenu);
            }
            var ksMenu = new Menu("KillSteal", "Kill Steal");
            {
                ksMenu.Bool("Q", "Use Q");
                ksMenu.Bool("E", "Use E");
                MainMenu.Add(ksMenu);
            }
            var drawMenu = new Menu("Draw", "Draw");
            {
                drawMenu.Bool("Q", "Q Range");
                drawMenu.Bool("W", "W Range");
                drawMenu.Bool("E", "E Range", false);
                drawMenu.Bool("R", "R Range");
                drawMenu.Bool("Target", "Target");
                drawMenu.Bool("WPos", "W Shadow");
                drawMenu.Bool("RPos", "R Shadow");
                MainMenu.Add(drawMenu);
            }
            MainMenu.KeyBind("FleeW", "Use W To Flee", Keys.C);

            Game.OnUpdate += OnUpdate;
            Drawing.OnDraw += OnDraw;
            Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
            GameObject.OnCreate += OnCreate;
            GameObject.OnDelete += OnDelete;
        }
Ejemplo n.º 4
0
        public Yasuo()
        {
            Q = new Spell(SpellSlot.Q, 500);
            Q2 = new Spell(SpellSlot.Q, 1100);
            W = new Spell(SpellSlot.W, 400);
            E = new Spell(SpellSlot.E, 475);
            R = new Spell(SpellSlot.R, 1300);
            Q.SetSkillshot(GetQ12Delay, 20, float.MaxValue, false, SkillshotType.SkillshotLine);
            Q2.SetSkillshot(GetQ3Delay, 90, 1500, false, SkillshotType.SkillshotLine);
            E.SetTargetted(0.05f, GetESpeed);
            Q.DamageType = Q2.DamageType = R.DamageType = DamageType.Physical;
            E.DamageType = DamageType.Magical;
            Q.MinHitChance = Q2.MinHitChance = HitChance.VeryHigh;

            var orbwalkMenu = new Menu("Orbwalk", "Orbwalk");
            {
                orbwalkMenu.Separator("blank0", "Q/Ignite/Item: Always On");
                orbwalkMenu.Separator("blank1", "E Gap Settings");
                orbwalkMenu.Bool("EGap", "Use E");
                orbwalkMenu.Slider("ERange", "If Distance >", 300, 0, (int)E.Range);
                orbwalkMenu.Bool("ETower", "Under Tower");
                orbwalkMenu.Bool("EStackQ", "Stack Q While Gap", false);
                orbwalkMenu.Separator("blank2", "R Settings");
                orbwalkMenu.Bool("R", "Use R");
                orbwalkMenu.Bool("RDelay", "Delay Casting");
                orbwalkMenu.Slider("RHpU", "If Enemy Hp < (%)", 60);
                orbwalkMenu.Slider("RCountA", "Or Enemy >=", 2, 1, 5);
                MainMenu.Add(orbwalkMenu);
            }
            var hybridMenu = new Menu("Hybrid", "Hybrid");
            {
                hybridMenu.Separator("blank3", "Q: Always On");
                hybridMenu.Bool("Q3", "Also Q3");
                hybridMenu.Bool("QLastHit", "Last Hit (Q1/2)");
                hybridMenu.Separator("blank4", "Auto Q Settings");
                hybridMenu.KeyBind("AutoQ", "KeyBind", Keys.T, KeyBindType.Toggle);
                hybridMenu.Bool("AutoQ3", "Also Q3", false);
                MainMenu.Add(hybridMenu);
            }
            var lcMenu = new Menu("LaneClear", "Lane Clear");
            {
                lcMenu.Separator("blank5", "Q: Always On");
                lcMenu.Bool("Q3", "Also Q3");
                lcMenu.Separator("blank6", "E Settings");
                lcMenu.Bool("E", "Use E");
                lcMenu.Bool("ELastHit", "Last Hit Only", false);
                lcMenu.Bool("ETower", "Under Tower", false);
                MainMenu.Add(lcMenu);
            }
            var farmMenu = new Menu("Farm", "Farm");
            {
                farmMenu.Separator("blank7", "Q Settings");
                farmMenu.Bool("Q", "Use Q");
                farmMenu.Bool("Q3", "Also Q3", false);
                farmMenu.Separator("blank8", "E Settings");
                farmMenu.Bool("E", "Use E");
                farmMenu.Bool("ETower", "Under Tower", false);
                MainMenu.Add(farmMenu);
            }
            var ksMenu = new Menu("KillSteal", "Kill Steal");
            {
                ksMenu.Bool("Q", "Use Q");
                ksMenu.Bool("E", "Use E");
                ksMenu.Bool("R", "Use R");
                ksMenu.Separator("blank7", "Extra R Settings");
                foreach (var enemy in GameObjects.EnemyHeroes)
                {
                    ksMenu.Bool("RCast" + enemy.ChampionName, "Cast On " + enemy.ChampionName, false);
                }
                MainMenu.Add(ksMenu);
            }
            var fleeMenu = new Menu("Flee", "Flee");
            {
                fleeMenu.KeyBind("E", "Use E", Keys.C);
                fleeMenu.Bool("Q", "Stack Q While Dash");
                MainMenu.Add(fleeMenu);
            }
            if (GameObjects.EnemyHeroes.Any())
            {
                Evade.Init();
                EvadeTarget.Init();
            }
            var drawMenu = new Menu("Draw", "Draw");
            {
                drawMenu.Bool("Q", "Q Range");
                drawMenu.Bool("E", "E Range", false);
                drawMenu.Bool("R", "R Range");
                drawMenu.Bool("StackQ", "Auto Stack Q Status");
                MainMenu.Add(drawMenu);
            }
            MainMenu.KeyBind("StackQ", "Auto Stack Q", Keys.Z, KeyBindType.Toggle);

            Game.OnUpdate += OnUpdate;
            Drawing.OnDraw += OnDraw;
            Game.OnUpdate += OnUpdateEvade;
        }