Macro : get the number of the current stance
Posted:
Mon May 11, 2015 10:58 am
by Foledem
Hi, I would use different spell depending on the stance.
I try to check the stance with "GetShapeshiftForms();" but this API always return 3 independently of my stance.
How can i get the number of the current stance ?
Re: Macro : get the number of the current stance
Posted:
Tue May 12, 2015 8:53 am
by whissper
Try to use that function with parameter --
GetShapeshiftForm(true)simple example (that should work):
- Code: Select all
/script local a=GetShapeshiftForm(true);if a==1 then CastSpellByName('Thunder Clap');elseif a==3 then CastSpellByName('Whirlwind');end
Re: Macro : get the number of the current stance
Posted:
Fri May 15, 2015 11:46 am
by Slash90
Somewhere you can find good and handy macros on a site or so? Would be awesome if there is one!
Re: Macro : get the number of the current stance
Posted:
Sun May 17, 2015 9:22 pm
by Kapaya
whissper wrote:Try to use that function with parameter --
GetShapeshiftForm(true)simple example (that should work):
- Code: Select all
/script local a=GetShapeshiftForm(true);if a==1 then CastSpellByName('Thunder Clap');elseif a==3 then CastSpellByName('Whirlwind');end
Is this acutally working? Whenever I try it, I just get a LUA error.