public void OnPulse() { if (TreehookHandling.initTreeHooks && !TreehookHandling.CheckVendorHooked()) { Logger.DBLog.InfoFormat("Replacing Vendor Hook!"); HookHandler.RestoreHook(HookHandler.HookType.VendorRun); TreehookHandling.HookBehaviorTree(); } }
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; }