m
Move page script moved page API UnitXP to WoW:API UnitXP without leaving a redirect
(Noted that this function does not work for hunter pets) |
m (Move page script moved page API UnitXP to WoW:API UnitXP without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Return the current XP of a "unit" - only seems to work with "player". | Return the current XP of a "unit" - only seems to work with "player". | ||
| Line 20: | Line 18: | ||
XP = UnitXP("player") | XP = UnitXP("player") | ||
XPMax = UnitXPMax("player") | XPMax = UnitXPMax("player") | ||
DEFAULT_CHAT_FRAME:AddMessage("Your XP is currently at "..floor( (XP / XPMax)*100 ).."%." | DEFAULT_CHAT_FRAME:AddMessage("Your XP is currently at "..floor( (XP / XPMax)*100 ).."%.",1,0,0) | ||
== Info == | == Info == | ||