danc68 8 Posted March 12, 2015 Share Posted March 12, 2015 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 https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/ Share on other sites More sharing options...
Droidz 2738 Posted March 15, 2015 Share Posted March 15, 2015 Hello, Do you have try to use "Pet..." conditions? Link to comment https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/#findComment-9785 Share on other sites More sharing options...
danc68 8 Posted March 15, 2015 Author Share Posted March 15, 2015 I have, but is does not seem to make a difference. I'll keep working on it. For now, I just have a couple macros to toss a heal every so many seconds. Link to comment https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/#findComment-9796 Share on other sites More sharing options...
Droidz 2738 Posted March 15, 2015 Share Posted March 15, 2015 Ok, if pet condition does not works the best way is to use lua code. Link to comment https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/#findComment-9797 Share on other sites More sharing options...
danc68 8 Posted March 15, 2015 Author Share Posted March 15, 2015 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 https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/#findComment-9800 Share on other sites More sharing options...
danc68 8 Posted March 16, 2015 Author Share Posted March 16, 2015 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 https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/#findComment-9801 Share on other sites More sharing options...
Droidz 2738 Posted March 16, 2015 Share Posted March 16, 2015 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. danc68 1 Link to comment https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/#findComment-9808 Share on other sites More sharing options...
danc68 8 Posted March 17, 2015 Author Share Posted March 17, 2015 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 https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/#findComment-9812 Share on other sites More sharing options...
danc68 8 Posted March 17, 2015 Author Share Posted March 17, 2015 :) :) :) :) :) :) :) 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 reefer75 and Droidz 2 Link to comment https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/#findComment-9813 Share on other sites More sharing options...
reefer75 9 Posted May 10, 2015 Share Posted May 10, 2015 thank you both love it! great work! Droidz 1 Link to comment https://wrobot.eu/forums/topic/2077-fightclass-help-targeting-bodyguard/#findComment-10086 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now