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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

how can bot mine mobs

borig

Member
Joined
Aug 4, 2016
Messages
45
hello

im farming some mobs that can be "mined" for ore. but i cant get the bot to do it.
is it possible to set the bot to mine killed mobs, simular to skinning.
 
activate skinning in the general settings,
worked for me ages ago, didnt test since then
 
sadly the skinning thing didnt work. even after learning skinning.
really wish there was an easy way to solve the problem.
 
i havent tested it but i would assume you can do it wit the "InteractWith" quest behaviour.

i had to combine this behavior with another one to get it to work properly, but thanks for the hint!

another way is to use the CollectThings behavior something like this:
Code:
<CustomBehavior File="CollectThings" 
                    MobId="12345" 
                    CollectUntil="NoTargetsInArea" 
                    CollectItemCount="1"
                    CollectItemId="12345" 
                    MobState="Dead" 
                    PostInteractDelay="1600" />
but every 10 mobs or so the behavior caused a problem and the bot stands there for 3 or 4 seconds doing nothing, so i went with the first solution which runs more constant.
 
Last edited:
i had to combine this behavior with another one to get it to work properly, but thanks for the hint!

another way is to use the CollectThings behavior something like this:
Code:
<CustomBehavior File="CollectThings" 
                    MobId="12345" 
                    CollectUntil="NoTargetsInArea" 
                    CollectItemCount="1"
                    CollectItemId="12345" 
                    MobState="Dead" 
                    PostInteractDelay="1600" />
but every 10 mobs or so the behavior caused a problem and the bot stands there for 3 or 4 seconds doing nothing, so i went with the first solution which runs more constant.
can you tell me how to do it? tried to figure it out for past 2 hours and I cant make it...

I want the bot to mine dead mob ...
 
hb3 is giving me problems when mining, the interactwith behavior seems to get stuck sometimes atm.
anyway... simplest way is to add the "CollectThings" code to your profile, everytime the bot should check for minable mobs.
i have posted a little better method somewhere, but it is also a tiny bit harder to add in your profile.
see https://www.thebuddyforum.com/honor...old-endless-farm-post2281006.html#post2281006

now, if you are running a profile where you cant determine at which hotspot there are mobs to mine, it gets more complicated and you might need to use something with a hook that reacts everytime he finds a minable mob.

edit: you have to change the ID 12345 in my example to whatever the mob id is you are trying to mine
 
Last edited:
i dont know how to further explain this.
generally i can say , that these methods will only work when you know where in your profile the bot has minable mobs arround.

maybe this example will make things more clear, i cant explain it any better than what i allready posted, sry.
Code:
<HBProfile>

  Profile Developer: Donald Trump

  <Name>endless self conscious enhancer</Name>

  <MinFreeBagSlots>-11</MinFreeBagSlots>
  <MinDurability>-1</MinDurability>




  <MailGrey>False</MailGrey>
  <MailWhite>false</MailWhite>
  <MailGreen>False</MailGreen>
  <MailBlue>False</MailBlue>
  <MailPurple>false</MailPurple>

  <SellGrey>True</SellGrey>
  <SellWhite>True</SellWhite>
  <SellGreen>True</SellGreen>
  <SellBlue>True</SellBlue>
  <SellPurple>True</SellPurple>

  <ProtectedItems>
  </ProtectedItems>
  <Vendors>
  </Vendors>

  <Mailboxes>
  </Mailboxes>

  <AvoidMobs>
  </AvoidMobs>


  <Blacklist>
  </Blacklist>
  <Blackspots>
  </Blackspots>

  <QuestOrder>
    <!-- add the following line once to your profile at the top below <QuestOrder> -->
    <CustomBehavior File="RunCode" Type="Definition" Code="int miningCounter = 0;" />

    <!-- put your hotspots and other stuff here -->
    <DisableBehavior Name="Combat" />
    <MoveTo X="-336.799" Y="161.749" Z="47.80421" />
    <MoveTo X="-301.8751" Y="121.1135" Z="45.02083" />
    <MoveTo X="-383.7891" Y="71.76392" Z="45.83294" />
    <MoveTo X="-389.9401" Y="74.78466" Z="45.83452" />
    <MoveTo X="-404.3139" Y="29.42205" Z="45.78165" />
    <MoveTo X="-354.6057" Y="29.67383" Z="48.60788" />
    <EnableBehavior Name="Combat" />

    <!-- Mining start - add all following code when you want the bot to start mining the mobs in area -->
    <CustomBehavior File="RunCode" Code="miningCounter = 0" />
    <while Condition="miningCounter &lt; 4">
      <CustomBehavior File="TargetAndMoveToMob" MobId="53732"
                      TargetOnlyIfHealthPercentBelow="1"
                      MoveWithinMaxRangeOfMob="2"
                      WaitForNpcs="false"/>

      <while Condition="(Me.CurrentTarget != null) &amp;&amp; (Me.CurrentTarget.Entry == 53732)">
        <if Condition="!(Me.IsCasting)">
          <CustomBehavior File="InteractWith" MobId="53732" WaitTime="1600" MobState="Dead" KeepTargetSelected="true"/>
        </if>
        <CustomBehavior File="TargetAndMoveToMob" MobId="53732"
                    TargetOnlyIfHealthPercentBelow="1"
                    MoveWithinMaxRangeOfMob="3"
                    WaitForNpcs="false"/>
      </while>
      <CustomBehavior File="RunCode" Code="miningCounter++" />
    </while>
    <!-- Mining end -->
    
    <!-- DT Quotes - you dont want to add this -->
    <while Condition="true">
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, &quot;people like me&quot;);" />
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, &quot;im very smart&quot;);" />
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, &quot;everbody likes me&quot;);" />
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, &quot;i know words; i have the best words&quot;);" />
    </while>
    

  </QuestOrder>
</HBProfile>
 
i dont know how to further explain this.
generally i can say , that these methods will only work when you know where in your profile the bot has minable mobs arround.

maybe this example will make things more clear, i cant explain it any better than what i allready posted, sry.
Code:
<HBProfile>

  Profile Developer: Donald Trump

  <Name>endless self conscious enhancer</Name>

  <MinFreeBagSlots>-11</MinFreeBagSlots>
  <MinDurability>-1</MinDurability>




  <MailGrey>False</MailGrey>
  <MailWhite>false</MailWhite>
  <MailGreen>False</MailGreen>
  <MailBlue>False</MailBlue>
  <MailPurple>false</MailPurple>

  <SellGrey>True</SellGrey>
  <SellWhite>True</SellWhite>
  <SellGreen>True</SellGreen>
  <SellBlue>True</SellBlue>
  <SellPurple>True</SellPurple>

  <ProtectedItems>
  </ProtectedItems>
  <Vendors>
  </Vendors>

  <Mailboxes>
  </Mailboxes>

  <AvoidMobs>
  </AvoidMobs>


  <Blacklist>
  </Blacklist>
  <Blackspots>
  </Blackspots>

  <QuestOrder>
    <!-- add the following line once to your profile at the top below <QuestOrder> -->
    <CustomBehavior File="RunCode" Type="Definition" Code="int miningCounter = 0;" />

    <!-- put your hotspots and other stuff here -->
    <DisableBehavior Name="Combat" />
    <MoveTo X="-336.799" Y="161.749" Z="47.80421" />
    <MoveTo X="-301.8751" Y="121.1135" Z="45.02083" />
    <MoveTo X="-383.7891" Y="71.76392" Z="45.83294" />
    <MoveTo X="-389.9401" Y="74.78466" Z="45.83452" />
    <MoveTo X="-404.3139" Y="29.42205" Z="45.78165" />
    <MoveTo X="-354.6057" Y="29.67383" Z="48.60788" />
    <EnableBehavior Name="Combat" />

    <!-- Mining start - add all following code when you want the bot to start mining the mobs in area -->
    <CustomBehavior File="RunCode" Code="miningCounter = 0" />
    <while Condition="miningCounter < 4">
      <CustomBehavior File="TargetAndMoveToMob" MobId="53732"
                      TargetOnlyIfHealthPercentBelow="1"
                      MoveWithinMaxRangeOfMob="2"
                      WaitForNpcs="false"/>

      <while Condition="(Me.CurrentTarget != null) && (Me.CurrentTarget.Entry == 53732)">
        <if Condition="!(Me.IsCasting)">
          <CustomBehavior File="InteractWith" MobId="53732" WaitTime="1600" MobState="Dead" KeepTargetSelected="true"/>
        </if>
        <CustomBehavior File="TargetAndMoveToMob" MobId="53732"
                    TargetOnlyIfHealthPercentBelow="1"
                    MoveWithinMaxRangeOfMob="3"
                    WaitForNpcs="false"/>
      </while>
      <CustomBehavior File="RunCode" Code="miningCounter++" />
    </while>
    <!-- Mining end -->
    
    <!-- DT Quotes - you dont want to add this -->
    <while Condition="true">
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "people like me");" />
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "im very smart");" />
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "everbody likes me");" />
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "i know words; i have the best words");" />
    </while>
    

  </QuestOrder>
</HBProfile>
hey mate

I posted your code into my profile and I get this:

3 compiler errors encountered in profile 'Felstate'
'CustomBehavior' xml element on line number 83 has following errors with code: public System.Threading.Tasks.Task __ExpressionFunc__0()
{
return new System.Func<System.Threading.Tasks.Task>(async () =>{miningCounter = 0;})();
}

1) The name 'miningCounter' does not exist in the current context at line 0

'while' xml element on line number 84 has following errors with code: public System.Boolean __ExpressionFunc__1()
{
return new System.Func<System.Boolean>(() => miningCounter < 4)();
}

1) The name 'miningCounter' does not exist in the current context at line 0

'CustomBehavior' xml element on line number 99 has following errors with code: public System.Threading.Tasks.Task __ExpressionFunc__4()
{
return new System.Func<System.Threading.Tasks.Task>(async () =>{miningCounter++;})();
}

1) The name 'miningCounter' does not exist in the current context at line 0
 
i dont know how to further explain this.
generally i can say , that these methods will only work when you know where in your profile the bot has minable mobs arround.

maybe this example will make things more clear, i cant explain it any better than what i allready posted, sry.
Code:
<HBProfile>

  Profile Developer: Donald Trump

  <Name>endless self conscious enhancer</Name>

  <MinFreeBagSlots>-11</MinFreeBagSlots>
  <MinDurability>-1</MinDurability>




  <MailGrey>False</MailGrey>
  <MailWhite>false</MailWhite>
  <MailGreen>False</MailGreen>
  <MailBlue>False</MailBlue>
  <MailPurple>false</MailPurple>

  <SellGrey>True</SellGrey>
  <SellWhite>True</SellWhite>
  <SellGreen>True</SellGreen>
  <SellBlue>True</SellBlue>
  <SellPurple>True</SellPurple>

  <ProtectedItems>
  </ProtectedItems>
  <Vendors>
  </Vendors>

  <Mailboxes>
  </Mailboxes>

  <AvoidMobs>
  </AvoidMobs>


  <Blacklist>
  </Blacklist>
  <Blackspots>
  </Blackspots>

  <QuestOrder>
    <!-- add the following line once to your profile at the top below <QuestOrder> -->
    <CustomBehavior File="RunCode" Type="Definition" Code="int miningCounter = 0;" />

    <!-- put your hotspots and other stuff here -->
    <DisableBehavior Name="Combat" />
    <MoveTo X="-336.799" Y="161.749" Z="47.80421" />
    <MoveTo X="-301.8751" Y="121.1135" Z="45.02083" />
    <MoveTo X="-383.7891" Y="71.76392" Z="45.83294" />
    <MoveTo X="-389.9401" Y="74.78466" Z="45.83452" />
    <MoveTo X="-404.3139" Y="29.42205" Z="45.78165" />
    <MoveTo X="-354.6057" Y="29.67383" Z="48.60788" />
    <EnableBehavior Name="Combat" />

    <!-- Mining start - add all following code when you want the bot to start mining the mobs in area -->
    <CustomBehavior File="RunCode" Code="miningCounter = 0" />
    <while Condition="miningCounter < 4">
      <CustomBehavior File="TargetAndMoveToMob" MobId="53732"
                      TargetOnlyIfHealthPercentBelow="1"
                      MoveWithinMaxRangeOfMob="2"
                      WaitForNpcs="false"/>

      <while Condition="(Me.CurrentTarget != null) && (Me.CurrentTarget.Entry == 53732)">
        <if Condition="!(Me.IsCasting)">
          <CustomBehavior File="InteractWith" MobId="53732" WaitTime="1600" MobState="Dead" KeepTargetSelected="true"/>
        </if>
        <CustomBehavior File="TargetAndMoveToMob" MobId="53732"
                    TargetOnlyIfHealthPercentBelow="1"
                    MoveWithinMaxRangeOfMob="3"
                    WaitForNpcs="false"/>
      </while>
      <CustomBehavior File="RunCode" Code="miningCounter++" />
    </while>
    <!-- Mining end -->
    
    <!-- DT Quotes - you dont want to add this -->
    <while Condition="true">
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "people like me");" />
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "im very smart");" />
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "everbody likes me");" />
      <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "i know words; i have the best words");" />
    </while>
    

  </QuestOrder>
</HBProfile>

Hey mate disregard my previous message, I think it works finally!!!!

My bot is running killing and mining!! but it is sometimes not attacking mobs (?) and he is sometimes not mining :(

Here is my full profile:

<HBProfile>
<!--
PROFILE EXPECTATIONS:
* When using this profile, be certain to set the HonorBuddy bot to (select only one):
( ) Gatherbuddy2
( ) Grinding / Mixed
(*) Questing
( ) PvP

* This profile is appropriate for (check all that apply):
[X] Alliance [ ] Achievement
[X] Horde [X] Farming
[ ] Leveling
[ ] PvP
[X] Questing
[ ] Reputation
[ ] Seasonal

* The profile grammar for the Levelbot (Questing & Grinding) can
be found at this Wiki location:
:Category:Honorbuddy:Levelbot:Grammar

* An explanation of <ForceMail> and <ProtectedItems> usage is here.
DO NOT INCLUDE a <ForceMail> element in a profile!
DO NOT INCLUDE a <ProtectedItems> element in a profile, unless it
is being used to protect items needed for a quest.
You can find more information in the Wiki here:
Honorbuddy:About ForceMail and ProtectedItems
-->
<Name>Felstate</Name>
<MinLevel>1</MinLevel>
<MaxLevel>999</MaxLevel>

<MinDurability>0.3</MinDurability>
<MinFreeBagSlots>2</MinFreeBagSlots>

<MailGrey>false</MailGrey>
<MailWhite>false</MailWhite>
<MailGreen>true</MailGreen>
<MailBlue>true</MailBlue>
<MailPurple>true</MailPurple>

<SellGrey>true</SellGrey>
<SellWhite>true</SellWhite>
<SellGreen>true</SellGreen>
<SellBlue>false</SellBlue>
<SellPurple>false</SellPurple>

<TargetElites>true</TargetElites>

<ProtectedItems>
<Item Name="Twilight Cultist Cowl" Entry="20408" />
<Item Name="Twilight Cultist Mantle" Entry="20406" />
<Item Name="Twilight Cultist Robe" Entry="20407" />
<Item Name="Encrypted Twilight Text" Entry="20404" />
<Item Name="Runecloth" Entry="14047" />
</ProtectedItems>


<AvoidMobs>
<Mob Name="Legion Endbringer" Entry="99762" />
<Mob Name="Abhorrent Artificer" Entry="106339" />
</AvoidMobs>


<Blackspots>
<Blackspot X="1244.657" Y="5049.592" Z="59.27303" Radius="20.84844" />
<Blackspot X="1273.038" Y="5119.884" Z="55.33503" Radius="10.84817" />
<Blackspot X="1278.58" Y="5132.558" Z="54.15429" Radius="12.01593" />
<Blackspot X="1295.15" Y="5142.682" Z="54.50596" Radius="9.864403" />
</Blackspots>


<Mailboxes>

</Mailboxes>

<Vendors>
</Vendors>

<QuestOrder>
<!-- add the following line once to your profile at the top below <QuestOrder> -->
<CustomBehavior File="RunCode" Type="Definition" Code="int miningCounter = 0;" />

<!-- put your hotspots and other stuff here -->
<DisableBehavior Name="Combat" />
<MoveTo X="1298.506" Y="5055.808" Z="64.45323" />
<MoveTo X="1331.635" Y="5046.226" Z="83.43247" />
<MoveTo X="1326.619" Y="5100.06" Z="69.61063" />
<MoveTo X="1282.849" Y="5122.46" Z="57.13943" />
<MoveTo X="1257.248" Y="5052.189" Z="58.95864" />
<EnableBehavior Name="Combat" />

<!-- Mining start - add all following code when you want the bot to start mining the mobs in area -->
<CustomBehavior File="RunCode" Code="miningCounter = 0" />
<while Condition="miningCounter &lt; 4">
<CustomBehavior File="TargetAndMoveToMob" MobId="101868"
TargetOnlyIfHealthPercentBelow="1"
MoveWithinMaxRangeOfMob="2"
WaitForNpcs="false"/>

<while Condition="(Me.CurrentTarget != null) &amp;&amp; (Me.CurrentTarget.Entry == 101868)">
<if Condition="!(Me.IsCasting)">
<CustomBehavior File="InteractWith" MobId="101868" WaitTime="1600" MobState="Dead" KeepTargetSelected="true"/>
</if>
<CustomBehavior File="TargetAndMoveToMob" MobId="101868"
TargetOnlyIfHealthPercentBelow="1"
MoveWithinMaxRangeOfMob="3"
WaitForNpcs="false"/>
</while>
<CustomBehavior File="RunCode" Code="miningCounter++" />
</while>
<!-- Mining end -->
<SetGrindArea>
<GrindArea>
<!-- Omit these elements, and allow them to default, unless there is a specific need...
<TargetMinLevel>53</TargetMinLevel>
<TargetMaxLevel>57</TargetMaxLevel>
<MaxDistance>40</MaxDistance>
-->
<RandomizeHotspots>true</RandomizeHotspots>

<!-- Use Factions OR MobIds, usually not both -->
<MobIds>101868</MobIds>

<Hotspots>
<Hotspot X="1298.506" Y="5055.808" Z="64.45323" />
<Hotspot X="1331.635" Y="5046.226" Z="83.43247" />
<Hotspot X="1326.619" Y="5100.06" Z="69.61063" />
<Hotspot X="1282.849" Y="5122.46" Z="57.13943" />
<Hotspot X="1257.248" Y="5052.189" Z="58.95864" />

</Hotspots>
</GrindArea>
</SetGrindArea>

<!-- Grind until level 111, then we'll move to a better grind area -->
<GrindUntil Nav="Fly" Condition="Me.Level >= 111.0" />

<!-- ...more grind areas... -->
</QuestOrder>

</HBProfile>
 
Last edited:
i guess you did not add
<CustomBehavior File="RunCode" Type="Definition" Code="int miningCounter = 0;" />
to your profile.

add it once , at the top, below <Questorder>

but i dont know if it works with grindbot if thats what your using. im using questing only
 
Last edited:
i guess you did not add
<CustomBehavior File="RunCode" Type="Definition" Code="int miningCounter = 0;" />
to your profile.

add it once , at the top, below <Questorder>

but i dont know if it works with grindbot if thats what your using. im using questing only

mate look everything is working, but bot is doing something like this:


Attacking mob -> mob dies -> moves to another target that is like 30 yards away -> kills it - > move to another which is close -> then he somehow forgots to mine dead bodies and moves on...


How can I fix it so after he kills the mob or is JUSt out of combat he mines all dead mobs in area??

They are felfire basilisk mob id 101868 only these mobs nothing else

btw: im using quest mode
 
i originally opened this thread to get help on mining, now im answering questions about mining every day :)
id like to help you out, but my method is for mining a bunch of mobs after a big pull. not mining while grinding single mobs.

i might give this some thoughts today/tomorrow and if i can come up with the ultimate mining method that covers single target grinding and mass pull mining ill post it.... will try something with dowhen hook i guess.

edit: delete the MoveTo stuff! this was just an example. like the trump quotes.
 
i originally opened this thread to get help on mining, now im answering questions about mining every day :)
id like to help you out, but my method is for mining a bunch of mobs after a big pull. not mining while grinding single mobs.

i might give this some thoughts today/tomorrow and if i can come up with the ultimate mining method that covers single target grinding and mass pull mining ill post it.... will try something with dowhen hook i guess.

edit: delete the MoveTo stuff! this was just an example. like the trump quotes.

I figured out the trump quote xD

Ok but it says there to put my hotspots?

Should I just delete these ines and just leave it like this:

<!-- put your hotspots and other stuff here -->
<DisableBehavior Name="Combat" />

<EnableBehavior Name="Combat" />
 
delete those lines too, it wont change anything but it wont do anything either.

i was just trying to point out, to put the mining after a big pull. enable/disable combat is just used to pull many mobs before killing them. u dont need that in your profile
 
Back
Top