Warlock selfbuff macro

Warlock selfbuff macro

by Granulat » Sat Oct 17, 2015 5:23 pm

Hi

Is there any way to add 1 more spell in this existing byff macro of mine?

/run if n~= 1 then CastSpellByName("Demon Armor") n=1 else CastSpellByName("Soul Link") n=0 end


I would like it to cast life tap once as well.


Cheers
Granulat
Grunt
Grunt
 

Re: Warlock selfbuff macro

by AfterAfterlife » Sat Oct 17, 2015 7:21 pm

Code: Select all
/run if n == nil then n=0 end if n==0 then CastSpellByName("Demon Armor") n=n+1 elseif n==1 CastSpellByName("Soul Link") n=n+1 else CastSpellByName("Life Tap) n=0 end


Now, it will cast Life Tap in the end. Also, made n start from 0 right away, instead of "Life Tap"'ing first.

To add more spells just follow the pattern:
Code: Select all
...
if n==X then
CastSpellByName("SpellName")
n=n+1
...


Where X is the position (it starts from 0).
AfterAfterlife
Grunt
Grunt
 

Re: Warlock selfbuff macro

by Granulat » Sun Oct 18, 2015 3:48 am

Doesn't work for me. :/
I added space in "elseif" so it got "else if" and this sign " after Life Tap but still doesn't work.

It wont cast the first spell.
Granulat
Grunt
Grunt
 

Re: Warlock selfbuff macro

by zerf » Sun Oct 18, 2015 5:55 am

You can't rely on counter because if you spam that macro, you'll skip spell casts due to gcd.
I suggest using SuperMacro and check for buffs before casting them or create your own addon function that does what you want (because of macro lenght limit).

If all you want is automatic buff casts, you can use autobuff (http://addons.us.to/addon/autobuff).
vanilla wow addon collection - http://addons.us.to
User avatar
zerf
Senior Sergeant
Senior Sergeant
 

Re: Warlock selfbuff macro

by AfterAfterlife » Sun Oct 18, 2015 1:43 pm

Granulat wrote:Doesn't work for me. :/
I added space in "elseif" so it got "else if" and this sign " after Life Tap but still doesn't work.

It wont cast the first spell.


I missed a "then" on "elseif n==1", so in the end should be:
Code: Select all
/run if n == nil then n=0 end if n==0 then CastSpellByName("Demon Armor") n=n+1 elseif n==1 then CastSpellByName("Soul Link") n=n+1 else CastSpellByName("Life Tap) n=0 end


zerf wrote:You can't rely on counter because if you spam that macro, you'll skip spell casts due to gcd.

Ye, Zerf is right. I forgot about that. Only with some scripts (e.g. if the spell has been casted) we could increment the variable.
But doing that in a macro might be impossible due to its characters limits.

Follow Zerf's advice, because he's has way more knowledge in Vanilla than me.

Good luck.
AfterAfterlife
Grunt
Grunt
 

Re: Warlock selfbuff macro

by Granulat » Sun Oct 18, 2015 1:52 pm

zerf wrote:You can't rely on counter because if you spam that macro, you'll skip spell casts due to gcd.
I suggest using SuperMacro and check for buffs before casting them or create your own addon function that does what you want (because of macro lenght limit).

If all you want is automatic buff casts, you can use autobuff (http://addons.us.to/addon/autobuff).


This autobuff works but it seems it's only able to bind scroll in scroll out which is used for zooming, in case I unbind zoom in and zoom out in WoW it wont work. Same if I change scroll out scroll in it just uses the new buttons.


I'll guess I will try the SuperMacro.


Thx afterafterlife, but still doesn't work. I hear a lua error occur and nothing happens after XD

Edit, autobuff actully worked when not using trigger, i have to change target but it makes the job.
Granulat
Grunt
Grunt
 


Return to Addons & macros