Esempio n. 1
0
File: debug.cs Progetto: jitart/adc
        public static void Init()
        {
            //if (Player.Instance.Hero != Champion.Yasuo) return;

            EvadeMenu  = MainMenu.AddMenu("KappaEvade", "KappaEvade");
            SkillShots = EvadeMenu.AddSubMenu("SkillShots");
            Targeted   = EvadeMenu.AddSubMenu("TargetedSpells");

            EvadeMenu.AddGroupLabel("YASUO EVADE");
            Targeted.AddGroupLabel("TARGETED Spells");
            Targeted.Add("W", new CheckBox("Use W"));
            Targeted.Add("impact", new CheckBox("Block Before Impact"));
            Targeted.Add("rnd", new CheckBox("Randomize Delay"));
            Targeted.Add("combo", new CheckBox("Block In Combo Mode ONLY"));
            Targeted.Add("dl", new Slider("Min Danger Level To Block {0}", 1, 0, 5));
            var min = Targeted.Add("min", new Slider("Min Delay {0} (In MilliSeconds)", 0, 0, 500));
            var max = Targeted.Add("max", new Slider("Max Delay {0} (In MilliSeconds)", 250, 0, 1000));

            min.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args)
            {
                max.MinValue = args.NewValue;
                if (args.NewValue > max.CurrentValue)
                {
                    max.CurrentValue = args.NewValue + 1;
                }
            };

            SkillShots.AddGroupLabel("SKILLSHOTS");
            SkillShots.Add("W", new CheckBox("Use W"));
            SkillShots.Add("combo", new CheckBox("Block In Combo Mode ONLY"));
            SkillShots.Add("dl", new Slider("Min Danger Level To Block {0}", 1, 0, 5));
            SkillShots.Add("range", new Slider("Extra spell Range {0}", 50, 0, 150));
            SkillShots.Add("width", new Slider("Extra spell Width {0}", 15, 0, 75));

            Targeted.AddSeparator();
            SkillShots.AddSeparator();
            foreach (var enemy in EntityManager.Heroes.Enemies)
            {
                foreach (var spell in Database.TargetedSpells.TargetedSpellsList.Where(s => s.hero == enemy.Hero))
                {
                    Targeted.Add(enemy.ID() + spell.slot, new CheckBox("Enable " + enemy.ChampionName + " (" + enemy.Name + ")" + " - " + spell.slot, spell.DangerLevel > 1));
                    Targeted.Add(enemy.ID() + spell.slot + "dl", new Slider(enemy.ChampionName + " (" + enemy.Name + ")" + " " + spell.slot + " Danger Level {0}", spell.DangerLevel, 0, 5));
                    Targeted.AddSeparator(1);
                }

                foreach (var spell in Database.SkillShotSpells.SkillShotsSpellsList.Where(s => s.hero == enemy.Hero))
                {
                    SkillShots.Add(enemy.ID() + spell.slot + "draw", new CheckBox("Draw " + enemy.ChampionName + " (" + enemy.Name + ")" + " - " + spell.slot));
                    SkillShots.Add(enemy.ID() + spell.slot, new CheckBox("Enable " + enemy.ChampionName + " (" + enemy.Name + ")" + " - " + spell.slot, spell.DangerLevel > 1));
                    SkillShots.Add(enemy.ID() + spell.slot + "dl", new Slider(enemy.ChampionName + " (" + enemy.Name + ")" + " " + spell.slot + " Danger Level {0}", spell.DangerLevel, 0, 5));
                    SkillShots.AddSeparator(1);
                }
            }

            Game.OnTick += Game_OnTick;
            SpellsDetector.OnTargetedSpellDetected += SpellsDetector_OnTargetedSpellDetected;
        }
Esempio n. 2
0
File: debug.cs Progetto: jitart/adc
        private static void Game_OnTick(EventArgs args)
        {
            var W = Player.GetSpell(SpellSlot.W);

            foreach (var spell in KappaEvade.DetectedSpells.Where(s => s.spell.Collisions.Contains(Database.SkillShotSpells.Collision.YasuoWall) && Player.Instance.IsInDanger(s)))
            {
                if (SkillShots.slider(spell.Caster.ID() + spell.spell.slot + "dl") >= SkillShots.slider("dl") && SkillShots.checkbox("W") && W.IsReady &&
                    SkillShots.checkbox(spell.Caster.ID() + spell.spell.slot))
                {
                    Player.CastSpell(W.Slot, Player.Instance.ServerPosition.Extend(spell.Start, 200).To3D());
                }
            }
        }