Pet attack macro?

Post Reply
Zeroanjel
Posts: 1

Pet attack macro?

Post by Zeroanjel » Fri May 26, 2023 2:41 am

is there a macro that we can use to cast a spell and have your pet attack without clicking the attack button?? Thanks

Frosty73
Posts: 1

Re: Pet attack macro?

Post by Frosty73 » Fri May 26, 2023 4:42 am

/script PetAttack(target)

User avatar
Jolikmc
Posts: 486
Location: United States
Contact:

Re: Pet attack macro?

Post by Jolikmc » Fri May 26, 2023 5:21 am

Here are all the normal pet hotkeys in Vanilla macro format:

Code: Select all

PetAggressiveMode() - Set your pet in aggressive mode.
PetAttack()         - Instruct your pet to attack your target.
PetStopAttack()     - Stop the attack of the pet.
PetDefensiveMode()  - Set your pet in defensive mode.
PetFollow()         - Instruct your pet to follow you.
PetPassiveMode()    - Set your pet into passive mode.
PetWait()           - Instruct your pet to remain still.
And here's a couple of random examples of what you're asking for:

Use Wand + Pet Attack

Code: Select all

/run --CastSpellByName("Shoot")
/run PetAttack(); CastSpellByName("Shoot") end
Cycle Immolate, Corruption, and Shadow Bolt + Pet Attack

Code: Select all

/run --CastSpellByName("Immolate")
/run PetAttack(); local c=CastSpellByName; if IsShiftKeyDown() or n==0 then c("Immolate") n=1; elseif n==1 then c("Corruption") n=2 else c("Shadow Bolt") end
(You have to hold Shift to reset the "castsequence" counter on this one.)
Not currently playing. Just skulking and snarking~

Malfiouss
Posts: 2

Re: Pet attack macro?

Post by Malfiouss » Wed May 31, 2023 12:19 am

I originally had my pet attack mapped to my spells but found this messed up, pulling more mobs and maintaining agro on specific ones. I ended up making the pet attack a separate button for more control.

I can see the macros being nice in dungeons though to avoid having to keep telling your pet to attack. I wish there was a way to tell the pet to attack my target if not already engaged.

Adnoctum
Posts: 4

Re: Pet attack macro?

Post by Adnoctum » Fri Sep 22, 2023 4:50 am

stop using pet attack macro binde attack and passive to mousewheel scroll up for attack and down for passive . you will never again have a pet pull acident and you have full controll of pet. and then just ctrl up/down for camera..

Post Reply