WoW:API CastShapeshiftForm

From AddOn Studio
Revision as of 04:22, 1 April 2005 by WoWWiki>Naliya
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
<b[[>API CastShapeshiftForm - Submitted by Naliya


Casts Shapeshift on yourself. So far as I'm aware, this is restricted to Druid class.

CastShapeshiftForm(#);

Arguments

(# in this case relates to the different forms)

  • 1 = Bear/Dire Bear Form
  • 2 = Aquatic Form
  • 3 = Cat Form
  • 4 = Travel Form


Rumours abound that 0 is caster form, but I can't personally get that to work, so I've omitted it for now.


Returns

  • Nil



Example

CastShapeshiftForm(1);


Result


Shapeshifts caster into Bear Form.


Note, casting the spell again changes back to caster form. So, for instance;

if (GetNumShapeshiftForms()==1) then CastShapeshiftForm(1);end;


Result

In this case, the script checks if you're in Bear/Dire Bear form, and if so, casts the spell to change you back to Caster form.