Created
June 28, 2019 17:41
-
-
Save AcidWeb/fbdf51fa23cb32090ab6bedd1dbda2fb to your computer and use it in GitHub Desktop.
Nazjatar Bodyguard XP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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