Jump to content

Check for the current grinder profile name


Pudge

Recommended Posts

Hey.


To quickly find errors in the profiles I use this code in the plugin to display the current profile name in the logs:

wManager.Wow.Helpers.Quest.QuesterCurrentContext.ProfileName == "test.xml"
  


I searched hard, but didn't find a similar code for the grinder..... something like Grinder.GrinderCurrentContext.ProfileName == "test.xml"....

Does anyone know a similar method?

 

 

The next code gives an error if product is not quester:

Quester.Bot.QuesterSetting.CurrentSetting.ProfileName == "test.xml"

 

Same code gives an error if product != grinder:

Grinder.Bot.GrinderSetting.CurrentSetting.ProfileName == "test.xml"

 

Link to comment
Share on other sites

  • Pudge changed the title to Check for current grinder profile name

Are you using
 

String Questname = Quester.Bot.QuesterSetting.CurrentSetting.ProfileName.String(); 

Logging.Write(“quest : “ + Questname + “doing”);

Link to comment
Share on other sites

Hello, I think it is because you need to preload dll:

robotManager.Products.Products.LoadProductsWithoutInit(Others.GetCurrentDirectory + @"\Products\Grinder.dll").Initialize();
robotManager.Products.Products.LoadProductsWithoutInit(Others.GetCurrentDirectory + @"\Products\Quester.dll").Initialize();

 

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