Jump to content

Change profile in a plugin


riddickx5000

Recommended Posts

I was looking for answer for a few weeks now, but no luck.
Hope that someone will help us to find out how to load profiles via plugin or C#, especially for Gatherer and Quester.

Link to comment
Share on other sites

use search wisely

	/// <summary>
	/// WARNING! PRODUCT RESTART, USE WITH CAUTION
	/// </summary>
	/// <param name="file"></param>
	public static void LoadProfile(string file)
	{
		Quester.Bot.QuesterSetting.CurrentSetting.ProfileName = file;
		robotManager.Products.Products.ProductRestart();
	}

 

Link to comment
Share on other sites

15 hours ago, Zoki said:

What about Gatherer? 
Thanks.

Hello,

    public static void LoadProfile(string file)
    {
        Gatherer.Bot.GathererSetting.Load();
        Gatherer.Bot.GathererSetting.CurrentSetting.ProfileName = file;
        Gatherer.Bot.GathererSetting.CurrentSetting.Save();
        robotManager.Products.Products.ProductRestart();
    }

To change gatherer profiles you can also use https://wrobot.eu/forums/topic/1717-gatherer-advanced-profile-how-to-change-zone-after-leveltime/ (or Relogger)

 

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...