Exemple #1
0
 public override void OnDeselected()
 {
     Debug("BotEvent OnDeselected");
     if (LuaEvents.LuaEventsAttached)
     {
         LuaEvents.DetachLuaEventHandlers();
     }
 }
Exemple #2
0
        public override void Start()
        {
            Debug("BotEvent OnStart");
            HbRelogApi = new HBRelogApi();
            CacheStaticLookUp.InitalizedCache = false;
            BehaviorManager.Reset();
            Common.ResetCommonBehaviors();
            ObjectCacheManager.ResetCache(true);
            TargetManager.Reset();
            GarrisonManager.Reset();
            QuestHelper.QuestLog.Clear();
            LuaEvents.ResetFrameVariables();

            if (!LuaEvents.LuaEventsAttached)
            {
                LuaEvents.AttachLuaEventHandlers();
            }
        }
Exemple #3
0
        public override void Stop()
        {
            Debug("BotEvent OnStop");

            if (LuaEvents.LuaEventsAttached)
            {
                LuaEvents.DetachLuaEventHandlers();
            }

            TreeRoot.Stop();

            if (BaseSettings.CurrentSettings.HBRelog_SkipToNextTask)
            {
                if (HbRelogApi.IsConnected)
                {
                    HbRelogApi.SkipCurrentTask(HbRelogApi.CurrentProfileName);
                }
            }
        }