WoW:API GetShapeshiftForm: Difference between revisions
Jump to navigation
Jump to search
no edit summary
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} __NOTOC__ | ||
Retrieves 0-based index of current Shapeshiftform or Stance. | Retrieves 0-based index of current Shapeshiftform or Stance. | ||
{{Code/Begin}} | |||
stance = GetShapeshiftForm(arg1); | |||
{{Code/End}} | |||
== Parameters == | |||
<big>'''Arguments'''</big> | |||
- | :(arg1) | ||
:; arg1 : Boolean - Unknown purpose. the only argument Blizzard sends to this function is true | |||
<big>'''Returns'''</big> | |||
:stance | |||
:;stance : Number - one of following: | |||
::;Any class | ::;Any class | ||
::*0 = human form | :::*0 = human form | ||
::;Druid | ::;Druid | ||
::*1 = Bear/Dire Bear Form | :::*1 = Bear/Dire Bear Form | ||
::*2 = Aquatic Form | :::*2 = Aquatic Form | ||
::*3 = Cat Form | :::*3 = Cat Form | ||
::*4 = Travel Form | :::*4 = Travel Form | ||
::*5 = Moonkin Form (and maybe tree form, need to be checked by resto druid). | :::*5 = Moonkin Form (and maybe tree form, need to be checked by resto druid). | ||
::;Rogue | ::;Rogue | ||
::*1 = Stealth | :::*1 = Stealth | ||
::;Warrior | ::;Warrior | ||
::*1 = Battle Stance | :::*1 = Battle Stance | ||
::*2 = Defensive Stance | :::*2 = Defensive Stance | ||
::*3 = Beserker Stance | :::*3 = Beserker Stance | ||
== Example == | |||
local nStance = GetShapeshiftForm(true); | |||
nStance = GetShapeshiftForm(true); | |||