Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

pudge

Check for the current grinder profile name

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"

 

Share this post


Link to post
Share on other sites

Are you using
 

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

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

Share this post


Link to post
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();

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...