오류 루아입니다...아무리 찾아보구 검색해봐도 몰르겠어영..
영어무식자라..ㅜㅜ
Message: [string "--[==[ Error in 'Dungeon RIO and Class':'in..."]:3: attempt to index global 'RaiderIO' (a nil value)
Time: Fri Nov 13 12:55:28 2020
Count: 1
Stack: [string "--[==[ Error in 'Dungeon RIO and Class':'in..."]:3: attempt to index global 'RaiderIO' (a nil value)
[string "=[C]"]: ?
[string "--[==[ Error in 'Dungeon RIO and Class':'initialization' ]==] return function() local function GetRioScore(fullname)
local score = 0;
local playerProfile = RaiderIO.GetPlayerProfile(0, fullname);
if (playerProfile ~= nil) then
for i,v in ipairs(playerProfile) do
if (v.dataType == 1) then
if (v.profile["mplusCurrent"] ~= nil and v.profile["mplusCurrent"].score > 0) then
score = v.profile["mplusCurrent"].score;
end
end
end
end
return score;
end
local function componentToHex(c)
c = math.floor(c * 255)
local hex = string.format("%x", c)
if (hex:len() == 1) then
return "0"..hex;
end
return hex;
end
local function rgbToHex(r, g, b)
return componentToHex(r)..componentToHex(g)..componentToHex(b);
end
local function getColorStr(hexColor)
return "|cff"..hexColor.."+";
end
local function getRioScoreColorText(rioScore)
local r, g, b = RaiderIO.GetScoreColor(rioScore);
local hex = rgbToHex(r, g, b);
return getColorStr(hex);
end
local function getRioScoreText(rioScore)
local colorText = getRioScoreColorText(rioScore);
local rioText = colorText:gsub("+", rioScore);
local textFormat = _G["ShowRIORaitingWA1TextFormatRIO"]
local trim = _G["ShowRIORaitingWA1Trim"]
if (textFormat ~= nil and trim ~= nil and trim(textFormat) ~= "") then
rioText = textFormat:gsub("@rio", rioText)
end
return rioText.." ";
end
local function getIndex(values, val)
local index={};
for k,v in pairs(values) do
index[v]=k;
end
return index[val];
end
local function filterTable(t, ids)
for i, id in ipairs(ids) do
for j = #t, 1, -1 do
if ( t[j] == id ) then
tremove(t, j);
break;
end
end
end
end
local function addFilteredId(self, id)
if ( not self.filteredIDs ) then
self.filteredIDs = { };
end
tinsert(self.filteredIDs, id);
end
aura_env.Trim = function(str)
local match = string.match
return match(str,'^()%s*$') and '' or match(str,'^%s*(.*%S)')
end
aura_env.UpdateApplicantMember = function(member, appID, memberIdx, ...)
if( RaiderIO == nil ) then return; end
if( _G["ShowRIORaitingWA1NotShowApplicantRio"] == true ) then return; end
local textName = member.Name:GetText();
local name, class = C_LFGList.GetApplicantMemberInfo(appID, memberIdx);
local rioScore = GetRioScore(name);
local rioText;
if (rioScore > 0) then
rioText = getRioScoreText(rioScore);
else
rioText = "";
end
if ( memberIdx > 1 ) then
member.Name:SetText(" "..rioText..textName);
else
member.Name:SetText(rioText..textName);
end
local nameLength = 100;
if ( relationship ) then
nameLength = nameLength - 22;
end
if ( member.Name:GetWidth() > nameLength ) then
member.Name:SetWidth(nameLength);
end
end
aura_env.SearchEntryUpdate = function(entry, ...)
if( not LFGListFrame.SearchPanel:IsShown() ) then return; end
if( RaiderIO == nil ) then return; end
local categoryID = LFGListFrame.SearchPanel.categoryID;
local resultID = entry.resultID;
local resultInfo = C_LFGList.GetSearchResultInfo(resultID);
local leaderName = resultInfo.leaderName;
entry.rioScore = 0;
if (leaderName ~= nil) then
entry.rioScore = GetRioScore(leaderName);
end
for i = 1, 5 do
local texture = "tex"..i;
if
어떤거때문에 뜨는지...알려주세용..ㅠㅠ