(docs) |
(Initial snippet) |
||
Line 1: | Line 1: | ||
− | {{wowapi}} |
+ | {{wowapi}} |
+ | Returns the status of a mirror timer (fatigue, breath and feign death timers). |
||
Gives information about the mirror bar. (Spirit release, exhaustion/fatigue, etc) |
Gives information about the mirror bar. (Spirit release, exhaustion/fatigue, etc) |
||
timer, initial, maxvalue, scale, paused, label = GetMirrorTimerInfo(id) |
timer, initial, maxvalue, scale, paused, label = GetMirrorTimerInfo(id) |
||
Line 7: | Line 8: | ||
== Returns == |
== Returns == |
||
− | ; timer : String - A string identifying timer type; "EXHAUSTION", "BREATH", "DEATH", and "FEIGNDEATH", or "UNKNOWN" indicating that the timer corresponding to that index is not currently active. |
+ | ; timer : String - A string identifying timer type; "EXHAUSTION", "BREATH", "DEATH", and "FEIGNDEATH", or "UNKNOWN" indicating that the timer corresponding to that index is not currently active, and other return values are invalid. |
; initial : Number - Value of the timer when the it started. |
; initial : Number - Value of the timer when the it started. |
||
; maxvalue : Number - Maximum value of the timer. |
; maxvalue : Number - Maximum value of the timer. |
Revision as of 23:57, 7 November 2009
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the status of a mirror timer (fatigue, breath and feign death timers). Gives information about the mirror bar. (Spirit release, exhaustion/fatigue, etc)
timer, initial, maxvalue, scale, paused, label = GetMirrorTimerInfo(id)
Arguments
- id
- Number - timer index, from 1 to MIRRORTIMER_NUMTIMERS (3 as of 3.2). In general, the following correspondence holds: 1 = Fatigue, 2 = Breath, 3 = Feign Death.
Returns
- timer
- String - A string identifying timer type; "EXHAUSTION", "BREATH", "DEATH", and "FEIGNDEATH", or "UNKNOWN" indicating that the timer corresponding to that index is not currently active, and other return values are invalid.
- initial
- Number - Value of the timer when the it started.
- maxvalue
- Number - Maximum value of the timer.
- scale
- Number - Change in timer value per second.
- paused
- Flag - 0 if the timer is currently running, a value greater than zero if it is not.
- label
- String - Localized timer name.
Notes
- Calling the function with an out-of-range index results in an error. The syntax specification in the error text is invalid; this function may not be called with "BREATH", "EXHAUSTION" etc as arguments.
- The current value of the timer may be retrieved using GetMirrorTimerProgress("timer"). Most timers tend to count down to zero, at which point something bad happens.