WoW:API GetXPExhaustion: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API GetXPExhaustion to API GetXPExhaustion without leaving a redirect) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{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. | ||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | |||
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 not appropriate for the main description can go here. | |||
REMOVE the section if you're just going to restate the intro line! --> | |||
: 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. | |||
Latest revision as of 04:46, 15 August 2023
Returns the number of XP gained from killing mobs until "player" goes from rest state to normal state.
retVal = GetXPExhaustion()
Parameters[edit]
Returns[edit]
- retVal
- Number (if player is "rested")
- nil (if player is "normal")
Details[edit]
- 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.