Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
m (sp)
Yakehira (talk | contribs)
No edit summary
Tag: WoW API docs
Line 1: Line 1:
 
{{wowapi}} __NOTOC__
 
{{wowapi}} __NOTOC__
 
 
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
 
 
Returns the number of XP gained from killing mobs until "player" goes from rest state to normal state.
 
Returns the number of XP gained from killing mobs until "player" goes from rest state to normal state.
 
exhaustionThreshold = GetXPExhaustion()
 
 
== Returns ==
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
 
  +
;exhaustionThreshold : {{api|t=t|number}} - 0 if player is not "rested"
retVal = GetXPExhaustion()
 
 
 
== Parameters ==
 
 
 
=== Returns ===
 
<!-- List each return value, together with its type -->
 
 
 
 
:;retVal : Number (if player is "rested")
 
:: nil (if player is "normal")
 
 
 
 
   
 
==Details==
 
==Details==
 
This is the total and not the amount added. For example, if this says 5000 then the next 5000 XP gained from mobs will occur at double rate. The game actually gives double XP for mobs while rested as an add on. An example, a mob worth 98 XP is killed, XP gained is 98 +98 rested XP bonus which reduces your 5000 by 196. If you take 1/2 the number then this is the XP bonus you are eligible for. ie. you will get +2500 rested bonus for earning 2500 XP from mobs for a total XP gain of 5000 during that time. When you hit 0 the bonus is small, for example say you have 20 left and you kill a mob worth 98 then you get 98 +10 rested bonus and go to the 'normal' non rested state. So if you rest in an inn and get this up to 2 then you will receive +1 bonus XP from your next mob and not double XP from the mob.
<!-- Details not appropriate for the main description can go here.
 
REMOVE the section if you're just going to restate the intro line! -->
 
   
  +
== External links ==
: This is the total and not the amount added. For example, if this says 5000 then the next 5000 XP gained from mobs will occur at double rate. The game actually gives double XP for mobs while rested as an add on. An example, a mob worth 98 XP is killed, XP gained is 98 +98 rested XP bonus which reduces your 5000 by 196. If you take 1/2 the number then this is the XP bonus you are eligible for. ie. you will get +2500 rested bonus for earning 2500 XP from mobs for a total XP gain of 5000 during that time. When you hit 0 the bonus is small, for example say you have 20 left and you kill a mob worth 98 then you get 98 +10 rested bonus and go to the 'normal' non rested state. So if you rest in an inn and get this up to 2 then you will receive +1 bonus XP from your next mob and not double XP from the mob.
 
  +
<!-- Please read https://wow.gamepedia.com/Wowpedia:External_links_policy before adding new links. -->
  +
{{Elinks-api}}

Revision as of 16:47, 27 February 2021

Returns the number of XP gained from killing mobs until "player" goes from rest state to normal state.

exhaustionThreshold = GetXPExhaustion()

Returns

exhaustionThreshold
number - 0 if player is not "rested"

Details

This is the total and not the amount added. For example, if this says 5000 then the next 5000 XP gained from mobs will occur at double rate. The game actually gives double XP for mobs while rested as an add on. An example, a mob worth 98 XP is killed, XP gained is 98 +98 rested XP bonus which reduces your 5000 by 196. If you take 1/2 the number then this is the XP bonus you are eligible for. ie. you will get +2500 rested bonus for earning 2500 XP from mobs for a total XP gain of 5000 during that time. When you hit 0 the bonus is small, for example say you have 20 left and you kill a mob worth 98 then you get 98 +10 rested bonus and go to the 'normal' non rested state. So if you rest in an inn and get this up to 2 then you will receive +1 bonus XP from your next mob and not double XP from the mob.

External links