WoW:API GetShapeshiftFormCooldown: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(upgraded deprecated template) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
GetShapeshiftFormCooldown(index); | GetShapeshiftFormCooldown(index); | ||
Line 19: | Line 20: | ||
/script A,B,C = GetShapeshiftFormCooldown(1); DEFAULT_CHAT_CHANNEL("Time Remaining: "..B-(GetTime()-A),1,1,1); | /script A,B,C = GetShapeshiftFormCooldown(1); DEFAULT_CHAT_CHANNEL("Time Remaining: "..B-(GetTime()-A),1,1,1); | ||
Revision as of 18:10, 6 January 2007
← WoW API < GetShapeshiftFormCooldown
GetShapeshiftFormCooldown(index);
Parameters (index)
Index = integer number, each class has its own index.
Returns (StartTime, Duration, isActive)
StartTime = the server time of when the cooldown starts.
Duration = how long cooldown takes (in seconds)
isActive = if Cooldown is active - this will be = 1 (not positive on this defintion tho).
Example:
Sends the time remaining for the indexed cooldown
/script A,B,C = GetShapeshiftFormCooldown(1); DEFAULT_CHAT_CHANNEL("Time Remaining: "..B-(GetTime()-A),1,1,1);