View Single Post
11-09-17, 07:09 AM   #16
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Originally Posted by stianhoiland View Post
To fix this we override the Blizzard function which calls QuestSuperTracking_ChooseClosestQuest():
Lua Code:
  1. QuestSuperTracking_CheckSelection = function()
  2.   return
  3. end
We could also have overridden another immediately relevant function called QuestSuperTracking_IsSuperTrackedQuestValid(), but we don't need to.
It is not good practice to replace Blizzard functions. Even if it's a minor function called from only one place, it's a good way to cause a taint, no matter what your replacement does.

The simplest way to fix the code in this thread is to use an ID of a quest that doesn't exist instead of 0. According to wowhead, 3 is the next number that brings up nothing.
  Reply With Quote