QuestInfo Bug
Did anyone encounter this too?
GetJournalQuestInfo(questId) returns a empty array if on a german client and has crafting quest Alchemy writ with completed steps? |
Quote:
Lua Code:
|
Uh, so when I'm iterating for i = 1, GetNumJournalQuests() I'm doing it wrong? Because that function returns the number of active quests, but they can be index 5, 7 and 13? :confused:
|
Quote:
|
Quote:
|
Apparently the only purpose of GetNumJournalQuests is to display that "Quests : num/25" but the indexes change as soon as you complete a new step of any quest i think (i didn't exactly figured that one), which made this hard to detect. (not to mention that getting no nil error when iterating an empty array is a bit counterintuitive) I found an even easier way to iterate recently but never used it and i didn't keep the test, maybe something along getnextquest. But anyway, it's just a 25 lines array. |
What a mess, thanks all for the informations!
|
That was the main reason why I had to fix MiniMap quest pin updates so many times :)
|
What about QUEST_TRACKER.tracked, can't you just loop through it to get the quest indices? Every quest appears to be added to it. Although there is a function to remove a quest from the tracker
Lua Code:
Lua Code:
|
All times are GMT -6. The time now is 10:35 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI