WoW:API GetShapeshiftForm: Difference between revisions
Jump to navigation
Jump to search
(GetShapeshiftForm() was found in Blizzard's SecureTemplates.lua) |
mNo edit summary |
||
Line 35: | Line 35: | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
nStance = GetShapeshiftForm(true); | nStance = GetShapeshiftForm(true); |
Revision as of 00:15, 30 January 2007
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);