Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API UnitGetGuildXP
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ Retrieves the Guild XP information of the unit. currentXP, nextLevelXP, dailyXP, maxDailyXP, unitWeeklyXP, unitTotalXP = UnitGetGuildXP("unit") == Arguments == ;unit : String - The [[UnitId]] to query. == Returns == :currentXP, nextLevelXP, dailyXP, maxDailyXP, unitWeeklyXP, unitTotalXP ;currentXP : Number - The amount of Guild XP for the current level. ;nextLevelXP : Number - The amount of Guild XP to reach the next level. The total Guild XP is this value plus currentXP. ;dailyXP : Number - The amount of Guild XP obtained towards the daily maximum. ;maxDailyXP : Number - The maximum Guild XP cap for the day. The total remaining for the day is this value minus dailyXP. ;unitWeeklyXP : Number - The amount of Guild XP contributed by the target this week. ;unitTotalXP : Number - The total amount of Guild XP contributed by the target. == Example == local currentXP, nextLevelXP, dailyXP, maxDailyXP, unitWeeklyXP, unitTotalXP = UnitGetGuildXP("player"); print("Current Guild XP: " .. currentXP .. ", total: " .. (nextLevelXP + currentXP) .. ", daily: " .. dailyXP .. ", daily max: " .. maxDailyXP); print("Player weekly contribution: " .. unitWeeklyXP .. ", total contribution: " .. unitTotalXP); <big>'''Result'''</big> Current Guild XP: 18592302, total: 26530000, daily: 5550302, daily max: 6246000 Player weekly contribution: 19088, total contribution: 29099957 == Details == : The values returned by this function are only updated after the {{api|GUILD_XP_UPDATE|t=e}} event has fired. You can use the {{api|QueryGuildXP}} function to request an update.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Api
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)