Jump to content

Pet Buff condition not working


Recommended Posts

Hi,

 

I have a hunter fightclass with the following spell/condition setup for Mend Pet:

<FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>PetBuff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Mend Pet</Name>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>PetHealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>70</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HavePet</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Mend Pet</SpellName>
      <Priority>8</Priority>
      <IsBuff>true</IsBuff>
      <CastOn>pet</CastOn>
    </FightClassSpell>

 

However, it seems the pet buff condition isn't considered as my hunter will consistently spam Mend Pet as soon as my pet goes below 70% hp

[F] 11:01:38 - [Spell] Cast Arcane Shot (Arcane Shot)
[F] 11:01:38 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:38 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:39 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:40 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:40 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:40 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:41 - [Spell] Cast Arcane Shot (Arcane Shot)
[F] 11:01:41 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:42 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:42 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:43 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:43 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:43 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:45 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:45 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:45 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:45 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:46 - [Spell] Cast Arcane Shot (Arcane Shot)
[F] 11:01:46 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:46 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:46 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:48 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:48 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:48 - [Spell] Cast (on pet) Mend Pet (Mend Pet)
[F] 11:01:48 - [Spell] Cast (on pet) Mend Pet (Mend Pet)

Thanks

Link to comment
Share on other sites

 

This should work. :wink:

    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>PetHealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>70</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HavePet</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Mend Pet</SpellName>
      <Priority>8</Priority>
      <CombatOnly>false</CombatOnly>
      <CheckSpellDistance>false</CheckSpellDistance>
      <CheckIfView>false</CheckIfView>
      <Timer>15100</Timer>
      <CanMoveDuringCast>Yes</CanMoveDuringCast>
      <LockFrame>false</LockFrame>
    </FightClassSpell>

 

Link to comment
Share on other sites

Nice work around, thanks! I was using a "Only cast once per target" condition to prevent the spam but your way is much better! :)

 

Maybe you could help with another problem I'm having - I set a "Vendor" mob in my Grinder profile (this is the vendor that sells the food/drink I'm currently using) - however, when going to town, wrobot just goes to some random nearby vendor to sell stuff, preventing it being able to buy food/drink.

 

Anyway to force it to only use the vendors I've specified?

 

Thanks.

Link to comment
Share on other sites

27 minutes ago, bael666 said:

Nice work around, thanks! I was using a "Only cast once per target" condition to prevent the spam but your way is much better! :)

 

Maybe you could help with another problem I'm having - I set a "Vendor" mob in my Grinder profile (this is the vendor that sells the food/drink I'm currently using) - however, when going to town, wrobot just goes to some random nearby vendor to sell stuff, preventing it being able to buy food/drink.

 

Anyway to force it to only use the vendors I've specified?

 

Thanks.

Just click on "General Settings" - "Enter advanced settings..." - "Other options" and then uncheck "Automatically add nearest NPCs to database". Ofc, clear the NpcDB.xml in the \Data Folder. :wink:

Link to comment
Share on other sites

Cool that sorted it! Thanks!


Last one now haha! I've made a profile in STV, though when my bags are full and the GoToTown function starts, it tries each of the vendors I've setup (there's 3), says they're all unreachable and goes back to killing stuff.

I'm thinking this maybe something to do with the vendors being in booty Bay (guess all those ramps aren't good for the bot).

Link to comment
Share on other sites

25 minutes ago, bael666 said:

Cool that sorted it! Thanks!


Last one now haha! I've made a profile in STV, though when my bags are full and the GoToTown function starts, it tries each of the vendors I've setup (there's 3), says they're all unreachable and goes back to killing stuff.

I'm thinking this maybe something to do with the vendors being in booty Bay (guess all those ramps aren't good for the bot).

That means, he can't generate a path to the vendor, there's no other solution, then adding another reachable vendor to the profile.

I'm not a Staff member, that's why can't provide you any solution for that kind of problem.

From my side, i really want the possibility to record my own meshes, so the bot gets usable for dungeons and stuff..

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