Beispiel #1
0
        public LeeSin()
        {
            Q  = new Spell(SpellSlot.Q, 1100);
            Q2 = new Spell(SpellSlot.Q, 1300);
            W  = new Spell(SpellSlot.W, 700);
            E  = new Spell(SpellSlot.E, 400, TargetSelector.DamageType.Magical);
            E2 = new Spell(SpellSlot.E, 570);
            R  = new Spell(SpellSlot.R, 375);
            R2 = new Spell(SpellSlot.R, 800);
            Q.SetSkillshot(0.25f, 65, 1800, true, SkillshotType.SkillshotLine);
            R2.SetSkillshot(0.25f, 100, 1500, false, SkillshotType.SkillshotLine);

            var champMenu = new Menu("Plugin", Player.ChampionName + "_Plugin");

            {
                Insec.Init(champMenu);
                var comboMenu = new Menu("Combo", "Combo");
                {
                    AddKeybind(comboMenu, "Star", "Star Combo (Q-[W]-R-E-Q)", "X");
                    AddBool(comboMenu, "Smite", "Use Red Smite");
                    AddBool(comboMenu, "P", "Use Passive", false);
                    AddBool(comboMenu, "Q", "Use Q");
                    AddBool(comboMenu, "QCol", "-> Smite Collision");
                    AddBool(comboMenu, "W", "Use W");
                    AddSlider(comboMenu, "WHpU", "-> If Hp <", 30);
                    AddBool(comboMenu, "E", "Use E");
                    AddBool(comboMenu, "R", "Use R");
                    AddBool(comboMenu, "RBehind", "-> If Kill Enemy Behind");
                    AddSlider(comboMenu, "RCount", "-> Or Hit Enemy Behind >=", 2, 1, 4);
                    champMenu.AddSubMenu(comboMenu);
                }
                //var harassMenu = new Menu("Harass", "Harass");
                //{
                //    AddBool(harassMenu, "Q", "Use Q");
                //    AddSlider(harassMenu, "Q2HpA", "-> Q2 If Hp Above", 30);
                //    AddBool(harassMenu, "E", "Use E");
                //    AddBool(harassMenu, "W", "Use W Jump Back");
                //    AddBool(harassMenu, "WWard", "-> Ward Jump", false);
                //    champMenu.AddSubMenu(harassMenu);
                //}
                var clearMenu = new Menu("Clear", "Clear");
                {
                    AddSmiteMob(clearMenu);
                    champMenu.AddSubMenu(clearMenu);
                }
                var lastHitMenu = new Menu("Last Hit", "LastHit");
                {
                    AddBool(lastHitMenu, "Q", "Use Q");
                    champMenu.AddSubMenu(lastHitMenu);
                }
                var fleeMenu = new Menu("Flee", "Flee");
                {
                    AddBool(fleeMenu, "W", "Use W");
                    AddBool(fleeMenu, "PinkWard", "-> Ward Jump Use Pink Ward", false);
                    champMenu.AddSubMenu(fleeMenu);
                }
                var miscMenu = new Menu("Misc", "Misc");
                {
                    var killStealMenu = new Menu("Kill Steal", "KillSteal");
                    {
                        AddBool(killStealMenu, "Q", "Use Q");
                        AddBool(killStealMenu, "E", "Use E");
                        AddBool(killStealMenu, "R", "Use R");
                        AddBool(killStealMenu, "Ignite", "Use Ignite");
                        AddBool(killStealMenu, "Smite", "Use Smite");
                        miscMenu.AddSubMenu(killStealMenu);
                    }
                    var interruptMenu = new Menu("Interrupt", "Interrupt");
                    {
                        AddBool(interruptMenu, "R", "Use R");
                        AddBool(interruptMenu, "RGap", "-> Use W To Gap Closer");
                        foreach (var spell in
                                 Interrupter.Spells.Where(
                                     i => HeroManager.Enemies.Any(a => i.ChampionName == a.ChampionName)))
                        {
                            AddBool(
                                interruptMenu, spell.ChampionName + "_" + spell.Slot,
                                "-> Skill " + spell.Slot + " Of " + spell.ChampionName);
                        }
                        miscMenu.AddSubMenu(interruptMenu);
                    }
                    champMenu.AddSubMenu(miscMenu);
                }
                var drawMenu = new Menu("Draw", "Draw");
                {
                    AddBool(drawMenu, "Q", "Q Range", false);
                    AddBool(drawMenu, "W", "W Range", false);
                    AddBool(drawMenu, "E", "E Range", false);
                    AddBool(drawMenu, "R", "R Range", false);
                    champMenu.AddSubMenu(drawMenu);
                }
                MainMenu.AddSubMenu(champMenu);
            }
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += OnDraw;
            Interrupter.OnPossibleToInterrupt += OnPossibleToInterrupt;
            GameObject.OnCreate += OnCreateWardForFlee;
        }
Beispiel #2
0
        public LeeSin()
        {
            Q  = new Spell(SpellSlot.Q, 1100);
            Q2 = new Spell(SpellSlot.Q, 1300);
            W  = new Spell(SpellSlot.W, 700);
            E  = new Spell(SpellSlot.E, 400);
            E2 = new Spell(SpellSlot.E, 550);
            R  = new Spell(SpellSlot.R, 375);
            Q.SetSkillshot(0.25f, 60, 1800, true, SkillshotType.SkillshotLine);
            W.SetTargetted(0.05f, 1400);
            R.SetTargetted(0.25f, 1500);
            Q.DamageType   = Q2.DamageType = W.DamageType = R.DamageType = DamageType.Physical;
            E.DamageType   = DamageType.Magical;
            Q.MinHitChance = HitChance.VeryHigh;

            Insec.Init();
            var orbwalkMenu = MainMenu.Add(new Menu("Orbwalk", "Orbwalk"));
            {
                orbwalkMenu.KeyBind("Star", "Star Combo", Keys.X);
                orbwalkMenu.Bool("W", "Use W", false);
                orbwalkMenu.Bool("E", "Use E");
                orbwalkMenu.Separator("Q Settings");
                orbwalkMenu.Bool("Q", "Use Q");
                orbwalkMenu.Bool("Q2", "-> Also Q2");
                orbwalkMenu.Bool("QCol", "Smite Collision");
                orbwalkMenu.Separator("R Settings");
                orbwalkMenu.Bool("R", "Use R");
                orbwalkMenu.Bool("RKill", "If Kill Enemy Behind");
                orbwalkMenu.Slider("RCountA", "Or Hit Enemy Behind >=", 1, 1, 4);
                orbwalkMenu.Separator("Sub Settings");
                orbwalkMenu.Bool("Ignite", "Use Ignite");
                orbwalkMenu.Bool("Item", "Use Item");
            }
            var farmMenu = MainMenu.Add(new Menu("Farm", "Farm"));
            {
                farmMenu.Bool("Q", "Use Q1");
            }
            var ksMenu = MainMenu.Add(new Menu("KillSteal", "Kill Steal"));
            {
                ksMenu.Bool("Q", "Use Q");
                ksMenu.Bool("E", "Use E");
                ksMenu.Bool("R", "Use R");
                ksMenu.Separator("Extra R Settings");
                foreach (var enemy in GameObjects.EnemyHeroes)
                {
                    ksMenu.Bool("RCast" + enemy.ChampionName, "Cast On " + enemy.ChampionName, false);
                }
            }
            var drawMenu = MainMenu.Add(new Menu("Draw", "Draw"));

            {
                drawMenu.Bool("Q", "Q Range", false);
                drawMenu.Bool("W", "W Range");
                drawMenu.Bool("E", "E Range", false);
                drawMenu.Bool("R", "R Range", false);
            }
            MainMenu.KeyBind("FleeW", "Use W To Flee", Keys.C);

            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += args =>
            {
                if (Player.IsDead)
                {
                    return;
                }
                if (MainMenu["Draw"]["Q"] && Q.Level > 0)
                {
                    Drawing.DrawCircle(
                        Player.Position,
                        (IsQOne ? Q : Q2).Range,
                        Q.IsReady() ? Color.LimeGreen : Color.IndianRed);
                }
                if (MainMenu["Draw"]["W"] && W.Level > 0 && IsWOne)
                {
                    Drawing.DrawCircle(Player.Position, W.Range, W.IsReady() ? Color.LimeGreen : Color.IndianRed);
                }
                if (MainMenu["Draw"]["E"] && E.Level > 0)
                {
                    Drawing.DrawCircle(
                        Player.Position,
                        (IsEOne ? E : E2).Range,
                        E.IsReady() ? Color.LimeGreen : Color.IndianRed);
                }
                if (MainMenu["Draw"]["R"] && R.Level > 0)
                {
                    Drawing.DrawCircle(Player.Position, R.Range, R.IsReady() ? Color.LimeGreen : Color.IndianRed);
                }
            };
            Obj_AI_Base.OnProcessSpellCast += (sender, args) =>
            {
                if (!sender.IsMe)
                {
                    return;
                }
                if (MainMenu["Orbwalk"]["Star"].GetValue <MenuKeyBind>().Active &&
                    args.SData.Name == "BlindMonkRKick" && E.IsReady() && IsEOne &&
                    HaveQ((Obj_AI_Hero)args.Target) && Player.Mana >= 80)
                {
                    DelayAction.Add(R.Delay * 1000, () => E.Cast());
                }
            };
        }