private static async Task <bool> Overdrive() { var canCast = Spells.RookOverdrive.Cooldown == TimeSpan.Zero && Spells.BishopOverdrive.Cooldown == TimeSpan.Zero; if (!canCast) { return(false); } if (Control.ModifierKeys != Keys.None && WindowCheck.ApplicationIsActivated()) { if (Keyboard.IsKeyDown(BarretHotkeysModel.Instance.OverdriveKey)) { while (!Me.HasAura(Auras.TurretReset)) { if (PetManager.ActivePetType == PetType.Rook_Autoturret) { await Spells.RookOverdrive.Use(Target, true); } await Spells.BishopOverdrive.Use(Target, true); await Coroutine.Wait(250, () => !Me.HasAura(Auras.TurretReset)); await Coroutine.Yield(); } } } return(false); }
private void UIElement_OnMouseWheel(object sender, MouseWheelEventArgs e) { if (Control.ModifierKeys == Keys.Shift && WindowCheck.ApplicationIsActivated()) { var currentDeltaOpacity = e.Delta; if (currentDeltaOpacity == 120 && MainSettingsModel.Instance.EnemyInfoOverlayOpacity < 1) { MainSettingsModel.Instance.EnemyInfoOverlayOpacity = MainSettingsModel.Instance.EnemyInfoOverlayOpacity + 0.05; } else { MainSettingsModel.Instance.EnemyInfoOverlayOpacity = MainSettingsModel.Instance.EnemyInfoOverlayOpacity - 0.05; } if (MainSettingsModel.Instance.EnemyInfoOverlayOpacity <= 0) { MainSettingsModel.Instance.EnemyInfoOverlayOpacity = .1; } if (MainSettingsModel.Instance.EnemyInfoOverlayOpacity >= 1) { MainSettingsModel.Instance.EnemyInfoOverlayOpacity = 1; } } }
private static async Task <bool> DeathBlossomSpam() { if (Control.ModifierKeys != Keys.None && WindowCheck.ApplicationIsActivated()) { if (Keyboard.IsKeyDown(ShadowHotkeysModel.Instance.DbSpamKey)) { await Spells.DeathBlossom.Use(Me, true); } } return(false); }
private static async Task <bool> OverpowerSpam() { if (Control.ModifierKeys == Keys.None || !WindowCheck.ApplicationIsActivated()) { return(false); } if (Keyboard.IsKeyDown(PaineHotkeysModel.Instance.OverpowerSpamKey)) { await Spells.Overpower.Use(Target, true); } return(false); }
private static async Task<bool> AoESpam() { if (Control.ModifierKeys == Keys.None || !WindowCheck.ApplicationIsActivated()) return false; if (Keyboard.IsKeyDown(FreyaHotkeysModel.Instance.AoeSpamKey)) { if (!Me.HasAura(Auras.HeavyThrust, true, FreyaSettingsModel.Instance.HeavyThrustRfsh)) { await HeavyThrust(); } if (ActionManager.LastSpell == Spells.DoomSpike && Me.ClassLevel >= Spells.SonicThrust.LevelAcquired) return await Spells.SonicThrust.Use(Target, true); return await Spells.DoomSpike.Use(Target, true); } return false; }
private static async Task <bool> ManualMeditation() { if (Spells.Meditate.Cooldown != TimeSpan.Zero) { return(false); } if (Control.ModifierKeys != Keys.None && WindowCheck.ApplicationIsActivated()) { if (Keyboard.IsKeyDown(CyanHotkeysModel.Instance.MeditiationKey)) { await Spells.Meditate.Use(Me, true); while (Kenki < 100 && !MovementManager.IsMoving) { await Coroutine.Wait(250, () => Kenki < 100); await Coroutine.Yield(); } } } return(false); }
private static async Task <bool> ManualFlamethrower() { if (Spells.Flamethrower.Cooldown != TimeSpan.Zero) { return(false); } if (Control.ModifierKeys == Keys.None || !WindowCheck.ApplicationIsActivated()) { return(false); } if (Keyboard.IsKeyDown(BarretHotkeysModel.Instance.ForceOverheatKey)) { await Spells.Flamethrower.Use(Me, true); while (!Overheated) { await Coroutine.Wait(250, () => Overheated); await Coroutine.Yield(); } } return(false); }
private void Window_Activated(object sender, EventArgs e) { WindowCheck.setOpencheck(true); }
private void Window_Closed(object sender, EventArgs e) { WindowCheck.setOpencheck(false); }