WoW API: GetShapeshiftForm

From AddOn Studio
Revision as of 00:03, 30 January 2007 by WoWWiki>WoWWiki-Leaf (GetShapeshiftForm() was found in Blizzard's SecureTemplates.lua)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetShapeshiftForm

Retrieves 0-based index of current Shapeshiftform or Stance.

stance = GetShapeshiftForm(unknown);

Arguments
(Boolean unknown)
type
One of the following:
unknown
the only argument Blizzard sends to this function is boolean 'true'.

Returns
stance
One of the 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

nStance = GetShapeshiftForm(true);