public void ShutDown() { TreeRoot.OnStart -= OnBotStart; TreeRoot.OnStop -= OnBotStop; FormManager.SaveFormInstances(); HotkeyManager.UnregisterAllHotkeys(); FormManager.CloseOverlays(); CombatHelper.ResetLastUsed(); Logger.KefkaLog("Kefka Shutdown - Complete"); }
private void OnBotStop(BotBase bot) { if (ff14bot.Managers.RoutineManager.Current.Name != "Kefka") { return; } FormManager.SaveFormInstances(); HotkeyManager.UnregisterAllHotkeys(); FormManager.CloseOverlays(); CombatHelper.ResetLastUsed(); }
public void Pulse() { Monitor.OverlayUpdate(); if (DateTime.Now < pulseLimiter) { return; } pulseLimiter = DateTime.Now.AddSeconds(1); var _class = RoutineManager.CurrentClass; if (DateTime.Now > saveFormTime) { FormManager.SaveFormInstances(); if (Me.ClassLevel < 70) { Logger.KefkaLog("We are currently level synced to level {0}", Me.ClassLevel); } if (_inInstance && Common_Utils.InActiveInstance()) { Logger.DebugLog($"Instance Time Remaining: {Common_Utils.InstanceTimeRemaining}"); } saveFormTime = DateTime.Now.AddSeconds(60); } try { Group.UpdateAllies(); } catch (Exception e) { Logger.KefkaLog(e.ToString()); } Monitor.SpellLog(); AutoDuty.AutoDutyRoot(); FormManager.Window_Check(); TargetSelectorManager.UpdatePartyMembers(); CombatHelper.ResetLastUsed(); }
public void OnInitialize(int version) { Logger.KefkaLog($"Initializing Version: GitHub {System.Windows.Forms.Application.ProductVersion}"); TreeRoot.OnStart += OnBotStart; TreeRoot.OnStop += OnBotStop; if (version == 2) { IsChineseVersion = true; } HookBehaviors(); IgnoreTargetManager.ResetIgnoreTargets(); TankBusterManager.ResetTankBusters(); OpenerManager.ResetOpeners(); CombatHelper.ResetLastUsed(); }
public void OnInitialize(int version) { //Logger.KefkaLog($"Initializing Version: {File.ReadAllText(VersionPath)}"); Logger.KefkaLog($"Initializing Version: GitHub 1.0.0"); TreeRoot.OnStart += OnBotStart; TreeRoot.OnStop += OnBotStop; if (version == 2) { IsChineseVersion = true; } HookBehaviors(); var _class = RoutineManager.CurrentClass; InterruptManager.ResetInterrupts(); IgnoreTargetManager.ResetIgnoreTargets(); TankBusterManager.ResetTankBusters(); OpenerManager.ResetOpeners(); CombatHelper.ResetLastUsed(); }