Exemplo n.º 1
0
 private static void Drawing_OnDraw(EventArgs args)
 {
     if (Player.IsDead)
     {
         return;
     }
     if (menu.Item("Draw Q Range").GetValue <bool>())
     {
         Drawing.DrawCircle(Player.Position, Q.Range, System.Drawing.Color.Green);
     }
     if (menu.Item("Draw W Range").GetValue <bool>())
     {
         Drawing.DrawCircle(Player.Position, 700f, System.Drawing.Color.Green);
     }
     if (menu.Item("Draw E Range").GetValue <bool>())
     {
         Drawing.DrawCircle(Player.Position, 430f, System.Drawing.Color.Green);
     }
     if (menu.Item("Draw R Range").GetValue <bool>())
     {
         Drawing.DrawCircle(Player.Position, 375f, System.Drawing.Color.Green);
     }
     //draw % de vida
     if (menu.Item("DrawKilleableText").GetValue <bool>())
     {
         foreach (Obj_AI_Hero target in ObjectManager.Get <Obj_AI_Hero>().Where(x => x.IsEnemy).Where(x => !x.IsDead).Where(x => x.IsVisible).ToList())
         {
             if (target.Health <= GetComboDamage(Player))
             {
                 if (target.Health <= GetComboDamage(Player) - 300)
                 {
                     var wts = Drawing.WorldToScreen(target.Position);
                     Drawing.DrawText(wts[0] - 35, wts[1] + 10, System.Drawing.Color.Yellow, "Finish Him");
                 }
                 else
                 {
                     var wts = Drawing.WorldToScreen(target.Position);
                     Drawing.DrawText(wts[0] - 35, wts[1] + 10, System.Drawing.Color.Yellow, "Killeable");
                 }
             }
         }
     }
     if (menu.Item("InstaFlashRkey").GetValue <KeyBind>().Active&& menu.Item("DrawInsec").GetValue <bool>())
     {
         var target = TargetSelector.GetTarget(1300, TargetSelector.DamageType.Physical);
         var wtsx   = Drawing.WorldToScreen(InsecFinishPos(target));
         var wts    = Drawing.WorldToScreen(target.Position);
         var wtssx  = Drawing.WorldToScreen(target.Position);
         Drawing.DrawLine(wts[0], wts[1], wtsx[0], wtsx[1], 5f, System.Drawing.Color.Red);
         Render.Circle.DrawCircle(Insecpos(target), 110, System.Drawing.Color.Blue, 5);
     }
     if (menu.Item("inseckey").GetValue <KeyBind>().Active&& menu.Item("DrawInsec").GetValue <bool>())
     {
         var target = TargetSelector.GetTarget(1300, TargetSelector.DamageType.Physical);
         if (Program.menu.Item("Mode").GetValue <StringList>().SelectedIndex == 0)
         {
             //insec to tower
             if (WardJump.getNearTower(target) == null)
             {
                 //    Drawing.DrawText(wtsp[0]-35, wtsp[1]+10, System.Drawing.Color.Yellow, "Not Enemy on range.");
                 Game.PrintChat("not enemy on range");
             }
             else
             {
                 var wts    = Drawing.WorldToScreen(target.Position);
                 var wtssxt = Drawing.WorldToScreen(WardJump.getNearTower(target).Position);
                 Drawing.DrawLine(wts[0], wts[1], wtssxt[0], wtssxt[1], 5f, System.Drawing.Color.Red);
                 Render.Circle.DrawCircle(WardJump.getNearTower(target).Position, 110, System.Drawing.Color.Green, 5);
                 //    Render.Circle.DrawCircle(WardJump.InsecposToAlly(target), 110, System.Drawing.Color.Green, 5);
             }
         }
         if (Program.menu.Item("Mode").GetValue <StringList>().SelectedIndex == 1)
         {
             //insec to ally
             RenderCircles();
             var wts    = Drawing.WorldToScreen(Insec.insecAlly.Position);
             var wtssxt = Drawing.WorldToScreen(Insec.insecEnemy.Position);
             Drawing.DrawLine(wtssxt[0], wtssxt[1], wts[0], wts[1], 5f, System.Drawing.Color.Red);
             Render.Circle.DrawCircle(Insec.insecAlly.Position, 110, System.Drawing.Color.Blue, 5);
             Render.Circle.DrawCircle(WardJump.InsecposToAlly(Insec.insecEnemy, Insec.insecAlly), 110, System.Drawing.Color.Yellow, 5);
         }
         else if (Program.menu.Item("Mode").GetValue <StringList>().SelectedIndex == 2)
         {
             //insec to mouse
             var wtsx  = Drawing.WorldToScreen(InsecFinishPos(target));
             var wts   = Drawing.WorldToScreen(target.Position);
             var wtssx = Drawing.WorldToScreen(target.Position);
             Drawing.DrawLine(wts[0], wts[1], wtsx[0], wtsx[1], 5f, System.Drawing.Color.Red);
             Render.Circle.DrawCircle(WardJump.Insecpos(target), 110, System.Drawing.Color.Blue, 5);
         }
     }
 }
Exemplo n.º 2
0
 private static void Drawing_OnDraw(EventArgs args)
 {
     if (Player.IsDead)
     {
         return;
     }
     if (menu.Item("Draw Q%hit").GetValue <bool>())
     {
         Drawing.DrawText(10, 150, System.Drawing.Color.Yellow, "Total Q : " + QTotal);
         Drawing.DrawText(10, 175, System.Drawing.Color.Yellow, "Total Good Q : " + GoodQ);
         var percent = ((float)GoodQ / (float)QTotal) * 100f;
         Drawing.DrawText(10, 200, System.Drawing.Color.Yellow, "Q successful % : " + percent + "%");
     }
     if (menu.Item("DrawQ").GetValue <bool>())
     {
         Render.Circle.DrawCircle(Player.Position, Q.Range, Color.Green);
     }
     if (menu.Item("DrawW").GetValue <bool>())
     {
         Render.Circle.DrawCircle(Player.Position, 700f, Color.Green);
     }
     if (menu.Item("DrawE").GetValue <bool>())
     {
         Render.Circle.DrawCircle(Player.Position, 430f, Color.Green);
     }
     if (menu.Item("DrawR").GetValue <bool>())
     {
         Render.Circle.DrawCircle(Player.Position, 375f, Color.Green);
     }
     //draw % de vida
     foreach (Obj_AI_Hero hero in HeroManager.Enemies)
     {
         Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
         Utility.HpBarDamageIndicator.Enabled      = dmgAfterComboItem.GetValue <bool>();
         dmgAfterComboItem.ValueChanged           += delegate(object sender, OnValueChangeEventArgs eventArgs)
         { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>(); };
     }
     if (menu.Item("InstaFlashRkey").GetValue <KeyBind>().Active&& menu.Item("DrawInsec").GetValue <bool>())
     {
         var target = TargetSelector.GetTarget(1300, TargetSelector.DamageType.Physical);
         var wtsx   = Drawing.WorldToScreen(InsecFinishPos(target));
         var wts    = Drawing.WorldToScreen(target.Position);
         var wtssx  = Drawing.WorldToScreen(target.Position);
         Drawing.DrawLine(wts[0], wts[1], wtsx[0], wtsx[1], 5f, Color.Red);
         Render.Circle.DrawCircle(NormalInsec.Insecpos(target), 110, Color.Yellow, 5);
         Render.Circle.DrawCircle(WardJump.InsecposN2(target), 110, Color.Blue, 5);
     }
     if (menu.Item("inseckey").GetValue <KeyBind>().Active&& menu.Item("DrawInsec").GetValue <bool>())
     {
         var target = TargetSelector.GetTarget(1300, TargetSelector.DamageType.Physical);
         if (menu.Item("Mode").GetValue <StringList>().SelectedIndex == 0)
         {
             //insec to tower
             if (WardJump.getNearTower(target) == null)
             {
                 //    Drawing.DrawText(wtsp[0]-35, wtsp[1]+10, System.Drawing.Color.Yellow, "Not Enemy on range.");
                 Game.PrintChat("not enemy on range");
             }
             else
             {
                 var wts    = Drawing.WorldToScreen(target.Position);
                 var wtssxt = Drawing.WorldToScreen(WardJump.getNearTower(target).Position);
                 Drawing.DrawLine(wts[0], wts[1], wtssxt[0], wtssxt[1], 5f, Color.Red);
                 Render.Circle.DrawCircle(WardJump.getNearTower(target).Position, 110, Color.Green, 5);
                 //    Render.Circle.DrawCircle(WardJump.InsecposToAlly(target), 110, System.Drawing.Color.Green, 5);
             }
         }
         if (menu.Item("Mode").GetValue <StringList>().SelectedIndex == 1)
         {
             //insec to ally
             RenderCircles();
             if (NormalInsec.insecAlly != null && NormalInsec.insecEnemy != null)
             {
                 var wts    = Drawing.WorldToScreen(NormalInsec.insecAlly.Position);
                 var wtssxt = Drawing.WorldToScreen(NormalInsec.insecEnemy.Position);
                 Drawing.DrawLine(wtssxt[0], wtssxt[1], wts[0], wts[1], 5f, Color.Red);
                 Render.Circle.DrawCircle(NormalInsec.insecAlly.Position, 110, Color.Blue, 5);
                 Render.Circle.DrawCircle(
                     WardJump.InsecposToAlly(NormalInsec.insecEnemy, NormalInsec.insecAlly), 110,
                     Color.Yellow, 5);
             }
         }
         else if (menu.Item("Mode").GetValue <StringList>().SelectedIndex == 2)
         {
             //insec to mouse
             var wtsx  = Drawing.WorldToScreen(InsecFinishPos(target));
             var wts   = Drawing.WorldToScreen(target.Position);
             var wtssx = Drawing.WorldToScreen(target.Position);
             Drawing.DrawLine(wts[0], wts[1], wtsx[0], wtsx[1], 5f, Color.Red);
             Render.Circle.DrawCircle(WardJump.Insecpos(target), 110, Color.Blue, 5);
         }
     }
     var wtsxx = Drawing.WorldToScreen(Player.Position);
     //      Drawing.DrawText(wtsxx[0] - 35, wtsxx[1] + 10, System.Drawing.Color.Yellow, "mode :" +);
     //     Drawing.DrawText(wtsxx[0] - 35, wtsxx[1] + 10, System.Drawing.Color.Yellow, "step : " +NormalInsec.Steps);
 }