Description
Adds Quest progress to the end of tooltips.
Change Log - QueTip
1.0 - Initial Release
1.1 - Changed some code here and there
1.11 - Keeping the Enemy at Bay seems to return nil on GetQuestLogLeaderBoard() sometimes. Now fixed.
Optional Files - QueTip
Sorry, there are currently no optional files available.
Replacing the 1 with a number between 0-1 with the amount of red you want in it, 1 with a number between 0-1 dictating the amount of green you want in your colour, and finally 1 with a number between 0-1 dictating the amount of blue you want in your colour.
QueTip is throwing a tremendous amount of errors in association with every quest update regarding newer quests (2.4 and higher). I would imagine this is associated to the new quest ID's, for example, for the Sunwell dailys.
I unfortunately forgot to write down the line associated with the error. However, it's a nil error expecting a number (QuestID?). This error throws upon taking a new quest (ie. Sunwell Isle Daily), upon quest updating (ie. killed a quest mob), and upon completion and hand-in of the quest(s).
Edit: Here's the error detail -
Code:
Interface\AddOns\QueTip\core.lua:23: bad argument #3 to 'format' (number expected, got nil)
(tail call): ?
[C]: ?
[C]: ?
Interface\AddOns\QueTip\core.lua:23: in function <Interface\AddOns\QueTip\core.lua:16>
Interface\AddOns\QueTip\core.lua:45: in function <Interface\AddOns\QueTip\core.lua:32>
Seems strmatch will hit on substrings also, i.e. "Clefthoof" would match "Clefthoof Bull", which is undesirable. We can avoid this by removing the strmatch in the IterQuests function, changing the following on line 48:
if strmatch(qob, name) then
to
if qob = name then
Unfortunately, qob is captured with "slain" appended, so we can sub that out by adding the following after line 24:
the patterns in IterQuests are parsed lazily. For quests where your 'i' variable is a single digit, this is fine, but only the last digit matches beyond that. Adding a %s between the .+ and first %d tokens should fix the matching.
Change the patterns on lines 51 and 55 from
local qtitle, i, n = strmatch(v, "(.+)(%d+)/(%d+)")
to
local qtitle, i, n = strmatch(v, "(.+)%s(%d+)/(%d+)")
and quest objectives > 10 should display correctly.