HookBehaviorTree() static private method

static private HookBehaviorTree ( ) : void
return void
Ejemplo n.º 1
0
 public void OnPulse()
 {
     if (TreehookHandling.initTreeHooks && !TreehookHandling.CheckVendorHooked())
     {
         Logger.DBLog.InfoFormat("Replacing Vendor Hook!");
         HookHandler.RestoreHook(HookHandler.HookType.VendorRun);
         TreehookHandling.HookBehaviorTree();
     }
 }
Ejemplo n.º 2
0
        private void FunkyBotStart(IBot bot)
        {
            DBLog.Info("===================");
            DBLog.Info("Funky Town Run Plugin");
            DBLog.InfoFormat("Version {0}", Version.ToString());
            DBLog.Info("===================");

            if (!TreehookHandling.initTreeHooks)
            {
                TreehookHandling.HookBehaviorTree();
            }

            RunningTrinity = RoutineManager.Current.Name == "Trinity";

            Settings.LoadSettings();


            if (PluginSettings.UseItemRules)
            {
                ItemRulesEval = new Interpreter();
            }

            EventHandling.OnGameIDChanged += FunkyNewGameHandler;
        }