Automatic Guide Switching and other New Stuff
So today's patch release, besides the usual bug fixes and tweaks, will turn on a new feature: Guide Switching.
It is pretty simple. If a guide has a call to WoWPro:GuideAutoSwitch() like so:
local guide = WoWPro:RegisterGuide('LudoGarrissonSupport', 'Achievements', 'Lunarfall', 'Ludovicus', 'Alliance') WoWPro:GuideLevels(guide,92, 100, 98.7) WoWPro:GuideIcon(guide,"ACH",9528) WoWPro:GuideName(guide, "Garrison Support") WoWPro:GuideAutoSwitch(guide) WoWPro:GuideSteps(guide, function() return [[ A Meet Us at Starfall Outpost|QID|33359|N|From Cordana Felsong next to the Bulletin Board in your garrison.|M|43.19,44.61|Z|Lunarfall|LVL|94| ...
Then the guide will be loaded at startup and all of the quests put into a table called WoWProDB.global.QID2Guide . Now if at any point we see a quest appear in that guide as a new quest then we will ask if you want to switch to that guide, like so:
I have also implemented a new guide step:
J Go do your new building|GUIDE|LudoBuildingsAlliance|N|You got your new blueprint, use it!|
It lets you "jump" to a guide.
All guides now have 3 steps automatically added to them.
L Level %d|LVL|%d|N|You need to be level %d to start this guide.| ... L Level %d|LVL|%d|N|You need to be level %d to finish this guide.| D Onwards|N|This ends %s. %s is next.| or D Fini|N|This ends %s. There is no next guide, so you can pick the next from the control panel.|
The first L step prevents someone from starting a guide below the guide limit.
The second L step alerts a user that some quests may have been skipped in the quest because they were too low level.
What the final D step is depends on whether there is a next guide defined. If there is no next guide defined by WoWPro:GuideNextGuide(), then a check is made for the last guide you were in previous to this one. So if you got here via a J step, back you go! And no matter what, you can always pick the next guide manually.
Later, I'll finish getting the guide picker finished. Here is what it looks like on my Level 26 Tauren Warrior:
I still need to make the frame movable, make the buttons work and make sure every guide has an icon. But it correctly selects the 8 best leveling guides you have not done and ranks them in toughness. Pick the first to level fastest, pick the last for getting that tabard.
Next blog post, Downloads!