Macro : get the number of the current stance

Macro : get the number of the current stance

by Foledem » Mon May 11, 2015 10:58 am

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 ?
Foledem
Tester
 

Re: Macro : get the number of the current stance

by whissper » Tue May 12, 2015 8:53 am

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
whissper
Grunt
Grunt
 

Re: Macro : get the number of the current stance

by Tyriun » Thu May 14, 2015 12:07 pm

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!
Tyriun
Tester
 

Re: Macro : get the number of the current stance

by Slash90 » Fri May 15, 2015 11:46 am

Somewhere you can find good and handy macros on a site or so? Would be awesome if there is one!
Slash90
Private
Private
 

Re: Macro : get the number of the current stance

by Kapaya » Sun May 17, 2015 9:22 pm

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
Kapaya
Tester
 


Return to Warrior