View Single Post
09-05-17, 07:10 AM   #1
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
Frame error from Artifact

1x FrameXML\MainMenuBar.lua:125: Usage: local cost = C_ArtifactUI.GetCostForPointAtRank(rank, tier)
[C]: in function `GetCostForPointAtRank'
FrameXML\MainMenuBar.lua:125: in function `MainMenuBar_GetNumArtifactTraitsPurchasableFromXP'
_Deranjata\modules\xpbar\artxp.lua:34: in function <_Deranjata\modules\xpbar\artxp.lua:29>

Locals:
(*temporary) = 38
(*temporary) = nil

Here is the function in its entirety, im really struggling to figure out what is broken i can find no documentation that any of these were changed or discontinued
Lua Code:
  1. derArtifactBar:SetScript("OnEvent", function(self, event, ...)
  2.     if not HasArtifactEquipped() then self:Hide() return end
  3.     self:Show()
  4.  
  5.     local itemID, altItemID, name, icon, totalXP, pointsSpent = C_ArtifactUI.GetEquippedArtifactInfo()
  6.     local numPoints, artifactXP, xpForNextPoint = MainMenuBar_GetNumArtifactTraitsPurchasableFromXP(pointsSpent, totalXP)
  7.     self:SetMinMaxValues(0,xpForNextPoint)
  8.     self:SetValue(artifactXP)
  9.  
  10.     self.Text:SetFormattedText("Artifact XP: %d / %d       +%d Points",artifactXP,xpForNextPoint,numPoints)
  11. end)
__________________
  Reply With Quote