private static void OnDraw(EventArgs args) { if (AioModeSet != AioMode.UtilityOnly && Config.Item("debugOrb").GetValue <bool>()) { DrawFontTextScreen(TextBold, "mode: " + Orbwalker.ActiveMode.ToString().ToUpper(), Drawing.Width * 0.1f, Drawing.Height * 0.1f, Color.White); } if (Game.Time - DrawSpellTime < 0.5 && Config.Item("debugPred").GetValue <bool>() && (Config.Item("Qpred", true).GetValue <StringList>().SelectedIndex == 1 || Config.Item("Wpred", true).GetValue <StringList>().SelectedIndex == 1 || Config.Item("Epred", true).GetValue <StringList>().SelectedIndex == 1 || Config.Item("Rpred", true).GetValue <StringList>().SelectedIndex == 1)) { if (DrawSpell.Type == SkillshotType.SkillshotLine) { OktwCommon.DrawLineRectangle(DrawSpellPos.CastPosition, Player.Position, (int)DrawSpell.Width, 1, System.Drawing.Color.DimGray); } if (DrawSpell.Type == SkillshotType.SkillshotCircle) { Render.Circle.DrawCircle(DrawSpellPos.CastPosition, DrawSpell.Width, System.Drawing.Color.DimGray, 1); } drawText("Aiming " + DrawSpellPos.Hitchance, Player.Position.Extend(DrawSpellPos.CastPosition, 400), System.Drawing.Color.Gray); } if (AioModeSet != AioMode.UtilityOnly && spellFarmTimer + 1 > Game.Time && Config.Item("showNot").GetValue <bool>() && Config.Item("spellFarm") != null) { if (Config.Item("spellFarm").GetValue <bool>()) { DrawFontTextScreen(TextBold, "SPELLS FARM ON", Drawing.Width * 0.5f, Drawing.Height * 0.4f, Color.GreenYellow); } else { DrawFontTextScreen(TextBold, "SPELLS FARM OFF", Drawing.Width * 0.5f, Drawing.Height * 0.4f, Color.OrangeRed); } } }
private static void OnDraw(EventArgs args) { if (!SPredictionLoad && (int)Game.Time % 2 == 0 && Config.Item("PredictionMODE", true).GetValue <StringList>().SelectedIndex == 2) { drawText("PRESS F5 TO LOAD SPrediction", Player.Position, System.Drawing.Color.Yellow, -300); } /* * if (AIOmode == 1 || Config.Item("disableDraws").GetValue<bool>()) * return;//*/ if (Game.Time - dodgeTime < 0.01 && (int)(Game.Time * 10) % 2 == 0 && !Player.IsMelee && Config.Item("positioningAssistant").GetValue <bool>() && Config.Item("positioningAssistantDraw").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, dodgeRange, System.Drawing.Color.DimGray, 1); drawText("Anti-Melle Positioning Assistant", Player.Position, System.Drawing.Color.Gray); } if (Game.Time - DrawSpellTime < 0.5 && Config.Item("debugPred").GetValue <bool>() && Config.Item("PredictionMODE", true).GetValue <StringList>().SelectedIndex == 1) { if (DrawSpell.Type == SkillshotType.SkillshotLine) { OktwCommon.DrawLineRectangle(DrawSpellPos.CastPosition, Player.Position, (int)DrawSpell.Width, 1, System.Drawing.Color.DimGray); } if (DrawSpell.Type == SkillshotType.SkillshotCircle) { Render.Circle.DrawCircle(DrawSpellPos.CastPosition, DrawSpell.Width, System.Drawing.Color.DimGray, 1); } drawText("Aiming " + DrawSpellPos.Hitchance, Player.Position.Extend(DrawSpellPos.CastPosition, 400).To3DWorld(), System.Drawing.Color.Gray); } /* * if (AIOmode != 1 && Config.Item("timer").GetValue<bool>() && jungler != null) * { * if (jungler == Player) * drawText("Jungler not detected", Player.Position, System.Drawing.Color.Yellow, 100); * else if (jungler.IsDead) * drawText("Jungler dead " + timer, Player.Position, System.Drawing.Color.Cyan, 100); * else if (jungler.IsVisible) * drawText("Jungler visable " + timer, Player.Position, System.Drawing.Color.GreenYellow, 100); * else * { * if (timer > 0) * drawText("Jungler in jungle " + timer, Player.Position, System.Drawing.Color.Orange, 100); * else if ((int)(Game.Time * 10) % 2 == 0) * drawText("BE CAREFUL " + timer, Player.Position, System.Drawing.Color.OrangeRed, 100); * if (Game.Time - JungleTime >= 1) * { * timer = timer - 1; * JungleTime = Game.Time; * } * } * }//*/ }
private static void Drawing_OnDraw(EventArgs args) { if (!SPredictionLoad && (int)Game.Time % 2 == 0 && (Config["predmode"].GetValue <MenuList <string> >("Qpred").Index == 2 || Config["predmode"].GetValue <MenuList <string> >("Wpred").Index == 2 || Config["predmode"].GetValue <MenuList <string> >("Epred").Index == 2 || Config["predmode"].GetValue <MenuList <string> >("Rpred").Index == 2)) { drawText("PRESS F5 TO LOAD SPREDICTION", Player.Position, System.Drawing.Color.Yellow, -300); } if (spellFarmTimer + 1 > Game.Time && Config["farm"]["spellfarm"].GetValue <MenuBool>("showNot").Enabled) { if (Config["farm"]["spellfarm"].GetValue <MenuBool>("spellFarm").Enabled) { DrawFontTextScreen(TextBold, "SPELLS FARM ON", Drawing.Width * 0.5f, Drawing.Height * 0.4f, SharpDX.Color.GreenYellow); } else { DrawFontTextScreen(TextBold, "SPELLS FARM OFF", Drawing.Width * 0.5f, Drawing.Height * 0.4f, SharpDX.Color.OrangeRed); } } if (Config["draw"].GetValue <MenuBool>("disableDraws").Enabled) { return; } if (Game.Time - dodgeTime < 0.01 && (int)(Game.Time * 10) % 2 == 0 && !Player.IsMelee && Config["extraSet"]["antimelee"].GetValue <MenuBool>("positioningAssistant").Enabled && Config["extraSet"]["antimelee"].GetValue <MenuBool>("positioningAssistantDraw").Enabled) { Render.Circle.DrawCircle(Player.Position, dodgeRange, System.Drawing.Color.DimGray, 1); drawText("Anti-Melee Positioning Assistant", Player.Position, System.Drawing.Color.Gray); } if (Game.Time - DrawSpellTime < 0.5 && Config["predmode"].GetValue <MenuBool>("debugPred").Enabled&& (Config["predmode"].GetValue <MenuList <string> >("Qpred").Index == 1 || Config["predmode"].GetValue <MenuList <string> >("Wpred").Index == 1 || Config["predmode"].GetValue <MenuList <string> >("Epred").Index == 1 || Config["predmode"].GetValue <MenuList <string> >("Rpred").Index == 1)) { if (DrawSpell.Type == SkillshotType.Line) { OktwCommon.DrawLineRectangle(DrawSpellPos.CastPosition, Player.Position, (int)DrawSpell.Width, 1, System.Drawing.Color.DimGray); } if (DrawSpell.Type == SkillshotType.Circle) { Render.Circle.DrawCircle(DrawSpellPos.CastPosition, DrawSpell.Width, System.Drawing.Color.DimGray, 1); } drawText("Aiming " + DrawSpellPos.Hitchance, Player.Position.Extend(DrawSpellPos.CastPosition, 400), System.Drawing.Color.Gray); } }
private static void OnDraw(EventArgs args) { if (!SPredictionLoad && (int)Game.Time % 2 == 0 && Config.Item("PredictionMODE", true).GetValue <StringList>().SelectedIndex == 2) { drawText("PRESS F5 TO LOAD SPREDICTION", Player.Position, System.Drawing.Color.Yellow, -300); } if (Program.AIOmode != 2 && spellFarmTimer + 1 > Game.Time && Config.Item("showNot").GetValue <bool>() && Config.Item("spellFarm") != null) { if (Config.Item("spellFarm").GetValue <bool>()) { DrawFontTextScreen(TextBold, "SPELLS FARM ON", Drawing.Width * 0.5f, Drawing.Height * 0.4f, Color.GreenYellow); } else { DrawFontTextScreen(TextBold, "SPELLS FARM OFF", Drawing.Width * 0.5f, Drawing.Height * 0.4f, Color.OrangeRed); } } if (AIOmode == 1 || Config.Item("disableDraws").GetValue <bool>()) { return; } if (Game.Time - dodgeTime < 0.01 && (int)(Game.Time * 10) % 2 == 0 && !Player.IsMelee && Config.Item("positioningAssistant").GetValue <bool>() && Config.Item("positioningAssistantDraw").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, dodgeRange, System.Drawing.Color.DimGray, 1); drawText("Anti-Melle Positioning Assistant", Player.Position, System.Drawing.Color.Gray); } if (Game.Time - DrawSpellTime < 0.5 && Config.Item("debugPred").GetValue <bool>() && Config.Item("PredictionMODE", true).GetValue <StringList>().SelectedIndex == 1) { if (DrawSpell.Type == SkillshotType.SkillshotLine) { OktwCommon.DrawLineRectangle(DrawSpellPos.CastPosition, Player.Position, (int)DrawSpell.Width, 1, System.Drawing.Color.DimGray); } if (DrawSpell.Type == SkillshotType.SkillshotCircle) { Render.Circle.DrawCircle(DrawSpellPos.CastPosition, DrawSpell.Width, System.Drawing.Color.DimGray, 1); } drawText("Aiming " + DrawSpellPos.Hitchance, Player.Position.Extend(DrawSpellPos.CastPosition, 400), System.Drawing.Color.Gray); } if (AIOmode != 1 && Config.Item("timer").GetValue <bool>() && jungler != null) { if (jungler == Player) { drawText("Jungler not detected", Player.Position, System.Drawing.Color.Yellow, 100); } else if (jungler.IsDead) { drawText("Jungler dead " + timer, Player.Position, System.Drawing.Color.Cyan, 100); } else if (jungler.IsVisible) { drawText("Jungler visable " + timer, Player.Position, System.Drawing.Color.GreenYellow, 100); } else { if (timer > 0) { drawText("Jungler in jungle " + timer, Player.Position, System.Drawing.Color.Orange, 100); } else if ((int)(Game.Time * 10) % 2 == 0) { drawText("BE CAREFUL " + timer, Player.Position, System.Drawing.Color.OrangeRed, 100); } if (Game.Time - JungleTime >= 1) { timer = timer - 1; JungleTime = Game.Time; } } } }
private static void Drawing_OnDraw(EventArgs args) { if (!SPredictionLoad && (int)Game.Time % 2 == 0 && (Config["predictionmode"].GetValue <MenuList <string> >("Qpred").Index == 2 || Config["predictionmode"].GetValue <MenuList <string> >("Wpred").Index == 2 || Config["predictionmode"].GetValue <MenuList <string> >("Epred").Index == 2 || Config["predictionmode"].GetValue <MenuList <string> >("Rpred").Index == 2)) { drawText("SPREDICTION NOT UPDATED YET", Player.Position, System.Drawing.Color.Yellow, -300, true); } var sft = Config[Player.CharacterName]?["farm"]["spellsfarmtoggle"]; var sf = sft?.GetValue <MenuBool>("spellFarm"); if (AIOmode != 2 && spellFarmTimer + 1 > Game.Time && sft != null && sft.GetValue <MenuBool>("showNot").Value&& sf != null) { DrawFontTextScreen(TextBold, sf.Value ? "SPELLS FARM ON" : "SPELLS FARM OFF", Drawing.Width * 0.5f, Drawing.Height * 0.4f, sf.Value ? Color.GreenYellow : Color.OrangeRed); } if (AIOmode == 1 || Config["utilitydraws"].GetValue <MenuBool>("disableDraws").Value) { return; } if (Game.Time - DrawSpellTime < 0.5 && Config["predictionmode"].GetValue <MenuBool>("debugPred").Value&& (Config["predictionmode"].GetValue <MenuList <string> >("Qpred").Index == 1 || Config["predictionmode"].GetValue <MenuList <string> >("Wpred").Index == 1 || Config["predictionmode"].GetValue <MenuList <string> >("Epred").Index == 1 || Config["predictionmode"].GetValue <MenuList <string> >("Rpred").Index == 1)) { if (DrawSpell.Type == SkillshotType.SkillshotLine) { OktwCommon.DrawLineRectangle(DrawSpellPos.CastPosition, Player.Position, (int)DrawSpell.Width, 1, System.Drawing.Color.DimGray); } if (DrawSpell.Type == SkillshotType.SkillshotCircle) { Render.Circle.DrawCircle(DrawSpellPos.CastPosition, DrawSpell.Width, System.Drawing.Color.DimGray, 1); } drawText("Aiming " + DrawSpellPos.Hitchance, Player.Position.Extend(DrawSpellPos.CastPosition, 400), System.Drawing.Color.Gray); } if (Config["utilitydraws"]["ganktimer"].GetValue <MenuBool>("enabled").Value&& jungler != null) { if (jungler == Player) { drawText("Jungler not detected", Player.Position, System.Drawing.Color.Yellow, 100, true); } else if (jungler.IsDead) { drawText("Jungler dead " + timer, Player.Position, System.Drawing.Color.Cyan, 100, true); } else if (jungler.IsVisible) { drawText("Jungler visible " + timer, Player.Position, System.Drawing.Color.GreenYellow, 100, true); } else { if (timer > 0) { drawText("Junger in jungle " + timer, Player.Position, System.Drawing.Color.Orange, 100, true); } else if ((int)(Game.Time * 10) % 2 == 0) { drawText("BE CAREFUL " + timer, Player.Position, System.Drawing.Color.OrangeRed, 100, true); } if (Game.Time - JungleTime >= 1) { timer = timer - 1; JungleTime = Game.Time; } } } }
private void Drawing_OnDraw(EventArgs args) { if (QMissile != null && Config.Item("Qhelp").GetValue <bool>()) { OktwCommon.DrawLineRectangle(QMissile.Position, Player.Position, (int)Q.Width, 1, System.Drawing.Color.White); if (WMissile != null && WMissile.IsValid) { Utility.DrawCircle(WMissile.Position, 300, System.Drawing.Color.Yellow, 1, 1); drawText2("W: " + String.Format("{0:0.0}", Wtime + 3 - Game.Time), WMissile.Position, System.Drawing.Color.White); } if (WMissile2 != null && WMissile2.IsValid) { Utility.DrawCircle(WMissile2.Position, 300, System.Drawing.Color.Red, 1, 1); drawText2("W: " + String.Format("{0:0.0}", Wtime2 + 1 - Game.Time), WMissile2.Position, System.Drawing.Color.Red); } } if (Config.Item("watermark").GetValue <bool>()) { Drawing.DrawText(Drawing.Width * 0.2f, Drawing.Height * 0f, System.Drawing.Color.Cyan, "OneKeyToWin AIO - " + Player.ChampionName + " by Sebby"); } if (Config.Item("qRange").GetValue <bool>()) { if (Config.Item("onlyRdy").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").GetValue <bool>()) { if (Config.Item("onlyRdy").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").GetValue <bool>()) { if (Config.Item("onlyRdy").GetValue <bool>()) { if (E.IsReady()) { Utility.DrawCircle(ObjectManager.Player.Position, 800, System.Drawing.Color.Yellow, 1, 1); } } else { Utility.DrawCircle(ObjectManager.Player.Position, 800, System.Drawing.Color.Yellow, 1, 1); } } if (Config.Item("rRange").GetValue <bool>()) { if (RMissile != null && RMissile.IsValid) { if (Config.Item("rRange").GetValue <bool>()) { if (Config.Item("onlyRdy").GetValue <bool>()) { if (R.IsReady()) { Utility.DrawCircle(RMissile.Position, R.Width, System.Drawing.Color.YellowGreen, 1, 1); } } else { Utility.DrawCircle(RMissile.Position, R.Width, System.Drawing.Color.YellowGreen, 1, 1); } drawLine(RMissile.Position, Player.Position, 10, System.Drawing.Color.YellowGreen); } } } }
private void Drawing_OnDraw(EventArgs args) { if (QMissile != null && Config.Item("Qhelp", true).GetValue <bool>()) { OktwCommon.DrawLineRectangle(QMissile.Position, Player.Position, (int)Q.Width, 1, System.Drawing.Color.White); } if (Config.Item("notif", true).GetValue <bool>()) { if (Player.HasBuff("sivirwmarker")) { var color = System.Drawing.Color.Yellow; var buffTime = OktwCommon.GetPassiveTime(Player, "sivirwmarker"); if (buffTime < 1) { color = System.Drawing.Color.Red; } drawText2("W: " + String.Format("{0:0.0}", buffTime), Player.Position, 175, color); } if (Player.HasBuff("SivirE")) { var color = System.Drawing.Color.Aqua; var buffTime = OktwCommon.GetPassiveTime(Player, "SivirE"); if (buffTime < 1) { color = System.Drawing.Color.Red; } drawText2("E: " + String.Format("{0:0.0}", buffTime), Player.Position, 200, color); } if (Player.HasBuff("SivirR")) { var color = System.Drawing.Color.GreenYellow; var buffTime = OktwCommon.GetPassiveTime(Player, "SivirR"); if (buffTime < 1) { color = System.Drawing.Color.Red; } drawText2("R: " + String.Format("{0:0.0}", buffTime), Player.Position, 225, color); } } 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("noti", true).GetValue <bool>()) { var target = TargetSelector.GetTarget(1500, TargetSelector.DamageType.Physical); if (target.IsValidTarget()) { if (Q.GetDamage(target) * 2 > target.Health) { Render.Circle.DrawCircle(target.ServerPosition, 200, System.Drawing.Color.Red); Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.4f, System.Drawing.Color.Red, "Q kill: " + target.ChampionName + " have: " + target.Health + "hp"); } } } }