m
Move page script moved page API CastShapeshiftForm to WoW:API CastShapeshiftForm without leaving a redirect
(→Note) |
m (Move page script moved page API CastShapeshiftForm to WoW:API CastShapeshiftForm without leaving a redirect) |
||
| (5 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | {{wowapi}}__NOTOC__ | ||
{{protectedapi|2.0.1|For alternatives, try [[API_SecureTemplates|Secure Template]] or the new [[Conditional slash commands#/cast|/cast]].}} | |||
Casts Shapeshift on yourself. This is class dependent - not all classes have special abilities. | |||
Casts Shapeshift on yourself. This is class | |||
CastShapeshiftForm(index); | CastShapeshiftForm(index); | ||
| Line 55: | Line 54: | ||
== Example == | == Example == | ||
This Example shows how to return to your human form | This Example shows how to return to your human form out of any other form. | ||
for i=1, GetNumShapeshiftForms() do | |||
_, name, active = GetShapeshiftFormInfo(i); | |||
for i=1, GetNumShapeshiftForms() do | if( active ~= nil ) then | ||
DEFAULT_CHAT_FRAME:AddMessage("SQS: leaving '"..name.."'"); | |||
CastShapeshiftForm(i) | |||
break; | |||
end | |||
end | |||
end | |||