Exemple #1
0
 internal static void Dispose()
 {
     try
     {
         HealerClass.DisposeHealerClass();
         Fsm.StopEngine();
         Heal.StopHeal();
     }
     catch (Exception e)
     {
         Logging.WriteError("Heal Bot > Bot > Bot  > Dispose(): " + e);
     }
 }
Exemple #2
0
        private void SpellSettingsShortcutButton_Click(object sender, EventArgs e)
        {
            string pathToCombatClassFile;

            if (nManagerSetting.CurrentSetting.HealerClass == "OfficialTnbClassSelector")
            {
                pathToCombatClassFile = Application.StartupPath + "\\HealerClasses\\OfficialTnbClassSelector\\Tnb_" + ObjectManager.Me.WowClass + "Healing.dll";
            }
            else
            {
                pathToCombatClassFile = Application.StartupPath + "\\HealerClasses\\" + nManagerSetting.CurrentSetting.HealerClass;
            }
            HealerClass.ShowConfigurationHealerClass(pathToCombatClassFile);
        }
Exemple #3
0
        internal static bool Pulse()
        {
            try
            {
                // Load CC:
                HealerClass.LoadHealerClass();
                Heal.StartHealBot();

                // FSM
                Fsm.States.Clear();

                Fsm.AddState(new Pause {
                    Priority = 40
                });
                Fsm.AddState(new SpecializationCheck {
                    Priority = 30
                });
                Fsm.AddState(new LevelupCheck {
                    Priority = 20
                });
                /*Fsm.AddState(new HealFriendlyTarget { Priority = 1 });*/
                Fsm.AddState(new Idle {
                    Priority = 0
                });

                foreach (var statePlugin in Plugins.ListLoadedStatePlugins)
                {
                    Fsm.AddState(statePlugin);
                }

                Fsm.States.Sort();
                Fsm.StartEngine(6, "FSM HealBot");

                return(true);
            }
            catch (Exception e)
            {
                try
                {
                    Dispose();
                }
                catch
                {
                }
                Logging.WriteError("Heal Bot >  Bot  > Pulse(): " + e);
                return(false);
            }
        }