Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitGetGuildXP

Last wiki revision 2020-01-08

Retrieves the Guild XP information of the target.

currentXP, nextLevelXP, dailyXP, maxDailyXP, unitWeeklyXP, unitTotalXP = UnitGetGuildXP(target)

  • target:String - The affected group member. i.e. "player" or player name. The only accepted value seems to be "player".
  • 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.

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);

Result

Current Guild XP: 18592302, total: 26530000, daily: 5550302, daily max: 6246000 Player weekly contribution: 19088, total contribution: 29099957

  • The values returned by this function are only updated after the event has fired. You can use the function to request an update.

Source

https://warcraft.wiki.gg/wiki/API_UnitGetGuildXP · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.