WoW:API GetRestState: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 3: Line 3:
Returns whether the player is in a [[Rest|rested]] (earning double XP for kills) or normal state.
Returns whether the player is in a [[Rest|rested]] (earning double XP for kills) or normal state.


<pre>GetRestState()</pre>
<pre>id, name, mult = GetRestState()</pre>


'''''Arguments'''''
== Parameters ==
=== Arguments ===


:None.
:None.


----
=== Returns ===
;''Returns''


'''''Returns'''''
:;id - rest state Id
* '''1''' if the player is in a rested state.
* '''2''' if the player is in a normal state.
Blizzard code indicates that there may be state up to 5.


:* '''1''' if the player is in a rested state.
:;name - rest state name, localised (i.e. "Normal", "Rested", ...)
:* '''2''' if the player is in a normal state.
 
:;mult - rest state XP multiplier.


----
----
Anonymous user