private void BotMain_OnStart(IBot bot) { if (!Service.IsConnected) { Service.Connect(); CommunicationThread.ThreadStart(); } SelectBehavior(); CurrentBehavior.Activate(); }
//private void OnProfileLoaded(object sender, EventArgs eventArgs) //{ // if (!Enabled) return; // SelectBehavior(); //} private void OnHooksCleared(object sender, EventArgs e) { // Need to activate current behavior to ensure its hooks are added before game is started. CurrentBehavior.Activate(); }