Page 1 of 1

Voidwalker pet macro

PostPosted: Sun Jul 26, 2015 1:52 pm
by Helbaek
Hi all

I just started playing Warlock, and i'm loving it :)

I'm trying to make a macro that does the following:

summon Voidwalker, cast Consume Shadows if out of combat, and Sacrifice if in combat.

This is what I have come up with so far, but sadly I can't get it to work.

/cast [pet:voidwalker,combat] Sacrifice; [pet:voidwalker,nocombat] Consume Shadows;

Note: I know the following macro still misses the summon part.

Help a fellow Warlock out? :)

Thanks in advance.

Re: Voidwalker pet macro

PostPosted: Mon Jul 27, 2015 3:17 am
by Vikterion
Macros in classic use a different format.

/run local a = UnitCreatureFamily("pet"); if a=="Voidwalker" and UnitAffectingCombat("player") then CastSpellByName("Sacrifice") elseif a=="Voidwalker" then CastSpellByName("Consume Shadows") else CastSpellByName("Summon Voidwalker") end

Here is a link for more information on the classic API to help you make your own macros: http://vanilla-wow.wikia.com/wiki/World_of_Warcraft_API

Re: Voidwalker pet macro

PostPosted: Mon Jul 27, 2015 4:49 pm
by Helbaek
Oh wauw, I would never have figured that out :P

Thanks alot for the help! :)