Nostlike macro syntax

Re: Nostlike macro syntax

by LYQ » Tue Nov 17, 2015 2:26 pm

modernist wrote:/script TargetUnit'player'
/script CastSpellByName('Devour Magic(Rank 4)', 1)
/script TargetLastTarget()


did you test this macro?
I'm just wondering since I've never used CastSpellByName for petspells

the 1 in Cast.. is for selfCast, so from reading I think of three scenarios of this macro:
if CastSpellByName('Devour Magic(Rank 4)', 1) casts it on the player(and not the pet itself) the other lines would be useless
else 1 could maybe cause the pet trying to cast it on itself?
or that's not possible and the 1 is only "too much" and doesn't make a difference
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Nostlike macro syntax

by modernist » Tue Nov 17, 2015 3:39 pm

i didn't — just found it buried in an old forum post
modernist
Sergeant Major
Sergeant Major
 

Re: Nostlike macro syntax

by LYQ » Tue Nov 17, 2015 5:55 pm

I just tested it

/run CastSpellByName("Fire Shield",1)

is casting it on the player itself(without having to target the player),

so for OP it is enough to use

/script CastSpellByName('Devour Magic(Rank 4)', 1)
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Previous

Return to Addons & macros