Mouseover pet attack macro help

Discussion forum related to PVP Server.

Mouseover pet attack macro help

by Cruzix » Sun May 31, 2015 12:40 pm

Hello,

I've been trying to make a macro that makes my pet attack when i mouse over the target, and if no mouseover target then it will attack my target. I've had this for other expansions but macros in vanilla have to be abit more advanced to work and im not very good at macros :p



I've been using this macro, it casts on my mouseover target or if it doesn't exist it casts on my target.

/cmcast Power Word: Fortitude
/script if (UnitIsFriend("player", "target") ) then CastSpellByName("Power Word: Fortitude") else CastSpellByName("Power Word: Fortitude", 1); end


This is a quote from another thread and its almost the same thing I want, but I need to modify it to work on enemies and with pet attack not Power Word: Fortitude, how do I do that?

btw, /Cast dosnt work in vanilla so I figured out that /run CastPetAction(1) is the way to use pet attack.

Anyone who can help me out making this macro work, I would appreciate it ALOT :)
Cruzix
Senior Sergeant
Senior Sergeant
 

Re: Mouseover pet attack macro help

by DEDRICK » Sun May 31, 2015 5:42 pm

Try this, I cannot confirm because I dont have a lvl 10 hunter, it does not require any addons.

/script if UnitCanAttack("player","mouseover") then CastPetAction(1,"mouseover") else CastPetAction(1,"target"); end
Cachecow - Tauren Warrior
DEDRICK
Sergeant
Sergeant
 

Re: Mouseover pet attack macro help

by Cruzix » Sun May 31, 2015 6:13 pm

DEDRICK wrote:Try this, I cannot confirm because I dont have a lvl 10 hunter, it does not require any addons.

/script if UnitCanAttack("player","mouseover") then CastPetAction(1,"mouseover") else CastPetAction(1,"target"); end

Dosnt seem to be working on mouseover target sadly :(
Cruzix
Senior Sergeant
Senior Sergeant
 

Re: Mouseover pet attack macro help

by Cruzix » Mon Jun 01, 2015 12:07 pm

A guy on the wow-one forum called Zeuka helped me out with the macro and made this:
/script if UnitCanAttack("player","mouseover") then TargetUnit("mouseover");PetAttack();TargetUnit("playertarget"); else PetAttack(); end


Heres what it does:
If you're targeting a mob and you dont have a mouseover target then the pet will attack your main target and if you do have a mouseover target the pet will attack that target instead so you dont have to switch your own main target and lose DPS

So if people in future want the same macro type then there you go! :)

PS. why dont we have a macro/addon section on our forum @moderators
Cruzix
Senior Sergeant
Senior Sergeant
 


Return to PVP Server Specific discussion