Jump to content

Eat/Drink dont work


nuxx

Recommended Posts

  • 3 weeks later...

Hello, you cannot eat/drink in bg with default features.

You can try to use this plugin (not tested): Main.cs

using robotManager.Products;
using System.Windows.Forms;

public class Main : wManager.Plugin.IPlugin
{
    public void Initialize()
    {
        if (Products.ProductName != "Battlegrounder")
            return;

        robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += (robotManager.FiniteStateMachine.Engine engine, robotManager.FiniteStateMachine.State state, System.ComponentModel.CancelEventArgs cancelable) =>
        {
            try
            {
                if (state.DisplayName == "Resurrect Battleground")
                {
                    if (state.BeforeStates.Count == 0)
                        state.BeforeStates.Add(new wManager.Wow.Bot.States.Regeneration());
                }
            }
            catch { }
        };
    }

    public void Dispose()
    {
    }

    public void Settings()
    {
        MessageBox.Show("No settings for this plugin.");
    }
}
  

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...