示例#1
0
 public static void Escape()
 {
     Others.MoveTo(Game.CursorPos);
     if (Player.IsBurrowed() &&
         menu.Item("reksai.escape.e2").GetValue <bool>() &&
         Program.E2.IsReady())
     {
         Program.E2.Cast(Game.CursorPos);
     }
     if (!Player.IsBurrowed() &&
         menu.Item("reksai.escape.w1").GetValue <bool>() &&
         Program.W1.IsReady())
     {
         Program.W1.Cast();
     }
 }
示例#2
0
        static void Game_OnGameLoad(EventArgs args)
        {
            if (!Player.ChampionName.ToLowerInvariant().Contains("rek"))
            {
                return;
            }

            Utils.ClearConsole();

            Others.Print("TehBlaxxor's Rek'Sai successfully loaded!", Others.PrintType.Message);

            Q1 = new Spell(SpellSlot.Q, 300);
            UnburrowedSpells.Add(Q1);
            W1 = new Spell(SpellSlot.W, 250);
            UnburrowedSpells.Add(W1);
            E1 = new Spell(SpellSlot.E, 250);
            UnburrowedSpells.Add(E1);
            Q2 = new Spell(SpellSlot.Q, 1500, TargetSelector.DamageType.Magical);
            Q2.SetSkillshot(0.125f, 60, 4000, true, SkillshotType.SkillshotLine);
            BurrowedSpells.Add(Q2);
            W2 = new Spell(SpellSlot.W, 250);
            BurrowedSpells.Add(W2);
            E2 = new Spell(SpellSlot.E, 750);
            E2.SetSkillshot(0, 60, 1600, false, SkillshotType.SkillshotLine);
            BurrowedSpells.Add(E2);

            Flash  = Player.GetSpellSlot("SummonerFlash");
            Ignite = Player.GetSpellSlot("SummonerDot");

            AssemblyMenu.Setup();

            Utility.HpBarDamageIndicator.DamageToUnit = Others.GetDamageOn;
            Utility.HpBarDamageIndicator.Color        = System.Drawing.Color.White;
            Utility.HpBarDamageIndicator.Enabled      = true;

            Obj_AI_Hero.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
            Drawing.OnDraw         += Drawing_OnDraw;
            Game.OnUpdate          += Game_OnUpdate;
            Orbwalking.AfterAttack += Modes.Orbwalking_AfterAttack;
        }
示例#3
0
        public static void ManageW()
        {
            var target = TargetSelector.GetTarget(1500f, TargetSelector.DamageType.Physical);

            if (!Player.IsBurrowed())
            {
                if (menu.Item("reksai.rage.w1").GetValue <bool>() &&
                    Program.W1.IsReady() &&
                    Player.HealthPercent < 9 &&
                    Player.Mana > 0)
                {
                    Program.W1.Cast();
                }

                if (menu.Item("reksai.others.keybinds.combo").GetValue <KeyBind>().Active)
                {
                    if (!Program.Q1.ShouldBeCasted() &&
                        !Program.E1.ShouldBeCasted() &&
                        Program.W1.IsReady() &&
                        menu.Item("reksai.combo.w1").GetValue <bool>() &&
                        !Player.QActive())
                    {
                        Program.W1.Cast();
                    }

                    if (!Program.E1.IsInRange(target) &&
                        Player.Distance(target.Position) < Program.E2.Range &&
                        Program.W1.IsReady() &&
                        menu.Item("reksai.combo.w1").GetValue <bool>())
                    {
                        Program.W1.Cast();
                    }
                }

                else if (menu.Item("reksai.others.keybinds.jungle").GetValue <KeyBind>().Active)
                {
                    if (!Program.Q1.ShouldBeCasted() &&
                        !Program.E1.ShouldBeCasted() &&
                        Program.W1.IsReady() &&
                        menu.Item("reksai.jungle.w1").GetValue <bool>() &&
                        !Player.QActive())
                    {
                        Program.W1.Cast();
                    }
                }
            }
            else if (Player.IsBurrowed())
            {
                if (Program.W2.IsReady() &&
                    Player.CountEnemiesInRange(Program.W2.Range) > 3)
                {
                    Others.Print("Ideal knockup: " + Player.CountEnemiesInRange(Program.W2.Range) + " enemies. Overriding W permissions.", Others.PrintType.Warning);
                }

                if (menu.Item("reksai.others.keybinds.combo").GetValue <KeyBind>().Active)
                {
                    if (!Program.Q2.ShouldBeCasted() &&
                        Program.W2.IsReady() &&
                        menu.Item("reksai.combo.w2").GetValue <bool>() &&
                        Player.IsUnder(target))
                    {
                        Program.W2.Cast();
                    }
                }

                else if (menu.Item("reksai.others.keybinds.jungle").GetValue <KeyBind>().Active)
                {
                    var bestest = MinionManager.GetMinions(Program.Q1.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth).FirstOrDefault();
                    if (!Program.Q2.ShouldBeCasted() &&
                        Program.W2.IsReady() &&
                        menu.Item("reksai.jungle.w2").GetValue <bool>() &&
                        Player.IsUnder(bestest) &&
                        bestest != null)
                    {
                        Program.W2.Cast();
                    }
                }
            }
        }