What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Is there anyone who knows how to write profiles for on ProfessionBuddy?

Tweety

New Member
Joined
Sep 6, 2013
Messages
317
Reaction score
0
The title states that question because as many times as I asked helped for PB profiles I haven't seen anyone being actually helpful.
Either there are no replies either they don't have any value.

Regardless, let's try again.

What I want to do is to specify in some profiles that this is a herb only profile - do not mine, or the other way arround.
So in a profile that I've downloaded from here, big rep for the guy, which is 1-600 Mine + Herb leveling profile there's this code:
Code:
<!--disable gathering of mines-->
    <CustomAction Code="if (((bool)Settings[&quot;Mining&quot;] &amp;&amp;
   (MiningLevel == MiningMaxLevel || ((bool)Settings[&quot;Herb&quot;] &amp;&amp; MiningMaxLevel &gt; HerbMaxLevel ))) ||
 !(bool)Settings[&quot;Mining&quot;])
{
    mining = Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals = false;
}" />
I tried to do something like:
Code:
<CustomAction Code="Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals = false;"
sadly, it didn't work.
What I want to do is to load up my GB2 profiles from PB so I can specify that I want them to be only mining or only herb gathering profiles.

Does anyone have the magic line of code that disables/enables the GB settings for gathering just the way you can do it from the menu, however I want it to be done inside the profile like the dude who wrote that profession leveling profile there did?

A second thingy that I would love to do is to disable picking up of certain herbs or ores. Is there a way to do that?
Let's say that I am farming Herb X that in this area is also herb Y - however, I don't want my bot to pick up herb Y because it's price on the AH is 10 times lower than herb X.
Is there a plugin or a magical line of code that can do that setting for GB or GB actually does not support that?

I am really surprised that there are not that many people who can actually write profiles and are willing to help. I've been visiting many web developer's forums and it's full of helpful and knowledgeable people, who do know what ya mean, do know how to do it and save you hours of digging.
 
Why not just go in settings and uncheck harvest minerals? You can also uncheck the herbs you don't want to pick up in gb2 settings.
 
Why not just go in settings and uncheck harvest minerals? You can also uncheck the herbs you don't want to pick up in gb2 settings.
I know that. And I state that in my post - that there is setting to do that, however there's a way to do it with code as well.
The idea is using ARelog to schedule different tasks that some require only mining, other only herbing and the idea here is to make it so we don't need to monitor the bot - which profile is it running, should gather herb/mine be on or off.
 
Given your first example, I think this is what you were after:
Code:
<CustomAction Code="mining = Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals = false;" />
 
Given your first example, I think this is what you were after:
Code:
<CustomAction Code="mining = Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals = false;" />
When I tried it it gave me:
Code:
Err: Custom Action:(mining = Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals = false;)
Compile Error : The name 'mining' does not exist in the current context
As I expected - mining is a custom variable for the profile that I've copied the code from, it's not some PB variable to change value on.
He just assigns mining to be equal to HB2 the property Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals and in that case equal to false/disabled.
However, when I try to do Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals = false it doesn't work.

Anyway, after declaring a custom variable to be equal to the GB setting and then to be equal to false it fucking worked :/ Fuck logic.

So I tried to disable Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherHerbs.Mageroyal to disable only one type of item to gather, however it didn't work.

The code needed to disable/enable Herb/Mining that worked for me is as follows:
Code:
<Settings DefaultValue="false" Type="Boolean" Name="Mining" Summary="Set to true if you want to level Mining" Category="Profile" Global="False" Hidden="False" />
<Settings DefaultValue="false" Type="Boolean" Name="Herb" Summary="Set to true if you want to level Mining" Category="Profile" Global="False" Hidden="False" />
<Declaration Code="bool mining,herb;" />
<CustomAction Code="mining = (bool)Settings[&quot;Mining&quot;];" />
<CustomAction Code="herb = (bool)Settings[&quot;Herb&quot;];" />
<CustomAction Code="mining = Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals = true;" />
<CustomAction Code="herb = Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherHerbs = false;" />
No idea if all of it is needed, even though it shouldn't be
 
Simple example:

Code:
    <!-- Jade Forest-->
    <If Condition="(uint)Settings[&quot;FarmedZone&quot;] == 5785" IgnoreCanRun="True">
      <CustomAction Code="MyLog(&quot;Go to Jade Forest&quot;);" />
      <If Condition="Me.IsAlliance" IgnoreCanRun="True">
        <FlyToAction Dismount="False" Location="-8360.346, 619.2664, 146.672" />
        <FlyToAction Dismount="True" Location="-8194.191, 528.1545, 117.2999" />
        <WaitAction Condition="ObjectManager.GetObjectsOfType&lt;WoWGameObject&gt;().Any(o =&gt; o.Entry ==215457);" Timeout="10000" />
        <InteractionAction InteractType="GameObject" Entry="215457" InteractDelay="2000" GameObjectType="Transport" SpellFocus="Anvil" />
        <WaitAction Condition="Me.ZoneId != currentZoneID" Timeout="20000" />
      </If>
      <If Condition="Me.IsHorde" IgnoreCanRun="True">
        <FlyToAction Dismount="True" Location="2015.524, -4702.425, 28.67392" />
        <WaitAction Condition="ObjectManager.GetObjectsOfType&lt;WoWGameObject&gt;().Any(o =&gt; o.Entry == 215424);" Timeout="10000" />
        <InteractionAction InteractType="GameObject" Entry="215424" InteractDelay="2000" GameObjectType="Transport" SpellFocus="Anvil" />
        <WaitAction Condition="Me.ZoneId != currentZoneID" Timeout="20000" />
        <FlyToAction Dismount="False" Location="2987.529, -690.9724, 278.3949" />
      </If>
[B]       <CustomAction Code="Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherHerbs = true;" />
        <CustomAction Code="Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals = true;" />[/B]
    </If>
 
As stated in the first post, "<CustomAction Code="Bots.Gatherbuddy.GatherbuddySettings.Instance.GatherMinerals = true;" />" is giving me errors.

However, that issue is already solved. The second one isn't:

A second thingy that I would love to do is to disable picking up of certain herbs or ores. Is there a way to do that?
Let's say that I am farming Herb X that in this area is also herb Y - however, I don't want my bot to pick up herb Y because it's price on the AH is 10 times lower than herb X.
Is there a plugin or a magical line of code that can do that setting for GB or GB actually does not support that?
 
Back
Top