Page 1 of 1

Macro : get the number of the current stance

PostPosted: 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

PostPosted: 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

PostPosted: Thu May 14, 2015 12:07 pm
by Tyriun
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


Thanks!

Re: Macro : get the number of the current stance

PostPosted: 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

PostPosted: Sat May 16, 2015 11:58 am
by whissper

Re: Macro : get the number of the current stance

PostPosted: 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.

Image