Example #1
0
        private static void Lane()
        {
            var minions = GameObjects.EnemyMinions.Where(m => m.IsMinion && m.IsEnemy && m.Team != GameObjectTeam.Neutral && m.LSIsValidTarget(1050));

            foreach (var m in minions)
            {
                if (MenuConfig.getCheckBoxItem(MenuConfig.laneclearMenu, "LaneR") && Spells.R.IsReady())
                {
                    if (Spells.Q.IsReady() && Player.ManaPercent >= MenuConfig.getSliderItem(MenuConfig.laneclearMenu, "LaneQ"))
                    {
                        Spells.R.Cast();
                    }
                }
                if (MenuConfig.getCheckBoxItem(MenuConfig.laneclearMenu, "LaneQ1") && Spells.Q.IsReady() && m.Health > Player.GetAutoAttackDamage(m))
                {
                    if (!(Player.ManaPercent >= MenuConfig.getSliderItem(MenuConfig.laneclearMenu, "LaneQ")))
                    {
                        return;
                    }
                    {
                        Spells.Q.Cast(m.ServerPosition);
                    }
                }
                if (MenuConfig.getCheckBoxItem(MenuConfig.laneclearMenu, "LaneE1") && Player.ManaPercent >= MenuConfig.getSliderItem(MenuConfig.laneclearMenu, "LaneE") && Spells.E.IsReady())
                {
                    if (!(Player.ManaPercent >= MenuConfig.getSliderItem(MenuConfig.laneclearMenu, "LaneE")))
                    {
                        return;
                    }
                    {
                        Spells.E.Cast(Player);
                    }
                }
            }
        }
Example #2
0
 public static void FrostQueen()
 {
     if (!MenuConfig.getCheckBoxItem(MenuConfig.itemMenu, "UseItems") || !MenuConfig.getCheckBoxItem(MenuConfig.itemMenu, "ItemFrostQueen"))
     {
         return;
     }
     if (Items.CanUseItem(3092) && Target.LSIsValidTarget())
     {
         Items.UseItem(3092, Target.ServerPosition);
     }
 }/*
Example #3
0
 public static void ProtoBelt()
 {
     if (!MenuConfig.getCheckBoxItem(MenuConfig.itemMenu, "UseItems") || !MenuConfig.getCheckBoxItem(MenuConfig.itemMenu, "ItemProtoBelt"))
     {
         return;
     }
     if (Items.CanUseItem(3152) && Target.LSIsValidTarget())
     {
         Items.UseItem(3152, Target.ServerPosition);
     }
 }
Example #4
0
        }/*
          * public static void Seraph()
          * {
          * if (!MenuConfig.UseItems || !MenuConfig.ItemSeraph) return;
          * if (Health.GetPrediction(Player, 250) <= Player.MaxHealth/4)
          * {
          *     if (Items.CanUseItem(3040))
          *     {
          *         Items.UseItem(3040);
          *     }
          * }
          * }*/

        public static void Locket()
        {
            if (!MenuConfig.getCheckBoxItem(MenuConfig.itemMenu, "UseItems") || !MenuConfig.getCheckBoxItem(MenuConfig.itemMenu, "ItemLocket"))
            {
                return;
            }
            if (Health.GetPrediction(Player, 250) <= Player.MaxHealth / 4)
            {
                if (Items.CanUseItem(3190))
                {
                    Items.UseItem(3190);
                }
            }
        }
Example #5
0
        public static void SelectedMantra(EventArgs args)
        {
            if (Player.IsDead || !MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "MantraDraw") || !MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "UseDrawings"))
            {
                return;
            }
            var heropos = Drawing.WorldToScreen(ObjectManager.Player.Position);

            if (MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "QRange") && MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 0)
            {
                Render.Circle.DrawCircle(Player.Position, Spells.Q.Range,
                                         Spells.R.IsReady() ? System.Drawing.Color.FromArgb(120, 0, 170, 255) : System.Drawing.Color.IndianRed);
            }

            if (MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "QRange") && MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 1)
            {
                Render.Circle.DrawCircle(Player.Position, Spells.W.Range,
                                         Spells.R.IsReady() ? System.Drawing.Color.FromArgb(120, 0, 170, 255) : System.Drawing.Color.IndianRed);
            }

            if (MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "QRange") && MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 2)
            {
                Render.Circle.DrawCircle(Player.Position, Spells.E.Range,
                                         Spells.R.IsReady() ? System.Drawing.Color.FromArgb(120, 0, 170, 255) : System.Drawing.Color.IndianRed);
            }

            if (MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "QRange") && MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 3)
            {
                Render.Circle.DrawCircle(Player.Position, Spells.Q.Range,
                                         Spells.R.IsReady() ? System.Drawing.Color.FromArgb(120, 0, 170, 255) : System.Drawing.Color.IndianRed);
            }

            if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 0)
            {
                Drawing.DrawText(heropos.X - 15, heropos.Y + 40, System.Drawing.Color.White, "Selected Prio: Q");
            }
            if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 1)
            {
                Drawing.DrawText(heropos.X - 15, heropos.Y + 40, System.Drawing.Color.White, "Selected Prio: W");
            }
            if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 2)
            {
                Drawing.DrawText(heropos.X - 15, heropos.Y + 40, System.Drawing.Color.White, "Selected Prio: E");
            }
            if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 3)
            {
                Drawing.DrawText(heropos.X - 15, heropos.Y + 40, System.Drawing.Color.White, "Selected Prio: Auto");
            }
        }
Example #6
0
 public static void OnDrawEnemy(EventArgs args)
 {
     if (Player.IsDead || !MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "UseDrawings") || !MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "Dind"))
     {
         return;
     }
     foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(x => x.LSIsValidTarget() && !x.IsZombie))
     {
         var EasyKill = Spells.Q.IsReady() && Dmg.IsLethal(enemy)
               ? new ColorBGRA(0, 255, 0, 120)
               : new ColorBGRA(255, 255, 0, 120);
         DrawHpBar.unit = enemy;
         DrawHpBar.drawDmg(Dmg.ComboDmg(enemy), EasyKill);
     }
 }
Example #7
0
        public static void Update(EventArgs args)
        {
            if (!MenuConfig.getCheckBoxItem(MenuConfig.trinketMenu, "Trinket") || Player.Level < 9 || !Player.InShop() || Items.HasItem(3363) || Items.HasItem(3364))
            {
                return;
            }

            switch (MenuConfig.getBoxItem(MenuConfig.trinketMenu, "TrinketList"))
            {
            case 0:
                Shop.BuyItem(ItemId.Oracle_Alteration);
                break;

            case 1:
                Shop.BuyItem(ItemId.Farsight_Alteration);
                break;
            }
        }
Example #8
0
 private static void Mixed()
 {
     if (MenuConfig.getCheckBoxItem(MenuConfig.harassMenu, "HarassR") && Spells.R.IsReady())
     {
         if (Spells.Q.IsReady() || Spells.E.IsReady())
         {
             Spells.R.Cast();
         }
     }
     if (MenuConfig.getCheckBoxItem(MenuConfig.harassMenu, "HarassQ1") && Spells.Q.IsReady())
     {
         if (!(Player.ManaPercent >= MenuConfig.getSliderItem(MenuConfig.harassMenu, "HarassQ")))
         {
             return;
         }
         {
             Spells.Q.Cast(Target);
         }
     }
     if (MenuConfig.getCheckBoxItem(MenuConfig.harassMenu, "HarassW1") && Spells.W.IsReady())
     {
         if (!(Player.ManaPercent >= MenuConfig.getSliderItem(MenuConfig.harassMenu, "HarassW")))
         {
             return;
         }
         {
             Spells.W.Cast(Target);
         }
     }
     if (MenuConfig.getCheckBoxItem(MenuConfig.harassMenu, "HarassE1") && Spells.E.IsReady())
     {
         if (!(Player.ManaPercent >= MenuConfig.getSliderItem(MenuConfig.harassMenu, "HarassE")))
         {
             return;
         }
         {
             Spells.E.Cast(Player);
         }
     }
 }