Zone required with every map coordinates
Twists opened this issue ยท 5 comments
Is there any way to automatically send the zone if one is not provided when providing coordinates?
Whenever you provide map coordinates, you also have to include the zone or you get the "Zone not found, using current Zone" message. Since about every line contains coordinates, this is alot of extra code.
Hmm, it should, before, use the zone associated with the guide (the one from the guide first line - RegisterGuide). Have you checked its spelling? Regardless, I'll take a look at this.
That is definately where my problem is since I am using the faction name in place of the zone to identify the guide. This is for my rep module. I'm going to have to come up with another solution.
For now - you CAN use non-zone words in the title if you also include a zone.
For example, if you are talking about Sons of Hodir rep, you could title it like this:
Storm Peaks - Sons of Hodir
or like this:
Storm Peaks (Sons of Hodir)
and the addon would recognize what it's supposed to do.
Hope that works as a temporary measure! In terms of actual code within your module, all you need to do is set WoWPro.rows[i].zone to the zone you want, where i is the number of the row on the guide frame. This has to be done after the leveling parser would do it's thing, but before the mapping function is called. Since I don't have any idea how your code is set up, I can't really give you better advice at the moment - feel free to ask me questions if you need!
You can indeed just change zone[i] within the parser as well. However, I do want to warn you that I'm not sure how that will effect the leveling addon itself, if they happen to both be enabled.