Jump to content

Fightclass help [Targeting Bodyguard]


danc68

Recommended Posts

I am looking for a little help. I have a Holy priest and use a bodyguard (follower) for grinding. I would like to setup a fightclass that allows me to target and heal my bodyguard so it doesn't die on the elite mobs in Negrand. Has anyone accomplished this yet?

 

Thanks for any suggestions!

Link to comment
Share on other sites

Thanks. I am not that good at lua yet, but I'll try that option. :-)

 

Currently I have this running:

*****************************
<FightClassSpell>
      <SpellName>RunMacroText("/Use [@focus,exists,nodead][]Renew")</SpellName>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>MeInCombat</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <Priority>30</Priority>
      <Timer>16000</Timer>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
      <CanMoveDuringCast>Yes</CanMoveDuringCast>
    </FightClassSpell>
*****************************
With the same kind of macro going for Prayer of Mending and Power Word: Shield.
 
PS - I am loving the bot and have most of my fight classes and grinding profiles set. I really appreciate the great tool and all the information in here to get it all set. You guys are awesome!
Link to comment
Share on other sites

Ok, trying to do this through the lua (me=newbie in writing lua) ...

 
***********************************
<FightClassSpell>
      <SpellName>-- Focus Binding Heal</SpellName>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>LuaScript</ContionType>
          <Param xsi:type="FightClassConditionLua">
            <LuaScript>if (UnitHealth("Focus") / UnitHealthMax("Focus") * 100).."%" < .90 then CastSpellByName("Binding Heal"[, "Focus"]) end</LuaScript>
            <VarRet>retV</VarRet>
            <ValueRet>0</ValueRet>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <Priority>31</Priority>
      <CombatOnly>false</CombatOnly>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
      <TargetFriends>true</TargetFriends>
    </FightClassSpell>
**********************************************
Any help on what I am missing?
 
I am trying to cast binding heal on my bodyguard (after he is set to focus) when he drops below 90% health.
 
Thanks for any assistance!
Link to comment
Share on other sites

To cast spell on your bodyguard when health is smaller than 90%:

 

- In spell list (where you add spell name) add this code:

RunMacroText("/target Delvar Ironfist") 
CastSpellByName("Flash of Light" , "TARGET")

(replace Delvar Ironfist by your bodyguard name and Flash of Light by your spell name)

- In "Spell settings" put "True" at "Not spell, is lua script".

- Add condition "Pet Health Percent", "Type" = "Smaller",  "Value" = "90".

 

 

ps: If your character wow class has pet, you can get problem with condition "Pet Health Percent" (false result), replace this condition by lua condition.

Link to comment
Share on other sites

Thank you for deciphering my sleepless rambling! 

 

As I look back at what I wrote, there are all kinds of issues with what I was putting in.

 

I'll try it tonight and let you know how it turns out. :-)

 

Thanks!

Link to comment
Share on other sites

:)  :)  :)  :)  :)  :)  :)

Thank you! Thank you! Thank you!

 

This worked great.

 

I modified it to put "Focus" instead of the follower's name. that way I can use any of them and just set them to "focus".

 

Droidz, you are a rockstar!!!!

 

I attached my current working fight class (Holy Priest)

Dan Heal Focus.xml

Link to comment
Share on other sites

  • 1 month later...

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