private static void Potions() { if (Player.Instance.IsInFountain() || Player.Instance.IsRecalling() || Player.Instance.IsUsingPotion() || (!Hunter.IsOwned() && !Refillable.IsOwned() && !Potion.IsOwned() && !Biscuit.IsOwned() && !Corrupting.IsOwned()) || !Value.Use("activator.potions")) { return; } if (Player.Instance.HealthPercent < Value.Get("activator.potions.hp")) { if (Hunter.IsReady()) { Hunter.Cast(); } else if (Corrupting.IsReady()) { Corrupting.Cast(); } else if (Refillable.IsReady()) { Refillable.Cast(); } else if (Potion.IsReady()) { Potion.Cast(); } else if (Biscuit.IsReady()) { Biscuit.Cast(); } } if (Player.Instance.ManaPercent < Value.Get("activator.potions.mana")) { if (Hunter.IsReady()) { Hunter.Cast(); } else if (Corrupting.IsReady()) { Corrupting.Cast(); } } }
private void PotionManagement() { if (Player.Health + 250 > Player.MaxHealth) { return; } if (Player.HealthPercent > 50 && Player.CountEnemyHeroesInRange(700) == 0) { return; } if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("Item2010") || Player.HasBuff("ItemCrystalFlask") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask")) { return; } if (Refillable.IsReady) { Refillable.Cast(); } else if (Potion.IsReady) { Potion.Cast(); } else if (Biscuit.IsReady) { Biscuit.Cast(); } else if (Hunter.IsReady) { Hunter.Cast(); } else if (Corrupting.IsReady) { Corrupting.Cast(); } }
private void PotionManagement() { if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask")) { return; } if (Potion.IsReady()) { if (Player.Health + 200 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Potion.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Potion.Cast(); } return; } else if (Biscuit.IsReady()) { if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Biscuit.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Biscuit.Cast(); } return; } else if (Hunter.IsReady()) { if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Hunter.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Hunter.Cast(); } return; } else if (Corrupting.IsReady()) { if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Corrupting.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Corrupting.Cast(); } return; } else if (Refillable.IsReady()) { if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Refillable.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Refillable.Cast(); } return; } }
private void PotionManagement() { if (!Player.InFountain() && !Player.HasBuff("Recall")) { if (ManaPotion.IsReady() && !Player.HasBuff("FlaskOfCrystalWater")) { if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200) { ManaPotion.Cast(); } } if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask")) { return; } if (Hunter.IsReady()) { if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth) { Hunter.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Hunter.Cast(); } else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater")) { Hunter.Cast(); } return; } if (Corrupting.IsReady()) { if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth) { Corrupting.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Corrupting.Cast(); } else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater")) { Corrupting.Cast(); } return; } if (Flask.IsReady()) { if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth) { Flask.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Flask.Cast(); } else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater")) { Flask.Cast(); } return; } if (Refillable.IsReady()) { if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth) { Refillable.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Refillable.Cast(); } return; } if (Potion.IsReady()) { if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth) { Potion.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Potion.Cast(); } return; } if (Biscuit.IsReady()) { if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth) { Biscuit.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Biscuit.Cast(); } return; } } }
public static void Game_OnTick(EventArgs args) { if (player.IsDead || MenuGUI.IsChatOpen || player.IsRecalling()) { return; } var orbMode = Orbwalker.ActiveModesFlags; var playerMana = Player.Instance.ManaPercent; if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo) && ComboMenu["wGapCloser"].Cast <CheckBox>().CurrentValue&& ComboMenu["W"].Cast <CheckBox>().CurrentValue&& (playerMana > ComboMenu.GetSliderValue("manaSlider"))) { wGapCloser(); } if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && (playerMana > HarassMenu.GetSliderValue("GapCloserManaSlider")) && HarassMenu["wGapCloser"].Cast <CheckBox>().CurrentValue&& HarassMenu["W"].Cast <CheckBox>().CurrentValue) { Harass.wGapCloser(); } if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && (playerMana > HarassMenu.GetSliderValue("manaSlider"))) { Harass.ExecuteHarass(); } if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo) && (Player.Instance.CountEnemiesInRange(1100) >= 1)) { ExecuteCombo(); } if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear)) { JungleClear.Execute(); } if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && (playerMana > LaneClearMenu.GetSliderValue("manaSlider"))) { LaneClear.Execute(); } var HealBuff = Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") || Player.HasBuff("ItemDarkCrystalFlask") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.Instance.IsRecalling(); //Health Potion if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Health.IsOwned() && Health.IsReady()) { if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue) { Health.Cast(); } } } //Hunters Potion if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Hunters.IsOwned() && Hunters.IsReady()) { if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue) { Hunters.Cast(); } } } //Biscuit if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Biscuit.IsOwned() && Biscuit.IsReady()) { if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue) { Biscuit.Cast(); } } } //Refillable if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Refillable.IsOwned() && Refillable.IsReady()) { if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue) { Refillable.Cast(); } } } //Corrupting if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Corrupting.IsOwned() && Corrupting.IsReady()) { if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue) { Corrupting.Cast(); } } } }
public static void Game_OnTick(EventArgs args) { if (player.IsDead || MenuGUI.IsChatOpen || player.IsRecalling()) { return; } var orbMode = Orbwalker.ActiveModesFlags; if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo) && (Player.Instance.CountEnemiesInRange(1000) >= 1)) { ExecuteCombo(); } var HealBuff = Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") || Player.HasBuff("ItemDarkCrystalFlask") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.Instance.IsRecalling(); //Health Potion if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Health.IsOwned() && Health.IsReady()) { if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue) { Health.Cast(); } } } //Hunters Potion if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Hunters.IsOwned() && Hunters.IsReady()) { if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue) { Hunters.Cast(); } } } //Biscuit if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Biscuit.IsOwned() && Biscuit.IsReady()) { if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue) { Biscuit.Cast(); } } } //Refillable if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Refillable.IsOwned() && Refillable.IsReady()) { if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue) { Refillable.Cast(); } } } //Corrupting if (ConsumablesMenu["usePotions"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Corrupting.IsOwned() && Corrupting.IsReady()) { if (Player.Instance.HealthPercent <= ConsumablesMenu["PotionHp"].Cast <Slider>().CurrentValue) { Corrupting.Cast(); } } } }
//Cast Potions public static void Potions() { var HealBuff = Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") || Player.HasBuff("ItemDarkCrystalFlask") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.Instance.IsRecalling(); //Health Potion if (ActiveMenu["HealthPotion"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Health.IsOwned() && Health.IsReady()) { if (Player.Instance.HealthPercent <= ActiveMenu["Item.HealthPotionHp"].Cast <Slider>().CurrentValue) { Health.Cast(); } } } //Hunters Potion if (ActiveMenu["HuntersPotion"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Hunters.IsOwned() && Hunters.IsReady()) { if (Player.Instance.HealthPercent <= ActiveMenu["Item.HuntersPotionHp"].Cast <Slider>().CurrentValue) { Hunters.Cast(); } } } //Biscuit if (ActiveMenu["Biscuit"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } { if (Biscuit.IsOwned() && Biscuit.IsReady()) { if (Player.Instance.HealthPercent <= ActiveMenu["Item.BiscuitHp"].Cast <Slider>().CurrentValue) { Biscuit.Cast(); } } } } //Refillable if (ActiveMenu["Refillable"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Refillable.IsOwned() && Refillable.IsReady()) { if (Player.Instance.HealthPercent <= ActiveMenu["Item.RefillableHp"].Cast <Slider>().CurrentValue) { Refillable.Cast(); } } } //Corrupting if (ActiveMenu["Corrupting"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.IsDead || HealBuff) { return; } if (Corrupting.IsOwned() && Corrupting.IsReady()) { if (Player.Instance.HealthPercent <= ActiveMenu["Item.CorruptingHp"].Cast <Slider>().CurrentValue) { Corrupting.Cast(); } } } }