Skip to content

Instantly share code, notes, and snippets.

@AcidWeb
Created June 28, 2019 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AcidWeb/fbdf51fa23cb32090ab6bedd1dbda2fb to your computer and use it in GitHub Desktop.
Save AcidWeb/fbdf51fa23cb32090ab6bedd1dbda2fb to your computer and use it in GitHub Desktop.
Nazjatar Bodyguard XP
Alliance:
Left 1940, 1941
Center 1613, 1949
Right 1966, 1967
Horde:
Left 1621, 1625
Center 1622, 1919
Right 1920, 1623
function GetBodyguardXP(widgetID)
local widget = C_UIWidgetManager.GetStatusBarWidgetVisualizationInfo(widgetID)
local rankOfThisDreamyFishShapedBodyguard = string.match(widget.overrideBarText, "%d+")
local currentExperiencePointsPresentedAsNumber = widget.barValue - widget.barMin
local experiencePointsRequiredToAchiveGloriousNextLevel = widget.barMax - widget.barMin
local totalNumberOfExperiencePointsGainedByThisBelovedBodyguard = widget.barValue
return rankOfThisDreamyFishShapedBodyguard, currentExperiencePointsPresentedAsNumber, experiencePointsRequiredToAchiveGloriousNextLevel, totalNumberOfExperiencePointsGainedByThisBelovedBodyguard
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment