WoW:API GetRestState: Difference between revisions

no edit summary
No edit summary
 
No edit summary
Line 1: Line 1:
Returns 1 if rested.
<center>'''''GetRestState''''' - ''Documentation by [[User:EDG|EDG]] (original by [[User:Dga|Dga]])''</center>


Dont know if its 0 or nil for not rested.
Returns whether the player is in a [[Rest|rested]] (earning double XP for kills) or normal state.


RestState is the state where your toon gets added XP for killing mobs.
<pre>GetRestState()</pre>
 
'''''Arguments'''''
 
:None.
 
----
 
'''''Returns'''''
 
:* '''1''' if the player is in a rested state.
:* '''2''' if the player is in a normal state.
 
----
'''''Example'''''
 
<pre>rested = GetRestState();</pre>
 
'''''Result'''''
 
''rested'' is assigned a value of '''1''' if the player is rested, or a value of '''2''' if the player is earning normal XP.
Anonymous user