Argh. Using MailR as an example, which apparently may not be the best case, I put this at the top:
Lua Code:
local GetJournalQuestInfo_Orig = GetJournalQuestInfo
Assigned the following in my intialization:
Lua Code:
GetJournalQuestInfo = QuestMaker.GetJournalQuestInfo
And created this:
Lua Code:
function QuestMaker:GetJournalQuestInfo(questIndex)
local questName, bgText, stepText, stepType, stepOverrideText, completed, tracked, _, _, _, instanceDisplayType = GetJournalQuestInfo_Orig(questIndex)
return questName, bgText, stepText, stepType, stepOverrideText, completed, tracked, _, _, _, instanceDisplayType
end
Which to my limited knowledge should simply run the original GetJournalQuestInfo, but questIndex is coming in nil. I got it to not come in nil once by accident, made some changes, and can't get it back. What am I missing? The plan would be to check the quest index number and if it's a custom quest pass back custom quest info, but if it's a vanilla quest to use the vanilla function as coded above.
Thank again.