Page 1 of 1

Drain Soul Macro Assistance

PostPosted: Mon Sep 21, 2015 8:41 pm
by ResmoDaimac
Greetings,

If somebody can assist me with a macro to do the following, it would be much appreciated. I have only written very basic macros up to this point and don't have a strong knowledge on the /script writing.

Cast Drain Soul (Rank 1)
Set pet on passive if pet's target is the same as my own. If pet's target does not match my target, do not issue any command to pet.

Thanks :)

Re: Drain Soul Macro Assistance

PostPosted: Tue Sep 22, 2015 4:29 pm
by LYQ
not sure but it's possible, you can try

/run CastSpellByName("Drain Soul (Rank 1)") if UnitIsUnit("playertarget","pettarget") then PetPassiveMode() end

(you gotta check if the spellname is written perfectly, it matters if there is a space more or less)

edit: the part with the passivemode does work, just check if the spell drainsoul with rank is written correctly

Re: Drain Soul Macro Assistance

PostPosted: Wed Sep 23, 2015 2:47 am
by ResmoDaimac
That works perfectly! Thanks so much!

That macro is far more simple than the macros I was creating an experimenting with.