Jump to content

FightClass Condition help


Recommended Posts

Hello all,

I'm trying to setup my hunter fightclass to use freezing trap when my player char has aggro when fighting more than 1 mob.

The xml section currently looks like this:

 

    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HaveTarget</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HavePet</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>TargetDistance</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>BiggerOrEqual</Type>
            <Value>6</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>DistanceMeToPet</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>BiggerOrEqual</Type>
            <Value>6</Value>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>UnitAttackPlayerNear</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>1</Number>
            <Type>BiggerOrEqual</Type>
            <Radius>5</Radius>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Freezing Trap</SpellName>
      <Priority>2</Priority>
      <CheckSpellDistance>false</CheckSpellDistance>
      <CheckIfView>false</CheckIfView>
      <CanMoveDuringCast>Yes</CanMoveDuringCast>
    </FightClassSpell>

 

Basically what I want it to do is cast freezing trap if there is 1 or more hostile units within 5 yards of my hunter, and my target and pet are more than 5 yards away (target attacking pet). But no matter waht I can't get it to cast freezing trap using these conditions, so any help would be appreciated!

 

Also, I've noticed some strange behaviour which is part of the reason I'm trying to add this in.

The bot will some times pick a target far away from my char when there are several other targets (included in profile to attack) nearer. The bot will lock on to the distant target, run through all the other mobs aggroing them and keep on going until it attacks it's selected target... I've watched this cause my hunter to pull 5 mobs all at once.... First, why isn't the bot selecting the nearest target, and second, why wouldn't it try and kill mobs it aggrod before attacking it's selected target?

Thank

Link to comment
Share on other sites

Just now, bael666 said:

 

The bot will some times pick a target far away from my char when there are several other targets (included in profile to attack) nearer. The bot will lock on to the distant target, run through all the other mobs aggroing them and keep on going until it attacks it's selected target... I've watched this cause my hunter to pull 5 mobs all at once.... First, why isn't the bot selecting the nearest target, and second, why wouldn't it try and kill mobs it aggrod before attacking it's selected target?

Known issue

Link to comment
Share on other sites

13 hours ago, Pasterke said:

This is only possible with c# code. Set your current position and add 5 yards, then cast freezing trap at that postion. Easy stuff.

Seems that's not true as I now have it working (without C#).

Link to comment
Share on other sites

  • 1 year later...
On 5/27/2016 at 3:27 PM, bael666 said:

Seems that's not true as I now have it working (without C#).

Hello, can you please share with us how you got it working? What conditions did you use or how did you do it.. I am having this issue too!

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