private static void ChangeMantra() { var changetime = Environment.TickCount - _lastTick; if (MenuConfig.getKeyBindItem(MenuConfig.comboMenu, "Mantra")) { if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 0 && _lastTick + 400 < Environment.TickCount) { _lastTick = Environment.TickCount; MenuConfig.comboMenu["MantraMode"].Cast <ComboBox>().CurrentValue = 1; } if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 1 && _lastTick + 400 < Environment.TickCount) { _lastTick = Environment.TickCount; MenuConfig.comboMenu["MantraMode"].Cast <ComboBox>().CurrentValue = 2; } if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 2 && _lastTick + 400 < Environment.TickCount) { _lastTick = Environment.TickCount; MenuConfig.comboMenu["MantraMode"].Cast <ComboBox>().CurrentValue = 3; } if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 3 && _lastTick + 400 < Environment.TickCount) { _lastTick = Environment.TickCount; MenuConfig.comboMenu["MantraMode"].Cast <ComboBox>().CurrentValue = 0; } } }
public static void SelectedMantra(EventArgs args) { if (Player.IsDead || !MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "MantraDraw") || !MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "UseDrawings")) { return; } var heropos = Drawing.WorldToScreen(ObjectManager.Player.Position); if (MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "QRange") && MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 0) { Render.Circle.DrawCircle(Player.Position, Spells.Q.Range, Spells.R.IsReady() ? System.Drawing.Color.FromArgb(120, 0, 170, 255) : System.Drawing.Color.IndianRed); } if (MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "QRange") && MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 1) { Render.Circle.DrawCircle(Player.Position, Spells.W.Range, Spells.R.IsReady() ? System.Drawing.Color.FromArgb(120, 0, 170, 255) : System.Drawing.Color.IndianRed); } if (MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "QRange") && MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 2) { Render.Circle.DrawCircle(Player.Position, Spells.E.Range, Spells.R.IsReady() ? System.Drawing.Color.FromArgb(120, 0, 170, 255) : System.Drawing.Color.IndianRed); } if (MenuConfig.getCheckBoxItem(MenuConfig.drawMenu, "QRange") && MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 3) { Render.Circle.DrawCircle(Player.Position, Spells.Q.Range, Spells.R.IsReady() ? System.Drawing.Color.FromArgb(120, 0, 170, 255) : System.Drawing.Color.IndianRed); } if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 0) { Drawing.DrawText(heropos.X - 15, heropos.Y + 40, System.Drawing.Color.White, "Selected Prio: Q"); } if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 1) { Drawing.DrawText(heropos.X - 15, heropos.Y + 40, System.Drawing.Color.White, "Selected Prio: W"); } if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 2) { Drawing.DrawText(heropos.X - 15, heropos.Y + 40, System.Drawing.Color.White, "Selected Prio: E"); } if (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode") == 3) { Drawing.DrawText(heropos.X - 15, heropos.Y + 40, System.Drawing.Color.White, "Selected Prio: Auto"); } }
public static void Update(EventArgs args) { if (!MenuConfig.getCheckBoxItem(MenuConfig.trinketMenu, "Trinket") || Player.Level < 9 || !Player.InShop() || Items.HasItem(3363) || Items.HasItem(3364)) { return; } switch (MenuConfig.getBoxItem(MenuConfig.trinketMenu, "TrinketList")) { case 0: Shop.BuyItem(ItemId.Oracle_Alteration); break; case 1: Shop.BuyItem(ItemId.Farsight_Alteration); break; } }
private static void Combo() { foreach (var enemy in GameObjects.EnemyHeroes.Where(x => !x.IsDead && !x.IsZombie).OrderBy(hp => hp.Health)) { if (!enemy.LSIsValidTarget(Spells.Q.Range) || enemy.IsDead || enemy.IsInvulnerable) { return; } Usables.Locket(); // Usables.Seraph(); switch (MenuConfig.getBoxItem(MenuConfig.comboMenu, "MantraMode")) { case 0: if (Spells.R.IsReady() && Spells.Q.IsReady()) { Spells.R.Cast(); Spells.Q.Cast(enemy); } else if (Spells.Q.IsReady()) { Usables.FrostQueen(); Usables.ProtoBelt(); Spells.Q.Cast(enemy); } else if (Spells.W.IsReady()) { Spells.W.Cast(enemy); } else if (Spells.E.IsReady()) { Spells.E.Cast(Player); } break; case 1: if (Spells.R.IsReady() && Spells.W.IsReady()) { Spells.R.Cast(); } else if (Spells.W.IsReady()) { Spells.W.Cast(enemy); } else if (Spells.E.IsReady()) { Spells.E.Cast(Player); } else if (Spells.Q.IsReady()) { Usables.FrostQueen(); Usables.ProtoBelt(); Spells.Q.Cast(enemy); } break; case 2: if (Spells.R.IsReady() && Spells.E.IsReady()) { Spells.R.Cast(); } else if (Spells.E.IsReady()) { Spells.E.Cast(Player); } else if (Spells.W.IsReady()) { Spells.W.Cast(enemy); } else if (Spells.Q.IsReady()) { Usables.FrostQueen(); Usables.ProtoBelt(); Spells.Q.Cast(enemy); } break; // Auto case 3: if (Player.HealthPercent <= 30 && enemy.HealthPercent >= 50) { goto case 2; } if (!enemy.LSIsFacing(Player)) { goto case 1; } goto case 0; } } }