Lolcoincoin / tekkub-wow

Automatically exported from code.google.com/p/tekkub-wow
0 stars 0 forks source link

Some daily and hollyday quest display level -1 #816

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
The daily cooking quests are a good example. When turning in Mustard Dogs!, 
the gossip dialog sholw [-1] for the quest level.

What is the expected output? What do you see instead?
It should show the player level.

What addon and what version are you using?  Where did you download from?
Quelevel 3.0.1.3

What version of WoW are you using?
Patch: 3.0.9
Locale: enUS

Please provide any additional information below.
For the special quests that scale with the level of the player, 
GetGossipAvailableQuests() and GetGossipActiveQuests() return a -1 for the 
quest level. I'm thinking that a 

if level == -1 then level = UnitLevel("player") end

would do the trick.

Original issue reported on code.google.com by eric.bea...@gmail.com on 6 Mar 2009 at 1:05

GoogleCodeExporter commented 9 years ago
If the quest doesn't have a level (like Mustard Dogs!) then there simply is no 
level.  
I'm not going to show the player's level, as that is false information.

It is dumb that they return -1 instead of nil though...

Original comment by Tekkub on 10 Mar 2009 at 8:39