-
Posted by Bazkur on Sun, 04 Jan 2009 08:46:43
-
Posted by Bazkur on Sun, 04 Jan 2009 08:46:43
-
Posted by jnwhiteh on Sun, 04 Jan 2009 16:09:22
There is no function that returns this specific value, but you can easily write one yourself. Everytime a header is encountered, simply save the value and then when you want to determine the zone text, take the last header that was before the index you are querying. Let me know if that doesn't make sense and I'll actually throw something together when I'm back from holiday.
-
Posted by Bazkur on Sun, 04 Jan 2009 16:49:44
Thanks, I'm trying to think if that would work to get the quests that are in a specific zone? I suppose I could loop through all the quests and save the current zone to a variable each time the loop comes across one. Then whatever the last zone the loop encountered when I find my quest would be the correct one... That seems like a lot of work to get the zone associated with a quests but I guess it would work. Do you think thats the best way?
While I'd rather not go into the details of what the add-on is going to do (since I haven't found an add-on that does it already I don't want somebody to beat me to the punch), but my end result would be:
- Person selects a quest from their log
- Add-on now retrieves a list of all the quests that are in that same zone
- Add-on now does it's thing with the lists of quests.Don't be afraid to get to technical, I'm an experienced VB/VB.Net/Java/Perl programmer. I haven't done much programming lately and thought WoW Add-Ons would be a great way to get back into programming again. Hope you are having a good holiday! Thanks for your assistance.
-Kasey
-
Posted by jnwhiteh on Thu, 08 Jan 2009 16:12:07
Well, there is no way to get a list of all quests in the current zone. You can (however) get the list of quests in the quest log that are under the header trivially. If you want to provide some sort of database that allows the user to search for quests in a given zone or have a list of quests that can be ticked off for achievement purposes, that can't be done solely with the API. You would need to provide that information with your addon.