PDA

View Full Version : Need help with quest addon


Heustess
26-06-2006, 08:04 PM
I really want to get the addon QuestLevels ( http://ui.worldofwar.net/ui.php?id=528 ) to work again. It has not been updated since a year ago but had worked until patch 1.11. It is a simple addon that adds the level of the quest to the quest text and when a tracked quest is completed, it removes that quest from tracking display status.

It is getting an error on line 90 (questHighlightText:SetWidth( 275 );) that the value attempting be be accessed is nil. It adds level to the first quest in my toon's quest window and then gets the error. Here is a snippet of code that contains the error line. Any help to get this addon working again would be appreciated. I do not know much about addon code.

Ta,
Brent



for i = 1, QUESTS_DISPLAYED, 1 do
local questIndex = i + FauxScrollFrame_GetOffset( QuestLogListScrollFrame );
local questLogTitle = getglobal( "QuestLogTitle" .. i );
local questTitleTag = getglobal( "QuestLogTitle".. i .."Tag" );
local questCheck = getglobal( "QuestLogTitle" .. i .. "Check" );
local questNormalText = getglobal( "QuestLogTitle" .. i .. "NormalText" );
local questHighlightText = getglobal( "QuestLogTitle" .. i .. "HighlightText" );
local questDisabledText = getglobal( "QuestLogTitle" .. i .. "DisabledText" );

if( questIndex <= numEntries ) then
local questLogTitleText, level, questTag, isHeader, isCollapsed, isComplete = GetQuestLogTitle( questIndex );

if( level and not isHeader ) then
questLogTitle:SetText( " [" .. level .. "] " .. questLogTitleText );
QuestLogDummyText:SetText( questLogTitle:GetText() );

-- set the quest tag
if( isComplete ) then
questTag = COMPLETE;
end

if( not questTag ) then
questTitleTag:SetText( "" );

-- reset to max text width
questNormalText:SetWidth( 275 );
questHighlightText:SetWidth( 275 );
questDisabledText:SetWidth( 275 );

-- show check mark if quest is being watched
questCheck:Hide();

if( IsQuestWatched( questIndex ) ) then
questCheck:SetPoint( "LEFT", questLogTitle:GetName(), "LEFT", QuestLogDummyText:GetWidth() + 24, 0 );
questCheck:Show();
end
end
end
end
end

include
27-06-2006, 02:19 AM
... why dont you use CTmod, and CT_QuestLevel?
(get it on www.ctmod.net)

Bandyn
27-06-2006, 06:55 AM
Why not just use...Extended QuestLog (http://ui.worldofwar.net/ui.php?id=2749) or UberQuest (http://ui.worldofwar.net/ui.php?id=2780)?