WoW:API GetShapeshiftFormInfo: Difference between revisions
Jump to navigation
Jump to search
GetShapeshiftFormInfo -Documentation by Satsh-
(Added form indexes from CastShapeshiftForm()) |
(upgraded deprecated template) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
<center>'''GetShapeshiftFormInfo''' ''-Documentation by Satsh-''</center> | <center>'''GetShapeshiftFormInfo''' ''-Documentation by Satsh-''</center> | ||
Line 42: | Line 43: | ||
icon, name, active = GetShapeshiftFormInfo(1); | icon, name, active = GetShapeshiftFormInfo(1); | ||
icon, name, active, castable = GetShapeshiftFormInfo(1); | icon, name, active, castable = GetShapeshiftFormInfo(1); | ||
Revision as of 18:03, 6 January 2007
← WoW API < GetShapeshiftFormInfo
Retrieves information about an available Shapeshiftform or Stance.
icon, name, active, castable = GetShapeshiftFormInfo(index);
- Arguments
- (Number Index)
- type
- One of the following:
- index
- Index of ShapeshiftForm, counted from left to right from Iconpositions in the Shapeshift/Stance bar. May not be greater then GetNumShapeshiftForms();
- Druid
- 1 = Bear/Dire Bear Form
- 2 = Aquatic Form
- 3 = Cat Form
- 4 = Travel Form
- 5 = Moonkin Form
-
- Rogue
- 1 = Stealth
-
- Warrior
- 1 = Battle Stance
- 2 = Defensive Stance
- 3 = Beserker Stance
- Returns
- icon
- Position and name of the icon used for the button
- name
- Name of the ShapeshiftForm or Stance (optional)
- active
- Returns 1 if this ShapeshiftForm/Stance is currently active, else 0 (optional)
- castable
- identifies if its castable.
- Example
icon = GetShapeshiftFormInfo(1); icon, name = GetShapeshiftFormInfo(1); icon, name, active = GetShapeshiftFormInfo(1); icon, name, active, castable = GetShapeshiftFormInfo(1);