Example #1
0
File: Lux.cs Project: jayblah/Seph
        private static void OnDraw(EventArgs args)
        {
            if (Player.IsDead || Player.IsRecalling() || LuxUtils.Active("Drawing.Disable"))
            {
                return;
            }
            foreach (var x in Killable)
            {
                var pos = Drawing.WorldToScreen(x.ServerPosition);
                Drawing.DrawText(pos.X, pos.Y, System.Drawing.Color.Azure, "Killable");
            }

            if (LuxUtils.Active("Drawing.DrawQ"))
            {
                Render.Circle.DrawCircle(Player.Position, Spells[SpellSlot.Q].Range, System.Drawing.Color.White);
            }
            if (LuxUtils.Active("Drawing.DrawE"))
            {
                Render.Circle.DrawCircle(Player.Position, Spells[SpellSlot.E].Range, System.Drawing.Color.RoyalBlue);
            }
            if (LuxUtils.Active("Drawing.DrawR"))
            {
                Render.Circle.DrawCircle(Player.Position, Spells[SpellSlot.R].Range, System.Drawing.Color.Aqua);
            }

            if (LuxUtils.Active("Drawing.DrawRMM"))
            {
                Utility.DrawCircle(Player.Position, Spells[SpellSlot.R].Range, System.Drawing.Color.Aqua, 1, 23, true);
            }
        }
Example #2
0
        public Vector3 CalculateReturnPos()
        {
            if (Missile != null && Missile.IsValidMissile() && Target.IsValidTarget())
            {
                var finishPosition = Missile.Position;
                if (Missile.SData.Name.ToLower() == MissileName.ToLower())
                {
                    finishPosition = MissileEndPos;
                }

                var misToPlayer = Player.Distance(finishPosition);
                var tarToPlayer = Player.Distance(Target);

                if (misToPlayer > tarToPlayer)
                {
                    var misToTarget = Target.Distance(finishPosition);

                    if (misToTarget < QWER.Range && misToTarget > 50)
                    {
                        var cursorToTarget = Target.Distance(Player.Position.Extend(Game.CursorPos, 100));
                        var ext            = finishPosition.Extend(Target.ServerPosition, cursorToTarget + misToTarget);

                        if (ext.Distance(Player.Position) < 800 && ext.CountEnemiesInRange(400) < 2)
                        {
                            if (getCheckBoxItem("drawHelper"))
                            {
                                Utility.DrawCircle(ext.To3D(), 100, Color.White, 1, 1);
                            }
                            return(ext.To3D());
                        }
                    }
                }
            }
            return(Vector3.Zero);
        }
Example #3
0
 private static void Drawing_OnDraw(EventArgs args)
 {
     //Utility.DrawCircle(Game.CursorPos, E.Width, System.Drawing.Color.Cyan, 1, 1);
     if (getCheckBoxItem(draw, "qRange"))
     {
         if (getCheckBoxItem(draw, "onlyRdy"))
         {
             if (Q.IsReady())
             {
                 Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, Color.Cyan, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, Color.Cyan, 1, 1);
         }
     }
     if (getCheckBoxItem(draw, "wRange"))
     {
         if (getCheckBoxItem(draw, "onlyRdy"))
         {
             if (W.IsReady())
             {
                 Utility.DrawCircle(ObjectManager.Player.Position, W.Range, Color.Orange, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(ObjectManager.Player.Position, W.Range, Color.Orange, 1, 1);
         }
     }
     if (getCheckBoxItem(draw, "eRange"))
     {
         if (getCheckBoxItem(draw, "onlyRdy"))
         {
             if (E.IsReady())
             {
                 Utility.DrawCircle(ObjectManager.Player.Position, E.Range, Color.Yellow, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(ObjectManager.Player.Position, E.Range, Color.Yellow, 1, 1);
         }
     }
     if (getCheckBoxItem(draw, "rRange"))
     {
         if (getCheckBoxItem(draw, "onlyRdy"))
         {
             if (R.IsReady())
             {
                 Utility.DrawCircle(ObjectManager.Player.Position, R.Range, Color.Gray, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(ObjectManager.Player.Position, R.Range, Color.Gray, 1, 1);
         }
     }
 }
Example #4
0
 private void Drawing_OnEndScene(EventArgs args)
 {
     if (R.IsReady() && Config.Item("rRangeMini", true).GetValue <bool>())
     {
         Utility.DrawCircle(Player.Position, R.Range, System.Drawing.Color.Aqua, 1, 20, true);
     }
 }
Example #5
0
 private void Drawing_OnDraw(EventArgs args)
 {
     if (Config.Item("qRange", true).GetValue <bool>())
     {
         if (Config.Item("onlyRdy", true).GetValue <bool>())
         {
             if (Q.IsReady())
             {
                 Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, System.Drawing.Color.Cyan, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, System.Drawing.Color.Cyan, 1, 1);
         }
     }
     if (Config.Item("wRange", true).GetValue <bool>())
     {
         if (Config.Item("onlyRdy", true).GetValue <bool>())
         {
             if (W.IsReady())
             {
                 Utility.DrawCircle(ObjectManager.Player.Position, W.Range, System.Drawing.Color.Orange, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(ObjectManager.Player.Position, W.Range, System.Drawing.Color.Orange, 1, 1);
         }
     }
     if (Config.Item("eRange", true).GetValue <bool>())
     {
         if (Config.Item("onlyRdy", true).GetValue <bool>())
         {
             if (E.IsReady())
             {
                 Utility.DrawCircle(ObjectManager.Player.Position, E.Range, System.Drawing.Color.Yellow, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(ObjectManager.Player.Position, E.Range, System.Drawing.Color.Yellow, 1, 1);
         }
     }
     if (Config.Item("rRange", true).GetValue <bool>())
     {
         if (Config.Item("onlyRdy", true).GetValue <bool>())
         {
             if (R.IsReady())
             {
                 Utility.DrawCircle(ObjectManager.Player.Position, R.Range, System.Drawing.Color.Gray, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(ObjectManager.Player.Position, R.Range, System.Drawing.Color.Gray, 1, 1);
         }
     }
 }
Example #6
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "onlyRdy"))
            {
                if (FishBoneActive)
                {
                    Utility.DrawCircle(Player.Position, 590f + Player.BoundingRadius, Color.DeepPink, 1, 1);
                }
                else
                {
                    Utility.DrawCircle(Player.Position, bonusRange() - 40, Color.DeepPink, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "wRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (W.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, W.Range, Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, W.Range, Color.Cyan, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "eRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (E.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, E.Range, Color.Gray, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, E.Range, Color.Gray, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "noti"))
            {
                var t = TargetSelector.GetTarget(R.Range, DamageType.Physical);

                if (R.IsReady() && t.IsValidTarget() && R.GetDamage(t, 1) > t.Health)
                {
                    Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red,
                                     "Ult can kill: " + t.ChampionName + " have: " + t.Health + "hp");
                    drawLine(t.Position, Player.Position, 5, Color.Red);
                }
                else if (t.IsValidTarget(2000) && W.GetDamage(t) > t.Health)
                {
                    Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red,
                                     "W can kill: " + t.ChampionName + " have: " + t.Health + "hp");
                    drawLine(t.Position, Player.Position, 3, Color.Yellow);
                }
            }
        }
Example #7
0
 private static void onDraw(EventArgs args)
 {
     if (!getCheckBoxItem(debugMenu, "drawCir"))
     {
         return;
     }
     Utility.DrawCircle(MasterYi.player.Position, 600, Color.Green);
 }
Example #8
0
        private static void DrawingOnOnEndScene(EventArgs args)
        {
            var rCircle2 = getCheckBoxItem(drawings, "Rcircle2");

            if (rCircle2)
            {
                Utility.DrawCircle(ObjectManager.Player.Position, 5500, Color.FromArgb(255, 255, 255, 255), 1, 23, true);
            }
        }
Example #9
0
        private static void DrawingOnOnEndScene(EventArgs args)
        {
            var rCircle2 = Config.Item("Rcircle2").GetValue <Circle>();

            if (rCircle2.Active)
            {
                Utility.DrawCircle(ObjectManager.Player.Position, 5500, rCircle2.Color, 1, 23, true);
            }
        }
Example #10
0
        private void Drawing_OnDraw(EventArgs args)
        {
            if (Config.Item("qRange", true).GetValue <bool>())
            {
                if (Config.Item("onlyRdy", true).GetValue <bool>())
                {
                    if (Q.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, Q.Range, System.Drawing.Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, Q.Range, System.Drawing.Color.Cyan, 1, 1);
                }
            }

            if (Config.Item("cardInfo", true).GetValue <bool>() && Player.HasBuff("pickacard_tracker"))
            {
                if (FindCard == 1)
                {
                    drawText("SEEK YELLOW", Player.Position, System.Drawing.Color.Yellow, -70);
                }
                if (FindCard == 2)
                {
                    drawText("SEEK BLUE ", Player.Position, System.Drawing.Color.Aqua, -70);
                }
                if (FindCard == 3)
                {
                    drawText("SEEK RED ", Player.Position, System.Drawing.Color.OrangeRed, -70);
                }
            }


            if (R.IsReady() && Config.Item("notR", true).GetValue <bool>())
            {
                var t = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical);
                if (t.IsValidTargetLS())
                {
                    var comboDMG = Q.GetDamage(t) + W.GetDamage(t) + Player.GetAutoAttackDamage(t) * 3;
                    if (Player.HasBuff("destiny_marker"))
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, System.Drawing.Color.Yellow, "AUTO R TARGET: " + t.ChampionName + " Heal " + t.Health + " My damage: " + comboDMG);
                    }
                    else if (comboDMG > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, System.Drawing.Color.Red, "You can kill: " + t.ChampionName + " Heal " + t.Health + " My damage: " + comboDMG + " PRESS semi-manual cast");
                    }
                }
            }
        }
Example #11
0
        private void OnDraw(EventArgs args)
        {
            if (getSliderItem("TsAa") == 2)
            {
                return;
            }
            if (DrawInfo.IsValidTarget() && (int)(Game.Time * 10) % 2 == 0 && getCheckBoxItem("drawFocus"))
            {
                Utility.DrawCircle(Player.Position,
                                   Player.AttackRange + Player.BoundingRadius + getSliderItem("extraRang"), Color.Gray, 1, 1);

                drawText("FORCE FOCUS", DrawInfo.Position, Color.Orange);
            }
        }
Example #12
0
 private static void OnDrawEndScene(EventArgs args)
 {
     try
     {
         if (IsActive("Misc.Drawings.Minimap") && spells[Spells.R].Level > 0)
         {
             Utility.DrawCircle(ObjectManager.Player.Position, spells[Spells.R].Range, Color.White, 1, 23, true);
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Example #13
0
 private static void Drawing_OnEndScene(EventArgs args)
 {
     if (getCheckBoxItem(drawMenu, "rRangeMini"))
     {
         if (getCheckBoxItem(drawMenu, "onlyRdy"))
         {
             if (R.IsReady())
             {
                 Utility.DrawCircle(Player.Position, R.Range, Color.Aqua, 1, 20, true);
             }
         }
         else
         {
             Utility.DrawCircle(Player.Position, R.Range, Color.Aqua, 1, 20, true);
         }
     }
 }
Example #14
0
        private void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "qRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (Q.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, System.Drawing.Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, System.Drawing.Color.Cyan, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "eRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (E.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, E.Range, System.Drawing.Color.Yellow, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, E.Range, System.Drawing.Color.Yellow, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "rRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (R.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, R.Range, System.Drawing.Color.Gray, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, R.Range, System.Drawing.Color.Gray, 1, 1);
                }
            }
        }
Example #15
0
 private static void Drawing_OnDraw(EventArgs args)
 {
     if (getCheckBoxItem(draw, "qRange"))
     {
         if (getCheckBoxItem(draw, "onlyRdy"))
         {
             if (Q.IsReady())
             {
                 Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
         }
     }
     if (getCheckBoxItem(draw, "eRange"))
     {
         if (getCheckBoxItem(draw, "onlyRdy"))
         {
             if (E.IsReady())
             {
                 Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
         }
     }
     if (getCheckBoxItem(draw, "rRange"))
     {
         if (getCheckBoxItem(draw, "onlyRdy"))
         {
             if (R.IsReady())
             {
                 Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
         }
     }
 }
Example #16
0
        private static void OnDrawEndScene(EventArgs args)
        {
            try
            {
                if (Player.IsDead)
                {
                    return;
                }

                if (MenuInit.getCheckBoxItem(MenuInit.miscMenu, "Misc.Drawings.Minimap") && spells[Spells.R].Level > 0)
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, spells[Spells.R].Range, Color.White, 1, 23, true);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Example #17
0
 private static void Drawing_OnDraw(EventArgs args)
 {
     if (Config.Item("qRange").GetValue <bool>())
     {
         if (FishBoneActive)
         {
             Utility.DrawCircle(Player.Position, 590f + Player.BoundingRadius, System.Drawing.Color.Gray, 1, 1);
         }
         else
         {
             Utility.DrawCircle(Player.Position, Q.Range - 40, System.Drawing.Color.Gray, 1, 1);
         }
     }
     if (Config.Item("wRange").GetValue <bool>())
     {
         if (Config.Item("onlyRdy").GetValue <bool>())
         {
             if (W.IsReady())
             {
                 Utility.DrawCircle(Player.Position, W.Range, System.Drawing.Color.Gray, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(Player.Position, W.Range, System.Drawing.Color.Gray, 1, 1);
         }
     }
     if (Config.Item("eRange").GetValue <bool>())
     {
         if (Config.Item("onlyRdy").GetValue <bool>())
         {
             if (E.IsReady())
             {
                 Utility.DrawCircle(Player.Position, E.Range, System.Drawing.Color.Gray, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(Player.Position, E.Range, System.Drawing.Color.Gray, 1, 1);
         }
     }
 }
Example #18
0
 private static void Drawing_OnDraw(EventArgs args)
 {
     if (getCheckBoxItem(drawMenu, "qRange"))
     {
         if (FishBoneActive)
         {
             Utility.DrawCircle(Player.Position, 590f + Player.BoundingRadius, System.Drawing.Color.Gray, 1, 1);
         }
         else
         {
             Utility.DrawCircle(Player.Position, Q.Range - 40, System.Drawing.Color.Gray, 1, 1);
         }
     }
     if (getCheckBoxItem(drawMenu, "wRange"))
     {
         if (getCheckBoxItem(drawMenu, "onlyRdy"))
         {
             if (W.IsReady())
             {
                 Utility.DrawCircle(Player.Position, W.Range, System.Drawing.Color.Gray, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(Player.Position, W.Range, System.Drawing.Color.Gray, 1, 1);
         }
     }
     if (getCheckBoxItem(drawMenu, "eRange"))
     {
         if (getCheckBoxItem(drawMenu, "onlyRdy"))
         {
             if (E.IsReady())
             {
                 Utility.DrawCircle(Player.Position, E.Range, System.Drawing.Color.Gray, 1, 1);
             }
         }
         else
         {
             Utility.DrawCircle(Player.Position, E.Range, System.Drawing.Color.Gray, 1, 1);
         }
     }
 }
Example #19
0
        private void Drawing_OnEndScene(EventArgs args)
        {
            if (getCheckBoxItem("minimap"))
            {
                foreach (var enemy in Program.Enemies)
                {
                    if (!enemy.IsVisible)
                    {
                        var ChampionInfoOne = OKTWtracker.ChampionInfoList.Find(x => x.NetworkId == enemy.NetworkId);
                        if (ChampionInfoOne != null)
                        {
                            var wts = Drawing.WorldToMinimap(ChampionInfoOne.LastVisablePos);
                            DrawFontTextScreen(Tahoma13, enemy.ChampionName[0] + enemy.ChampionName[1].ToString(),
                                               wts[0], wts[1], SharpDX.Color.Yellow);
                        }
                    }
                }
            }
            if (getCheckBoxItem("showWards"))
            {
                foreach (var obj in OKTWward.HiddenObjList)
                {
                    if (obj.type == 1)
                    {
                        Utility.DrawCircle(obj.pos, 100, Color.Yellow, 3, 20, true);
                    }

                    if (obj.type == 2)
                    {
                        Utility.DrawCircle(obj.pos, 100, Color.HotPink, 3, 20, true);
                    }

                    if (obj.type == 3)
                    {
                        Utility.DrawCircle(obj.pos, 100, Color.Orange, 3, 20, true);
                    }
                }
            }
        }
Example #20
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var qValue = getCheckBoxItem(drawMenu, "DrawQRange");

            if (qValue)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, Q3.Range, Color.FromArgb(100, 255, 0, 255));
            }

            var wValue = getCheckBoxItem(drawMenu, "DrawWRange");

            if (wValue)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, W.Range, Color.FromArgb(100, 255, 255, 255));
            }

            var eValue = getCheckBoxItem(drawMenu, "DrawERange");

            if (eValue)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, E.Range, Color.FromArgb(100, 255, 255, 255));
            }

            var rValue = getCheckBoxItem(drawMenu, "DrawRRange");

            if (rValue)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, R.Range, Color.FromArgb(100, 255, 255, 255));
            }

            var rValueM = getCheckBoxItem(drawMenu, "DrawRRangeM");

            if (rValueM)
            {
                Utility.DrawCircle(ObjectManager.Player.Position, R.Range, Color.FromArgb(100, 255, 255, 255), 2, 30,
                                   true);
            }
        }
Example #21
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "qRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (Q.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "wRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (W.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, W.Range, Color.Orange, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, W.Range, Color.Orange, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "eRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (E.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "rRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (R.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
                }
            }


            if (getCheckBoxItem(drawMenu, "noti"))
            {
                var target = TargetSelector.GetTarget(1500, DamageType.Physical);
                if (target.IsValidTarget())
                {
                    var poutput = Q.GetPrediction(target);
                    if ((int)poutput.Hitchance == 5)
                    {
                        Render.Circle.DrawCircle(poutput.CastPosition, 50, Color.YellowGreen);
                    }
                    if (Q.GetDamage(target) > target.Health)
                    {
                        Render.Circle.DrawCircle(target.ServerPosition, 200, Color.Red);
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.4f, Color.Red,
                                         "Q kill: " + target.ChampionName + " have: " + target.Health + "hp");
                    }
                    else if (Q.GetDamage(target) + W.GetDamage(target) > target.Health)
                    {
                        Render.Circle.DrawCircle(target.ServerPosition, 200, Color.Red);
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.4f, Color.Red,
                                         "Q + W kill: " + target.ChampionName + " have: " + target.Health + "hp");
                    }
                    else if (Q.GetDamage(target) + W.GetDamage(target) + E.GetDamage(target) > target.Health)
                    {
                        Render.Circle.DrawCircle(target.ServerPosition, 200, Color.Red);
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.4f, Color.Red,
                                         "Q + W + E kill: " + target.ChampionName + " have: " + target.Health + "hp");
                    }
                }
            }
        }
Example #22
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "notif"))
            {
                if (Player.HasBuff("sivirwmarker"))
                {
                    var color    = Color.Yellow;
                    var buffTime = OktwCommon.GetPassiveTime(Player, "sivirwmarker");
                    if (buffTime < 1)
                    {
                        color = Color.Red;
                    }
                    drawText2("W:  " + string.Format("{0:0.0}", buffTime), Player.Position, 175, color);
                }
                if (Player.HasBuff("SivirE"))
                {
                    var color    = Color.Aqua;
                    var buffTime = OktwCommon.GetPassiveTime(Player, "SivirE");
                    if (buffTime < 1)
                    {
                        color = Color.Red;
                    }
                    drawText2("E:  " + string.Format("{0:0.0}", buffTime), Player.Position, 200, color);
                }
                if (Player.HasBuff("SivirR"))
                {
                    var color    = Color.GreenYellow;
                    var buffTime = OktwCommon.GetPassiveTime(Player, "SivirR");
                    if (buffTime < 1)
                    {
                        color = Color.Red;
                    }
                    drawText2("R:  " + string.Format("{0:0.0}", buffTime), Player.Position, 225, color);
                }
            }

            if (getCheckBoxItem(drawMenu, "qRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (Q.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, Color.Cyan, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "noti"))
            {
                var target = TargetSelector.GetTarget(1500, DamageType.Physical);
                if (target.LSIsValidTarget())
                {
                    if (Q.GetDamage(target) * 2 > target.Health)
                    {
                        Render.Circle.DrawCircle(target.ServerPosition, 200, Color.Red);
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.4f, Color.Red,
                                         "Q kill: " + target.ChampionName + " have: " + target.Health + "hp");
                    }
                }
            }
        }
Example #23
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "notif"))
            {
                if (Player.HasBuff("TwitchHideInShadows"))
                {
                    drawText2(
                        "Q:  " + string.Format("{0:0.0}", OktwCommon.GetPassiveTime(Player, "TwitchHideInShadows")),
                        Player.Position, Color.Yellow);
                }
                if (Player.HasBuff("twitchhideinshadowsbuff"))
                {
                    drawText2(
                        "Q AS buff:  " +
                        string.Format("{0:0.0}", OktwCommon.GetPassiveTime(Player, "twitchhideinshadowsbuff")),
                        Player.Position, Color.YellowGreen);
                }
                if (Player.HasBuff("TwitchFullAutomatic"))
                {
                    drawText2(
                        "R ACTIVE:  " +
                        string.Format("{0:0.0}", OktwCommon.GetPassiveTime(Player, "TwitchFullAutomatic")),
                        Player.Position, Color.OrangeRed);
                }
            }

            foreach (
                var enemy in
                Program.Enemies.Where(enemy => enemy.IsValidTarget(2000) && enemy.HasBuff("TwitchDeadlyVenom")))
            {
                if (passiveDmg(enemy) > enemy.Health)
                {
                    drawText("IS DEAD", enemy, Color.Yellow);
                }
            }

            if (getCheckBoxItem(drawMenu, "eRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (E.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, E.Range, Color.Yellow, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, E.Range, Color.Yellow, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "rRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (R.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, R.Range, Color.Gray, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, R.Range, Color.Gray, 1, 1);
                }
            }
        }
Example #24
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (BallPos.IsValid())
            {
                if (getCheckBoxItem(drawMenu, "wRange"))
                {
                    if (getCheckBoxItem(drawMenu, "onlyRdy"))
                    {
                        if (W.IsReady())
                        {
                            Utility.DrawCircle(BallPos, W.Range, Color.Orange, 1, 1);
                        }
                    }
                    else
                    {
                        Utility.DrawCircle(BallPos, W.Range, Color.Orange, 1, 1);
                    }
                }

                if (getCheckBoxItem(drawMenu, "rRange"))
                {
                    if (getCheckBoxItem(drawMenu, "onlyRdy"))
                    {
                        if (R.IsReady())
                        {
                            Utility.DrawCircle(BallPos, R.Range, Color.Gray, 1, 1);
                        }
                    }
                    else
                    {
                        Utility.DrawCircle(BallPos, R.Range, Color.Gray, 1, 1);
                    }
                }
            }

            if (getCheckBoxItem(drawMenu, "qRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (Q.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, Q.Range, Color.Cyan, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "eRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (E.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, E.Range, Color.Yellow, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, E.Range, Color.Yellow, 1, 1);
                }
            }
        }
Example #25
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "qRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (Q.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "wRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (W.IsReady())
                    {
                        Utility.DrawCircle(ObjectManager.Player.Position, W.Range, Color.Orange, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(ObjectManager.Player.Position, W.Range, Color.Orange, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "eRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (E.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "rRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (R.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
                }
            }
            if (R.IsReady() && getCheckBoxItem(drawMenu, "noti"))
            {
                var t = TargetSelector.GetTarget(R.Range, DamageType.Magical);

                if (t.IsValidTarget() && OktwCommon.GetKsDamage(t, R) > t.Health)
                {
                    Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red,
                                     "Ult can kill: " + t.ChampionName + " Heal - damage =  " +
                                     (t.Health - OktwCommon.GetKsDamage(t, R)) + " hp");
                }
            }
        }
Example #26
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "qRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (Q.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "wRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (W.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, W.Range, Color.Orange, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, W.Range, Color.Orange, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "eRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (E.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "noti"))
            {
                var t = TargetSelector.GetTarget(1500, DamageType.Physical);

                if (t.IsValidTarget())
                {
                    var comboDmg = 0f;
                    if (R.IsReady())
                    {
                        comboDmg += R.GetDamage(t) * 3;
                    }
                    if (Q.IsReady())
                    {
                        comboDmg += Q.GetDamage(t) * 2;
                    }
                    if (W.IsReady())
                    {
                        comboDmg += W.GetDamage(t) + W.GetDamage(t, 1);
                    }
                    if (comboDmg > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red,
                                         "COMBO KILL " + t.NetworkId + " have: " + t.Health + "hp");
                        drawLine(t.Position, Player.Position, 10, Color.Yellow);
                    }
                }
            }
        }
Example #27
0
        private static void onDraw(EventArgs args)
        {
            if (Config.Item("disDraw").GetValue <bool>())
            {
                return;
            }



            Drawing.DrawText(100, 100, Color.Red, "targ Spells: " + TargetSpellDetector.ActiveTargeted.Count);

            foreach (Obj_AI_Base jun in MinionManager.GetMinions(Yasuo.Player.ServerPosition, 700, MinionTypes.All, MinionTeam.Neutral))
            {
                Drawing.DrawCircle(jun.Position, 70, Color.Green);
                Vector2 posAfterE = Yasuo.Player.ServerPosition.To2D() + (Vector2.Normalize(jun.ServerPosition.To2D() - Yasuo.Player.ServerPosition.To2D()) * 475);
                // Vector2 posAfterE = Yasuo.Player.Position.To2D().Extend(jun.Position.To2D(), 475);//jun.ServerPosition.To2D().Extend() + (Vector2.Normalize(Yasuo.Player.Position.To2D() - jun.ServerPosition.To2D()) * 475);
                Drawing.DrawCircle(posAfterE.To3D(), 50, Color.Violet);
                Vector3 posAfterDash = Yasuo.Player.GetPath(posAfterE.To3D()).Last();
                Drawing.DrawCircle(posAfterDash, 50, Color.DarkRed);
            }

            if (Config.Item("drawQ").GetValue <bool>())
            {
                Utility.DrawCircle(Yasuo.Player.Position, 475, (Yasuo.isDashigPro) ? Color.Red : Color.Blue, 10, 10);
            }
            if (Config.Item("drawR").GetValue <bool>())
            {
                Utility.DrawCircle(Yasuo.Player.Position, 1200, Color.Blue);
            }

            if (Config.Item("flee").GetValue <KeyBind>().Active&& Config.Item("drawWJ").GetValue <bool>())
            {
                Utility.DrawCircle(Game.CursorPos, 350, Color.Cyan);

                Utility.DrawCircle(Yasuo.lastDash.from, 60, Color.BlueViolet);
                Utility.DrawCircle(Yasuo.lastDash.to, 60, Color.BlueViolet);

                foreach (Yasuo.YasDash dash in Yasuo.dashes)
                {
                    if (dash.from.Distance(Game.CursorPos) < 1200)
                    {
                        var SA = Drawing.WorldToScreen(dash.from);
                        var SB = Drawing.WorldToScreen(dash.to);
                        Drawing.DrawLine(SA.X, SA.Y, SB.X, SB.Y, 3, Color.Green);
                    }
                }
            }


            /*   if ((int)NavMesh.GetCollisionFlags(Game.CursorPos) == 2 || (int)NavMesh.GetCollisionFlags(Game.CursorPos) == 64)
             *  Drawing.DrawCircle(Game.CursorPos, 70, Color.Green);
             * if (map.isWall(Game.CursorPos.To2D()))
             *  Drawing.DrawCircle(Game.CursorPos, 100, Color.Red);
             *
             * foreach (Polygon pol in map.poligs)
             * {
             *  pol.Draw(Color.BlueViolet, 3);
             * }
             *
             * foreach(Obj_AI_Base jun in MinionManager.GetMinions(Yasuo.Player.ServerPosition,700,MinionTypes.All,MinionTeam.Neutral))
             * {
             *  Drawing.DrawCircle(jun.Position, 70, Color.Green);
             *   SharpDX.Vector2 proj = map.getClosestPolygonProj(jun.ServerPosition.To2D());
             *   SharpDX.Vector2 posAfterE = jun.ServerPosition.To2D() + (SharpDX.Vector2.Normalize(proj - jun.ServerPosition.To2D() ) * 475);
             *   Drawing.DrawCircle(posAfterE.To3D(), 50, Color.Violet);
             * }
             *
             * foreach (MissileClient mis in skillShots)
             * {
             *  Drawing.DrawCircle(mis.Position, 47, Color.Orange);
             *  Drawing.DrawCircle(mis.EndPosition, 100, Color.BlueViolet);
             * Drawing.DrawCircle(mis.SpellCaster.Position, Yasuo.Player.BoundingRadius + mis.SData.LineWidth, Color.DarkSalmon);
             *  Drawing.DrawCircle(mis.StartPosition, 70, Color.Green);
             * }*/
        }
Example #28
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "showcd"))
            {
                var msg = " ";

                if (Range)
                {
                    msg = "Q " + (int)Q2cd + "   W " + (int)W2cd + "   E " + (int)E2cd;
                    Drawing.DrawText(Drawing.Width * 0.5f - 50, Drawing.Height * 0.3f, Color.Orange, msg);
                }
                else
                {
                    msg = "Q " + (int)Qcd + "   W " + (int)Wcd + "   E " + (int)Ecd;
                    Drawing.DrawText(Drawing.Width * 0.5f - 50, Drawing.Height * 0.3f, Color.Aqua, msg);
                }
            }


            if (getCheckBoxItem(drawMenu, "qRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (Q.IsReady())
                    {
                        if (Range)
                        {
                            Utility.DrawCircle(Player.Position, CanUseQE() ? Qext.Range : Q.Range, Color.Cyan, 1, 1);
                        }
                        else
                        {
                            Utility.DrawCircle(Player.Position, Q2.Range, Color.Orange, 1, 1);
                        }
                    }
                }
                else
                {
                    if (Range)
                    {
                        Utility.DrawCircle(Player.Position, CanUseQE() ? Qext.Range : Q.Range, Color.Cyan, 1, 1);
                    }
                    else
                    {
                        Utility.DrawCircle(Player.Position, Q2.Range, Color.Orange, 1, 1);
                    }
                }
            }

            if (getCheckBoxItem(drawMenu, "noti"))
            {
                var t = TargetSelector.GetTarget(1600, DamageType.Physical);

                if (t.LSIsValidTarget())
                {
                    var damageCombo = GetComboDMG(t);
                    if (damageCombo > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red,
                                         "Combo deal  " + damageCombo + " to " + t.ChampionName);
                        drawLine(t.Position, Player.Position, 10, Color.Yellow);
                    }
                }
            }
        }
Example #29
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "noti") && R.IsReady())
            {
                var t = TargetSelector.GetTarget(R.Range, DamageType.Physical);

                if (t.LSIsValidTarget())
                {
                    var rDamage = R.GetDamage(t) + W.GetDamage(t) * 10;
                    if (rDamage * 8 > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.GreenYellow,
                                         "8 x R wave can kill: " + t.ChampionName + " have: " + t.Health + "hp");
                        drawLine(t.Position, Player.Position, 10, Color.GreenYellow);
                    }
                    else if (rDamage * 5 > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Orange,
                                         "5 x R wave can kill: " + t.ChampionName + " have: " + t.Health + "hp");
                        drawLine(t.Position, Player.Position, 10, Color.Orange);
                    }
                    else if (rDamage * 3 > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Yellow,
                                         "3 x R wave can kill: " + t.ChampionName + " have: " + t.Health + "hp");
                        drawLine(t.Position, Player.Position, 10, Color.Yellow);
                    }
                    else if (rDamage > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red,
                                         "1 x R wave can kill: " + t.ChampionName + " have: " + t.Health + "hp");
                        drawLine(t.Position, Player.Position, 10, Color.Red);
                    }
                }
            }

            if (getCheckBoxItem(drawMenu, "QRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (W.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "ERange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (E.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, E.Range, Color.Orange, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, E.Range, Color.Orange, 1, 1);
                }
            }
            if (getCheckBoxItem(drawMenu, "RRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (R.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
                }
            }
        }
Example #30
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(drawMenu, "qRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (Q.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, Q.Range, Color.Cyan, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "wRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (W.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, W.Range, Color.Orange, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, W.Range, Color.Orange, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "eRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (E.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, E.Range, Color.Yellow, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "rRange"))
            {
                if (getCheckBoxItem(drawMenu, "onlyRdy"))
                {
                    if (R.IsReady())
                    {
                        Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
                    }
                }
                else
                {
                    Utility.DrawCircle(Player.Position, R.Range, Color.Gray, 1, 1);
                }
            }

            if (getCheckBoxItem(drawMenu, "noti") && R.IsReady())
            {
                var t = TargetSelector.GetTarget(R.Range, DamageType.Physical);

                if (t.IsValidTarget())
                {
                    var rDamage = R.GetDamage(t);
                    if (rDamage * 3 > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red,
                                         "3发R 可击杀: " + t.ChampionName + " 剩下: " + t.Health + "hp");
                        drawLine(t.Position, Player.Position, 10, Color.Yellow);
                    }
                    else if (rDamage * 2 > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red,
                                         "2发R 可击杀: " + t.ChampionName + " 剩下: " + t.Health + "hp");
                        drawLine(t.Position, Player.Position, 10, Color.Yellow);
                    }
                    else if (rDamage > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red,
                                         "1发R 可击杀: " + t.ChampionName + " 剩下: " + t.Health + "hp");
                        drawLine(t.Position, Player.Position, 10, Color.Yellow);
                    }
                }
            }
        }