WoW:API GetShapeshiftForm: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(upgraded code block)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}
Retrieves 0-based index of current Shapeshiftform or Stance.
stance = GetShapeshiftForm(arg1);
 
{{Code/Begin}}
stance = GetShapeshiftForm(arg1);
{{Code/End}}


== Parameters ==
== Parameters ==

Revision as of 16:10, 16 May 2007

WoW API < GetShapeshiftForm

stance = GetShapeshiftForm(arg1);

Parameters

Arguments

(arg1)
arg1
Boolean - Unknown purpose. the only argument Blizzard sends to this function is true

Returns

stance
stance
Number - one of following:
Any class
  • 0 = human form
Druid
  • 1 = Bear/Dire Bear Form
  • 2 = Aquatic Form
  • 3 = Cat Form
  • 4 = Travel Form
  • 5 = Moonkin Form (and maybe tree form, need to be checked by resto druid).
Rogue
  • 1 = Stealth
Warrior
  • 1 = Battle Stance
  • 2 = Defensive Stance
  • 3 = Beserker Stance

Example

local nStance = GetShapeshiftForm(true);