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); } }
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); } } }
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); } }
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); }
public static void Initialize(Utility.HpBarDamageIndicator.DamageToUnitDelegate damageToUnit) { _damageToUnit = damageToUnit; DrawingColor = Color.Green.ToArgb(150); Enabled = true; Drawing.OnDraw += OnDrawingDraw; }
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); } } }
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); } } }
private static void onDraw(EventArgs args) { if (!getCheckBoxItem(debugMenu, "drawCir")) { return; } Utility.DrawCircle(MasterYi.player.Position, 600, Color.Green); }
public static void Initialize(Utility.HpBarDamageIndicator.DamageToUnitDelegate damageToUnit) { CustomDamageIndicator.damageToUnit = damageToUnit; DrawingColor = Color.LawnGreen; Enabled = true; Drawing.OnDraw += Drawing_OnDraw; }
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); } }
public static void Initialize(Utility.HpBarDamageIndicator.DamageToUnitDelegate damageToUnit) { // Apply needed field delegate for damage calculation _damageToUnit = damageToUnit; DrawingColor = Color.Green; Enabled = true; // Register event handlers Drawing.OnDraw += Drawing_OnDraw; }
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); } }
private static void AutoR() { if (_player.HasBuff("Recall") || _player.InFountain()) { return; } if (getCheckBoxItem(utilityMenu, "onmeR") && (_player.Health / _player.MaxHealth) * 100 <= getSliderItem(utilityMenu, "ultiSelfHP") && _r.IsReady() && Utility.LSCountEnemiesInRange(650) > 0) { _r.Cast(_player); } }
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"); } } } }
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); } }
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); } }
public DamageIndicator(Utility.HpBarDamageIndicator.DamageToUnitDelegate _delegate, int range, bool debugger=false) { DxLine=new Line(DxDevice) {Width=9}; _debugger=debugger; Range=range; _damageToUnitDelegate=_delegate; LeagueSharp.Drawing.OnDraw+=Drawing_OnDraw; LeagueSharp.Drawing.OnPreReset+=DrawingOnOnPreReset; LeagueSharp.Drawing.OnPostReset+=DrawingOnOnPostReset; AppDomain.CurrentDomain.DomainUnload+=CurrentDomainOnDomainUnload; AppDomain.CurrentDomain.ProcessExit+=CurrentDomainOnDomainUnload; }
public AltarObject(float spawnTime, float respawnTime, Vector3 position, string objectNameAlly, string objectNameEnemy, Utility.Map.MapType mapType) { SpawnTime = spawnTime; RespawnTime = respawnTime; ObjectNameAlly = objectNameAlly; ObjectNameEnemy = objectNameEnemy; Position = position; MinimapPosition = Drawing.WorldToMinimap(Position); MapType = mapType; }
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); } } }
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); } } }
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); } } }
public static Vector3 IsSafe(AIHeroClient target, Vector3 vec, bool checkTarget = true) { if (Program.DontSafeCheck) { return(vec); } if (checkTarget) { if (target.ServerPosition.LSTo2D().LSDistance(vec) <= target.AttackRange) { if (vec.CountEnemiesInRange(1000) > 1) { return(Vector3.Zero); } if (target.ServerPosition.LSTo2D().LSDistance(vec) <= target.AttackRange / 2f) { return (SCommon.Maths.Geometry.Deviation(ObjectManager.Player.ServerPosition.LSTo2D(), target.ServerPosition.LSTo2D(), 60).To3D()); } } if (((Program.DontQIntoEnemies || target.IsMelee) && HeroManager.Enemies.Any( p => p.ServerPosition.LSTo2D().LSDistance(vec) <= p.AttackRange + ObjectManager.Player.BoundingRadius + (p.IsMelee ? 100 : 0))) || Utility.UnderTurret(vec, true)) { return(Vector3.Zero); } } if ( HeroManager.Enemies.Any( p => p.NetworkId != target.NetworkId && p.ServerPosition.LSTo2D().LSDistance(vec) <= p.AttackRange + (p.IsMelee ? 50 : 0)) || Utility.UnderTurret(vec, true)) { return(Vector3.Zero); } return(vec); }
public static void Initialize(Utility.HpBarDamageIndicator.DamageToUnitDelegate damageToUnit) { if (initialized) return; // Apply needed field delegate for damage calculation CustomDamageIndicator.damageToUnit = damageToUnit; Color = System.Drawing.Color.Aqua; // Register event handlers Drawing.OnDraw += Drawing_OnDraw; Drawing.OnPreReset += Drawing_OnPreReset; Drawing.OnPostReset += Drawing_OnOnPostReset; AppDomain.CurrentDomain.DomainUnload += OnProcessExit; AppDomain.CurrentDomain.ProcessExit += OnProcessExit; initialized = true; }
private static void Escape() { var target = TargetSelector.GetTarget(_q.Range, DamageType.Magical); Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos); if (_player.Spellbook.CanUseSpell(SpellSlot.W) == SpellState.Ready && _player.IsMe) { if (_w.IsReady() && Utility.LSCountEnemiesInRange(1200) > 0) { _player.Spellbook.CastSpell(SpellSlot.W, _player); } } if (target.LSIsValidTarget(_q.Range) && _q.IsReady()) { _q.Cast(target); } }
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); } }
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); } } }
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); } } }
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); } } } }
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); } }
private static void AllyW() { foreach (var hero in ObjectManager.Get <AIHeroClient>().Where(hero => hero.IsAlly && !hero.IsMe)) { if (_player.HasBuff("Recall") || hero.HasBuff("Recall") || hero.InFountain()) { return; } if (!hero.LSIsValidTarget(_w.Range)) { return; } if (getCheckBoxItem(utilityMenu, "allyW") && (hero.Health / hero.MaxHealth) * 100 <= getSliderItem(utilityMenu, "allyhealper") && _w.IsReady() && Utility.LSCountEnemiesInRange(1200) > 0 && hero.LSDistance(_player.ServerPosition) <= _w.Range) { if (getCheckBoxItem(utilityMenu, "usewally" + hero.BaseSkinName) == true) { _w.Cast(hero); } } } }
public JungleCamp(String name, GameObjectTeam team, int campId, int spawnTime, int respawnTime, Utility.Map.MapType mapType, Vector3 mapPosition, Vector3 minimapPosition, JungleMob[] creeps) { Name = name; Team = team; CampId = campId; SpawnTime = spawnTime; RespawnTime = respawnTime; MapType = mapType; MapPosition = mapPosition; MinimapPosition = minimapPosition; Creeps = creeps; NextRespawnTime = 0; Called = false; Dead = false; Visible = false; TextMinimap = new Render.Text(0, 0, "", Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value, new ColorBGRA(Color4.White)); Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").ValueChanged += JungleCamp_ValueChanged; TextMinimap.TextUpdate = delegate { return (NextRespawnTime - (int)Game.ClockTime).ToString(); }; TextMinimap.PositionUpdate = delegate { Vector2 sPos = Drawing.WorldToMinimap(MinimapPosition); return new Vector2(sPos.X, sPos.Y); }; TextMinimap.VisibleCondition = sender => { return IsActive() && NextRespawnTime > 0 && MapType == GMap.Type; }; TextMinimap.OutLined = true; TextMinimap.Centered = true; TextMinimap.Add(); TextMap = new Render.Text(0, 0, "", (int)(Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value * 3.5), new ColorBGRA(Color4.White)); TextMap.TextUpdate = delegate { return (NextRespawnTime - (int)Game.ClockTime).ToString(); }; TextMap.PositionUpdate = delegate { Vector2 sPos = Drawing.WorldToScreen(MapPosition); return new Vector2(sPos.X, sPos.Y); }; TextMap.VisibleCondition = sender => { return IsActive() && NextRespawnTime > 0 && MapType == GMap.Type; }; TextMap.OutLined = true; TextMap.Centered = true; TextMap.Add(); }
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); } } }
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); } } } }
public Camp(float spawnTime, float respawnTime, Vector3 position, List<Mob> mobs, bool isBig, Utility.Map.MapType mapType, GameObjectTeam team) { SpawnTime = spawnTime; RespawnTime = respawnTime; Position = position; MinimapPosition = Drawing.WorldToMinimap(Position); Mobs = mobs; IsBig = isBig; MapType = mapType; Team = team; }
private JungleCamp GetJungleCampByID(int id, Utility.Map.MapType mapType) { return JungleCamps.Find(jm => jm.CampId == id && jm.MapType == mapType); }
private JungleMob GetJungleMobByName(string name, Utility.Map.MapType mapType) { return JungleMobs.Find(jm => name.Contains(jm.Name) && jm.MapType == mapType); }
/// <summary> /// Initializes a new instance of the <see cref="JungleCamp" /> class. /// </summary> /// <param name="respawnTime">The respawn time.</param> /// <param name="position">The position.</param> /// <param name="mobNames">The mob names.</param> /// <param name="mapType">Type of the map.</param> /// <param name="team">The team.</param> public JungleCamp( int respawnTime, Vector3 position, string[] mobNames, Utility.Map.MapType mapType, GameObjectTeam team) { this.RespawnTime = respawnTime; this.Position = position; this.MobNames = mobNames; this.MapType = mapType; this.Team = team; this.ObjectsDead = new List<string>(); this.ObjectsAlive = new List<string>(); }
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"); } } } }
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); } } }
public JungleCamp(String name, GameObjectTeam team, int campId, int spawnTime, int respawnTime, Utility.Map.MapType mapType, Vector3 mapPosition, Vector3 minimapPosition, JungleMob[] creeps) { Name = name; Team = team; CampId = campId; SpawnTime = spawnTime; RespawnTime = respawnTime; MapType = mapType; MapPosition = mapPosition; MinimapPosition = minimapPosition; Creeps = creeps; NextRespawnTime = 0; Called = false; }
private JungleMob GetJungleMobByName(string name, Utility.Map.MapType mapType) { return JungleMobs.Find(jm => jm.Name == name && jm.MapType == mapType); }
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"); } } } }
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); } } } }
public Camp(string name, float spawnTime, int respawnTimer, Vector3 position, List<Mob> mobs, Utility.Map.MapType mapType, GameObjectTeam team, Color colour, Timers timer, bool isRanged = false, int state = 0, int respawnTime = 0, int lastChangeOnState = 0, bool shouldping = true, int lastPing = 0) { Name = name; SpawnTime = spawnTime; RespawnTimer = respawnTimer; Position = position; MapPosition = Drawing.WorldToScreen(Position); MinimapPosition = Drawing.WorldToMinimap(Position); Mobs = mobs; MapType = mapType; Team = team; Colour = colour; IsRanged = isRanged; State = state; RespawnTime = respawnTime; LastChangeOnState = lastChangeOnState; Timer = timer; ShouldPing = shouldping; LastPing = lastPing; #region Load Text TextMinimap = new Render.Text(0, 0, "", Program._menu.Item("timerfontminimap").GetValue<Slider>().Value, Program.White) { VisibleCondition = sender => Program.Timeronminimap && RespawnTime > Environment.TickCount && State == 7, PositionUpdate = delegate { Vector2 v2 = Timer.MinimapPosition; return v2; }, TextUpdate = () => Timer.TextOnMinimap, OutLined = false, Centered = true }; TextMinimap.Add(); TextMap = new Render.Text(0, 0, "", Program._menu.Item("timerfontmap").GetValue<Slider>().Value, Program.White) { VisibleCondition = sender => Program.Timeronmap && RespawnTime > Environment.TickCount && State == 7 && Position.IsOnScreen(), PositionUpdate = delegate { Vector2 v2 = Timer.Position; return v2; }, TextUpdate = () => Timer.TextOnMap, OutLined = false, Centered = true }; TextMap.Add(); #endregion //Drawing.OnEndScene += Drawing_OnEndScene; }
private void TryCast(Utility.DelayAction.Callback cast) { Utility.DelayAction.Add(0, cast); Utility.DelayAction.Add(100, cast); Utility.DelayAction.Add(200, cast); Utility.DelayAction.Add(300, cast); }
public JungleMob(string name, Obj_AI_Minion obj, bool smite, bool buff, bool boss, Utility.Map.MapType mapType) { Name = name; Obj = obj; Smite = smite; Buff = buff; Boss = boss; MapType = mapType; }
public RelicObject(float spawnTime, float respawnTime, Vector3 position, string objectName, Utility.Map.MapType mapType) { SpawnTime = spawnTime; RespawnTime = respawnTime; ObjectName = objectName; Position = position; MinimapPosition = Drawing.WorldToMinimap(Position); MapType = mapType; }
public Camp(string name, float spawnTime, int respawnTimer, Vector3 position, List<Mob> mobs, Utility.Map.MapType mapType, GameObjectTeam team, Color colour, Timers timer, bool isRanged = false, int state = 0, int respawnTime = 0, int lastChangeOnState = 0) { Name = name; SpawnTime = spawnTime; RespawnTimer = respawnTimer; Position = position; MapPosition = Drawing.WorldToScreen(Position); MinimapPosition = Drawing.WorldToMinimap(Position); Mobs = mobs; MapType = mapType; Team = team; Colour = colour; IsRanged = isRanged; State = state; RespawnTime = respawnTime; LastChangeOnState = lastChangeOnState; Timer = timer; }