Unofficial World of Warcraft Forums  
Please respect other members. Please do not post links or information about hacking/warez/cheats.
Read the rules of these forums as we rarely warn before banning. Lost or need RSS check the forum map.

Quick Site Nav
Navigation
Worldofwar.Net
WoW Forums
WoWDigger WoW Database
Articles
Community Blogs
WoW Info
Wrath of the Lich King Info
Primary Professions
Secondary Professions
Maps
Classes
PvP
A-Z Index
Guides
Submit Guides
List Guides
UI/Mods
Latest Mods
Submit Mod
List Macros
Submit Macro
Media Gallery
Gallery Home
Upload Pics
Community WoW Shots
Community BC Shots
Player Pics
Official WoW Shots
Official BC Shots


Donate and get extra forum perks
Support WoW:IncGamers

Go Back   Unofficial World of Warcraft Forums > WoW Community Forums > UI Customisation > UI/Mod Developer Forum

Reply
 
Thread Tools Display Modes
Old 26-06-2006, 08:04 PM   #1
Heustess
WorldofWar.Net Member
 
Join Date: Aug 2005
Location: Austin, TX
Posts: 4
Need help with quest addon

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
Heustess is offline   Reply With Quote
Old 27-06-2006, 02:19 AM   #2
include
WorldofWar.Net Member
 
include's Avatar
 
Join Date: Mar 2006
Posts: 62
... why dont you use CTmod, and CT_QuestLevel?
(get it on www.ctmod.net)
include is offline   Reply With Quote
Old 27-06-2006, 06:55 AM   #3
Bandyn
WorldofWar.Net Member
 
Bandyn's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 20
Why not just use...Extended QuestLog or UberQuest?
Bandyn is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Advertisement System V2.5 By   Branden