Jump to content

How do I use a macro per pull?


Recommended Posts

Hello,

 

I am trying to use this macro on my hunter

 

/petattack
/cast Hunter's Mark(Rank 2)
/cast Berserking(Racial)
/cast Rapid Fire

 

But I want it to press that macro per pull or per mob. Is there a way I can do that?

Link to comment
Share on other sites

Hello, add this in your fightclass like:

RunMacroText("/petattack");
RunMacroText("/cast Hunter's Mark(Rank 2)");
RunMacroText("/cast Berserking(Racial)");
RunMacroText("/cast Rapid Fire");

with spell settings "Not spell is lua script" > True and "Once per target" > True (and add distance condition)

 

But, you can also add all spells normally in your fightclass

Link to comment
Share on other sites

  • 4 months later...
So should my file look like this??
 
RunMacroText("/petattack");
RunMacroText("/cast Hunter's Mark(Rank 2)");
RunMacroText("/cast Berserking(Racial)");
RunMacroText("/cast Rapid Fire");
 
<?xml version="1.0" encoding="utf-16"?>
  <FightClassGeneralSettings>
    <FightClassName>Hunter</FightClassName>
    <Range>37</Range>
    <FramePerSecond>25</FramePerSecond>
  </FightClassGeneralSettings>
  <FightClassSpells>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>pet</SpellName>
      <Priority>7</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetBuff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>serpent sting</Name>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>serpent sting</SpellName>
      <Priority>6</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>Focus</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>BiggerOrEqual</Type>
            <Value>30</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>kill command</SpellName>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions />
      <SpellName>arcane shot</SpellName>
      <Priority>4</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>PetHealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>SmallerOrEqual</Type>
            <Value>50</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>mend pet</SpellName>
      <Priority>3</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>UnitAttackPlayerNear</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>2</Number>
            <Type>SmallerOrEqual</Type>
            <Radius>8</Radius>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>multi shot</SpellName>
      <Priority>2</Priority>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HealthPercent</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Value>10</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>feign death</SpellName>
      <Priority>1</Priority>
    </FightClassSpell>
  </FightClassSpells>
</FightClass>
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...