• Visit Rebornbuddy
  • How to set "run away from xxxx mob" ?

    Discussion in 'Honorbuddy Forum' started by ares0027, Apr 30, 2016.

    1. ares0027

      ares0027 New Member

      Joined:
      Apr 28, 2016
      Messages:
      28
      Likes Received:
      0
      Trophy Points:
      0
      hi, i am new to this so i cannot figure it out (checked guides)

      i am using "Questing" (module i think) and official (default) lvl 1-100 profile. i am on last part 98,5 in nagrand but my toon keeps attacking elite Direfang Alphas http://www.wowhead.com/npc=86932/direfang-alpha which can easily kill my toon. it died ~10-15 times before i noticed this. so how can i set it to escape when this is too close? (it keeps attacking, even a "disable attack to this mob" is enough)
       
    2. nuhll

      nuhll Member

      Joined:
      Nov 29, 2014
      Messages:
      270
      Likes Received:
      1
      Trophy Points:
      18
      Do the quest on manual is the easierst thing.
       
    3. ares0027

      ares0027 New Member

      Joined:
      Apr 28, 2016
      Messages:
      28
      Likes Received:
      0
      Trophy Points:
      0

      yes that "works" but i am asking a solution. this also happened on iron horde objective in nagrand. that means i cannot go afk on "Battle for Shattrat", Direfang Alphas and Iron Horde objective. 3 times on 2 different maps.
       
    4. EchoTiger

      EchoTiger Official Profile and Singular Developer Staff Member Moderator

      Joined:
      Nov 28, 2012
      Messages:
      6,809
      Likes Received:
      631
      Trophy Points:
      113
      There's several ways you can go on about this.

      1) Utilizing the AvoidMobs logic.
      PHP:
      <HBProfile>

          <
      AvoidMobs>
              <
      Mob Name="Direfang Alpha" Entry="86932" />
          </
      AvoidMobs>


          <
      QuestOrder>
              <!-- 
      Quest stuff. -->
          </
      QuestOrder>

      </
      HBProfile>
      It's a common misconception that people believe this tells Honorbuddy to avoid walking near the mob.
      Instead, this will tell Honorbuddy to avoid aggressing the mob.
      However, this tag is largely obsolete now that we can toggle blacklist flags.​



      2) Blacklist flags (recommended with Avoidance behavior)
      PHP:
      <HBProfile>

          <
      Blacklist>
              <
      Mob Name="Direfang Alpha" Id="86932" Flags="Pull,Combat" />
          </
      Blacklist>


          <
      QuestOrder>
              <!-- 
      Quest stuff. -->
          </
      QuestOrder>

      </
      HBProfile>
      You can assign multiple flags, as exampled by above.
      However, if you're disabling combat - then disabling pull won't be needed because if combat is disabled - the bot will avoid fighting the mob all together as if it's not there.
      This won't prevent the bot from walking near the mob though, you'd need to use the avoidance behavior for that.​



      3) Avoidance Behavior (recommended with Blacklist flag)
      PHP:
      <HBProfile>

          <
      QuestOrder>
              <
      CustomBehavior File="Hooks\Avoid" AvoidName="DirefangAlpha_NPC" Command="Add" ObjectType="Npc" ObjectId="86932" Radius="20" />

              <!-- 
      Quest stuff. -->
          </
      QuestOrder>

      </
      HBProfile>
      This behavior will tell the bot to stay 20 yards away from the NPC given the Radius="20" attribute.
      The bot absolutely will not get near this mob with the use of this behavior.​




      To fully prevent the bot from messing with this mob, use both the Avoidance Behavior and the Blacklist combat flag.
       
      Last edited: May 1, 2016
    5. ares0027

      ares0027 New Member

      Joined:
      Apr 28, 2016
      Messages:
      28
      Likes Received:
      0
      Trophy Points:
      0

      thank you, while reading i also decided to use avoidance and blacklist combat flag at the same time, and you also confirmed it :) as i watched the bot he wasnt realling pulling it anyways. mob is lvl 100 and elite, hostile and there are a lot of it and their aggro range was enough for them to attack my bot. so there had to be a "run away" (which is avoidance here)


      is it simply okay to add this to ANYWHERE on the profile? and what if i am using an online profile? the profile i was telling is the official Buddy Team, 1-100 Questing Profile Pack.



      p.s. i am using your Azyul hall of lightning profile, is this avoidance also applicable to that for PVP? there are a lot of players on my realm simply waiting for people and when they attack bot tries to kill them instead of running in. how can i set it for your profile? (i apologize for all those questions, but i am new, and trying to learn to become self-sufficient in regards to profiles etc.)


      edit: after reading the actual codes you posted i noticed that avoidance behaviour is added right after <QuestOrder> tag and Blacklist Flag is right before <QuestOrder> tag so i assume order is important?
       
      Last edited: May 1, 2016
    6. EchoTiger

      EchoTiger Official Profile and Singular Developer Staff Member Moderator

      Joined:
      Nov 28, 2012
      Messages:
      6,809
      Likes Received:
      631
      Trophy Points:
      113
      With the Avoidance behavior, it's okay to put it anywhere in the profile - for as long as it's before the code that will make the bot go near the mobs.
      Unfortunately there's no way to edit profiles that are synced from the store. The only modifications you can make to them are the ones provided by your "Settings & Tools" menu under the "Override Profile Settings" section.

      [Hr][/Hr]


      The avoid behavior - no. However you can disable the bot's combat logic while exiting the dungeon.
      Simply use <DisableBehavior Name="Combat" /> before the DungeonExit line so that the combat behavior is disabled prior to the bot leaving the dungeon.

      Doing so will make the bot ignore when it's attacked, therefor it'll carry out the profile logic as if it's not being attacked.
      Re-enabling the combat won't be needed as there's logic in the actual dungeon run that controls that.

      [Hr][/Hr]


      Anything within the <QuestOrder></QuestOrder> tag section is ran sequentially. Which simply means line-by-line.
      Once line 1 executes the bot won't continue to line 2 until 1 is completely finished.
      So having the avoid logic directly under <QuestOrder> simply means it will be the first thing activated when you start the bot.

      The logic outside of the <QuestOrder></QuestOrder> tags are read when the profile is first loaded.
      However, only specific tags can be used here. You cannot run <QuestOrder> code outside of the <QuestOrder> tag.

      The tags outside of <QuestOrder> are mostly profile configurations. eg: Which mobs to blacklist, which item quantities to sell or mail, what the name of the profile is - etc.
       

    Share This Page