Voidwalker pet macro

Voidwalker pet macro

by Helbaek » Sun Jul 26, 2015 1:52 pm

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

Re: Voidwalker pet macro

by Vikterion » Mon Jul 27, 2015 3:17 am

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
Vikterion
Private
Private
 

Re: Voidwalker pet macro

by Helbaek » Mon Jul 27, 2015 4:49 pm

Oh wauw, I would never have figured that out :P

Thanks alot for the help! :)
Helbaek
Tester
 


Return to Warlock