WoW:API CastShapeshiftForm: Difference between revisions
Jump to navigation
Jump to search
<b[[>API CastShapeshiftForm - Submitted by Naliya
No edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
*2 = Aquatic Form<br> | *2 = Aquatic Form<br> | ||
*3 = Cat Form<br> | *3 = Cat Form<br> | ||
*4 = Travel Form<br><br> | *4 = Travel Form<br> | ||
*5 = Moonkin Form<br><br> | |||
Rogue<br> | Rogue<br> | ||
*1 = Stealth<br><br> | *1 = Stealth<br><br> | ||
Line 18: | Line 19: | ||
*2 = Defensive Stance<br> | *2 = Defensive Stance<br> | ||
*3 = Beserker Stance<br> | *3 = Beserker Stance<br> | ||
</p> | |||
---- | ---- |
Revision as of 21:47, 12 November 2005
Casts Shapeshift on yourself. This is class dependant - not all classes have special abilites.
CastShapeshiftForm(#);
Arguments
(# in this case relates to the different forms)
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
- 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.
It has the same restrictions as other casting spells in that the trigger event needs to involve a keystroke or mouse click.