Automated update from: http://smariot.no-ip.org/translate
[QuestHelper.git] / director_achievement.lua
blobaf3965aae28742ebf22c4014f6f6971c3d4393bc
1 QuestHelper_File["director_achievement.lua"] = "Development Version"
2 QuestHelper_Loadtime["director_achievement.lua"] = GetTime()
4 local debug_output = false
5 if QuestHelper_File["director_achievement.lua"] == "Development Version" then debug_output = true end
7 local added = false
8 function QH_AddFires()
9 if added then QuestHelper:TextOut("Objectives are already added! If they haven't shown up yet, just be patient, it may take some time. If they have, and you've ignored some, you'll have to logout and logon to reset them. Sorry! It's kind of a work in progress.") return end
10 added = true
12 QuestHelper:TextOut("Adding bonfire objectives! This may take several minutes - please be patient. Bonfire objectives will not go away automatically when you finish the quest, you'll have to ignore them manually, and it has no idea which bonfires you've already done. It also may take some time for it to generate a good path, or to respond to ignore requests. This is a very early beta feature and is in no way a finished, polished product :) Enjoy the Fire Festival!")
14 local fonbires = {
15 {39,74,41,"Horde"},
16 {39,50,44,"Alliance"},
17 {27,4,49,"Horde"},
18 {33,58,17,"Alliance"},
19 {40,62,29,"Horde"},
20 {40,80,62,"Alliance"},
21 {25,64,25,"Alliance"},
22 {28,46,46,"Alliance"},
23 {31,74,51,"Alliance"},
24 {37,43,65,"Alliance"},
25 {36,49,72,"Alliance"},
26 {41,46,50,"Horde"},
27 {52,70,43,"Horde"},
28 {44,46,26,"Horde"},
29 {48,50,46,"Alliance"},
30 {48,58,25,"Horde"},
31 {29,32,40,"Alliance"},
32 {30,24,59,"Alliance"},
33 {35,49,38,"Horde"},
34 {38,33,73,"Alliance"},
35 {38,32,75,"Horde"},
36 {46,47,47,"Horde"},
37 {42,14,50,"Alliance"},
38 {42,76,74,"Horde"},
39 {45,68,9,"Horde"},
40 {43,57,52,"Horde"},
41 {50,43,82,"Alliance"},
42 {49,56,54,"Alliance"},
43 {51,13,47,"Alliance"},
44 {2,38,54,"Alliance"},
45 {2,70,69,"Horde"},
46 {12,41,26,"Alliance"},
47 {3,44,53,"Alliance"},
48 {9,55,69,"Alliance"},
49 {16,37,46,"Alliance"},
50 {4,65,17,"Alliance"},
51 {4,26,76,"Horde"},
52 {1,47,38,"Horde"},
53 {7,52,47,"Horde"},
54 {10,62,40,"Alliance"},
55 {10,33,30,"Horde"},
56 {17,28,44,"Alliance"},
57 {17,72,47,"Horde"},
58 {23,21,26,"Horde"},
59 {22,51,60,"Horde"},
60 {5,57,34,"Alliance"},
61 {5,46,44,"Horde"},
62 {6,50,60,"Horde"},
63 {8,52,29,"Alliance"},
64 {8,49,27,"Horde"},
65 {24,55,91,"Alliance"},
66 {24,55,60,"Alliance"},
67 {11,52,28,"Horde"},
68 {14,41,52,"Horde"},
69 {19,62,35,"Alliance"},
70 {19,59,35,"Horde"},
71 {54,42,66,"Alliance"},
72 {54,50,59,"Horde"},
73 {56,62,58,"Alliance"},
74 {56,55,40,"Horde"},
75 {58,50,70,"Alliance"},
76 {58,51,34,"Horde"},
77 {59,31,63,"Alliance"},
78 {59,32,68,"Horde"},
79 {53,40,55,"Alliance"},
80 {53,33,30,"Horde"},
81 {55,55,55,"Alliance"},
82 {55,52,43,"Horde"},
83 {57,69,52,"Alliance"},
84 {57,36,52,"Horde"},
85 {72,47,66,"Alliance"},
86 {72,47,62,"Horde"},
87 {65,55,20,"Alliance"},
88 {65,51,12,"Horde"},
89 {68,75,44,"Alliance"},
90 {68,39,48,"Horde"},
91 {70,58,16,"Alliance"},
92 {70,48,13,"Horde"},
93 {69,34,61,"Alliance"},
94 {69,19,61,"Horde"},
95 {75,41,61,"Alliance"},
96 {75,43,71,"Horde"},
97 {73,42,87,"Alliance"},
98 {73,40,86,"Horde"},
99 {66,78,75,"Alliance"},
100 {66,80,53,"Horde"},
103 local msfires = {desc = "Midsummer Fires", tracker_desc = "Midsummer Fires", tracker_split = true}
105 for _, v in ipairs(fonbires) do
106 local ec, ez = unpack(QuestHelper_ZoneLookup[v[1]])
107 local c, x, y = QuestHelper.Astrolabe:GetAbsoluteContinentPosition(ec, ez, v[2] / 100, v[3] / 100)
108 --print(v[1], v[2], v[3], v[4], ec, ez, c, x, y, QuestHelper_ParentLookup[v[1]])
109 local desc = string.format("%s %s bonfire", v[4], QuestHelper_NameLookup[v[1]])
110 local node = {loc = {x = x, y = y, p = v[1], c = QuestHelper_ParentLookup[v[1]]}, why = msfires, map_desc = {desc}, tracker_desc = desc}
111 local cluster = {node}
112 node.cluster = cluster
114 QH_Route_ClusterAdd(cluster)
120 local blarg
122 local added = {}
123 local function QH_AddChunk(targs)
125 if added[targs] then QuestHelper:TextOut("Objectives are already added! If they haven't shown up yet, just be patient, it may take some time. If they have, and you've ignored some, you'll have to logout and logon to reset them. Sorry! It's kind of a work in progress.") return end
126 added[targs] = true
128 if not blarg then QuestHelper:TextOut("Adding bucket objectives! This may take several minutes - please be patient. Bucket objectives will not go away automatically when you finish the quest, you'll have to ignore them manually, and it has no idea which bonfires you've already done. It also may take some time for it to generate a good path, or to respond to ignore requests. This is a very early beta feature and is in no way a finished, polished product :) Enjoy Hallow's End!") blarg = true end
130 local msfires = {desc = targs.name, tracker_desc = targs.name, tracker_split = true}
132 for _, v in ipairs(targs) do
133 local cont, zone = v[4]:match("(.*), (.*)")
135 if not QuestHelper_IndexLookup[cont] then
136 --print("nindex", cont)
137 if not v[1] then fail = true v[1] = 42 end
138 else
139 v[1] = QuestHelper_IndexLookup[cont]
142 local ec, ez = unpack(QuestHelper_ZoneLookup[v[1]])
143 local c, x, y = QuestHelper.Astrolabe:GetAbsoluteContinentPosition(ec, ez, v[2] / 100, v[3] / 100)
144 local node = {loc = {x = x, y = y, p = v[1], c = QuestHelper_ParentLookup[v[1]]}, why = msfires, map_desc = {v[4]}, tracker_desc = v[4]}
145 local cluster = {node}
146 node.cluster = cluster
148 QH_Route_ClusterAdd(cluster)
151 assert(not fail)
154 local fb
156 if QuestHelper:PlayerFaction() == 1 then
157 fb = {
158 kalimdor = {
159 {nil, 67, 16, "Darnassus, Craftsmen’s Terrace"},
160 {nil, 56, 60, "Teldrassil, Dolanaar"},
161 {nil, 56, 60, "Bloodmyst Isle, Blood Watch"},
162 {12, 60, 19, "Exodar, Seat of the Naaru"},
163 {nil, 48, 49, "Azuremyst Isle, Azure Watch"},
164 {nil, 37, 44, "Darkshore, Auberdine"},
165 {nil, 61, 39, "Winterspring, Everlook"},
166 {nil, 37, 49, "Ashenvale, Astranaar"},
167 {nil, 35, 7, "Stonetalon Mountains, Stonetalon Peak"},
168 {nil, 66, 7, "Desolace, Nijel's Point"},
169 {11, 62, 39, "Barrens, Ratchet"},
170 {nil, 67, 45, "Dustwallow Marsh, Theramore Isle"},
171 {nil, 42, 74, "Dustwallow Marsh, Mudsprocket"},
172 {nil, 52, 28, "Tanaris, Gadgetzan"},
173 {nil, 52, 39, "Silithus, Cenarion Hold"},
174 {nil, 31, 43, "Feralas, Feathermoon Stronghold"},
175 name = "Kalimdor candy buckets",
177 ek = {
178 {nil, 75.9, 52.3, "Eastern Plaguelands, Light's Hope"},
179 {42, 14.1, 41.6, "Hinterlands, Aerie Peak"},
180 {nil, 51.1, 58.9, "Hillsbrad Foothills, Southshore"},
181 {nil, 10.8, 60.9, "Wetlands, Menethil Harbor"},
182 {nil, 18.7, 51.5, "Ironforge, The Commons"},
183 {nil, 47.4, 52.4, "Dun Morogh, Kharanos"},
184 {nil, 35.5, 48.5, "Loch Modan, Thelsamar"},
185 {36, 60.5, 75.2, "Stormwind, Trade District"},
186 {nil, 43.7, 66, "Elwynn Forest, Goldshire"},
187 {nil, 27, 45, "Redridge Mountains, Lakeshire"},
188 {nil, 73.9, 44.5, "Duskwood, Darkshire"},
189 {nil, 52.9, 53.6, "Westfall, Sentinel Hill"},
190 {38, 27.1, 77.3, "Stranglethorn, Booty Bay"},
191 name = "Eastern Kingdoms candy buckets",
193 outland = {
194 {nil, 43.4, 36.1, "Netherstorm, The Stormspire"},
195 {nil, 32.1, 64.5, "Netherstorm, Area 52"},
196 {nil, 62.9, 38.3, "Blade's Edge Mountains, Evergrove"},
197 {nil, 61, 68.1, "Blade's Edge Mountains, Toshley's Station"},
198 {nil, 38.5, 63.8, "Blade's Edge Mountains, Sylvanaar"},
199 {nil, 41.9, 26.2, "Zangarmarsh, Orebor Harborage"},
200 {nil, 67.2, 49, "Zangarmarsh, Telredor"},
201 {nil, 78.5, 62.9, "Zangarmarsh, Cenarion Refuge"},
202 {nil, 23.4, 36.5, "Hellfire Peninsula, Temple of Telhamat"},
203 {nil, 54.3, 63.6, "Hellfire Peninsula, Honor Hold"},
204 {53, 61, 28.2, "(Aldor only) Shadowmoon Valley, Altar of Sha'tar"},
205 {53, 56.3, 59.8, "(Scryers only) Shadowmoon Valley, Sanctum of the Stars"},
206 {nil, 37.1, 58.2, "Shadowmoon Valley, Wildhammer Stronghold"},
207 {nil, 56.6, 53.2, "Terokkar Forest, Allerian Stronghold"},
208 {60, 56.2, 81.8, "(Scryers only) Shattrath City, Scryers Tier"},
209 {60, 28.1, 49, "(Aldor only) Shattrath City, Aldor Rise"},
210 {nil, 54.2, 75.8, "Nagrand, Telaar"},
211 name = "Outland candy buckets",
214 else
215 fb = {
216 kalimdor = {
217 {nil, 61, 39, "Winterspring, Everlook"},
218 {nil, 74, 60, "Ashenvale, Splintertree Post"},
219 {nil, 54, 69, "Orgrimmar, Valley of Strength"},
220 {nil, 51, 41, "Durotar, Razor Hill"},
221 {nil, 62, 39, "The Barrens, Ratchet"},
222 {nil, 52, 30, "The Barrens, The Crosswoods"},
223 {nil, 47, 62, "Stonetalon Mountains, Sun Rock Retreat"},
224 {nil, 24, 68, "Desolace, Shadowprey Village"},
225 {nil, 45, 64, "Thunder Bluff, Lower Rise"},
226 {nil, 47, 61, "Mulgore, Bloodhoof Village"},
227 {nil, 74, 61, "The Barrens, Camp Taurajo"},
228 {nil, 36, 32, "Dustwallow Marsh, Brackenwall Village"},
229 {nil, 75, 45, "Feralas, Camp Mojache"},
230 {nil, 41, 74, "Dustwallow Marsh, Mudsprocket"},
231 {nil, 46, 51, "Thousand Needles, Freewind Post"},
232 {nil, 52, 28, "Tanaris, Gadgetzan"},
233 {nil, 51, 39, "Silithus, Cenarion Hold"},
234 name = "Kalimdor candy buckets",
236 ek = {
237 {nil, 48.1, 47.8, "Eversong Woods, Falconwing Square"},
238 {nil, 79.6, 57.8, "Silvermoon City, Royal Exchange"},
239 {nil, 67.7, 73.2, "Silvermoon City, The Bazaar"},
240 {nil, 43.7, 71.1, "Eversong Woods, Fairbreeze Village"},
241 {nil, 48.6, 32, "Ghostlands, Tranquillien"},
242 {34, 75.9, 52.3, "East Plaguelands, Light's Hope"},
243 {nil, 61.8, 52.2, "Tirisfal Glades, Brill"},
244 {nil, 68, 37.3, "Undercity, Trade Quarter"},
245 {nil, 43.2, 41.4, "Silverpine Forest, Sepulcher"},
246 {nil, 62.8, 19, "Hillsbrad Foothills, Tarren Mill"},
247 {24, 78.2, 81.5, "Hinterlands, Revantusk Village"},
248 {nil, 73.9, 32.6, "Arathi Highlands, Hammerfall"},
249 {nil, 2.9, 36, "Badlands, Kargath"},
250 {nil, 45.1, 56.5, "Swamp of Sorrows, Stonard"},
251 {38, 35.1, 29.7, "Stranglethorn, Grom'gol"},
252 {38, 27.1, 77.3, "Stranglethorn, Booty Bay"},
253 name = "Eastern Kingdoms candy buckets",
255 outland = {
256 {nil, 43.4, 36.1, "Netherstorm, The Stormspire"},
257 {nil, 32.1, 64.5, "Netherstorm, Area 52"},
258 {nil, 76.2, 60.4, "Blade's Edge Mountains, Mok'Nathal Village"},
259 {nil, 62.9, 38.3, "Blade's Edge Mountains, Evergrove"},
260 {nil, 53.4, 55.5, "Blade's Edge Mountains, Thunderlord Stronghold"},
261 {nil, 30.7, 50.9, "Zangarmarsh, Zabra'jin"},
262 {nil, 56.7, 34.6, "Nagrand, Garadar"},
263 {nil, 78.5, 62.9, "Zangarmarsh, Cenarion Refuge"},
264 {nil, 56.8, 37.5, "Hellfire Peninsula, Thrallmar"},
265 {nil, 26.9, 59.6, "Hellfire Peninsula, Falcon Watch"},
266 {60, 28.1, 49, "(Aldor only) Shattrath City, Aldor Rise"},
267 {60, 56.2, 81.8, "(Scryer only) Shattrath City, Scryers Tier"},
268 {nil, 48.8, 45.2, "Terokkar Forest, Stonebreaker Hold"},
269 {nil, 30.3, 27.8, "Shadowmoon Valley, Shadowmoon Village"},
270 {53, 61, 28.2, "(Aldor only) Shadowmoon Valley, Altar of Sha'tar"},
271 {53, 56.3, 59.8, "(Scryer only) Shadowmoon Valley, Sanctum of the Stars"},
272 name = "Outland candy buckets",
277 function QH_AddBuckets(typ)
278 blarg = false
279 if typ and fb[typ] then
280 QH_AddChunk(fb[typ])
281 else
282 QH_AddChunk(fb.kalimdor)
283 QH_AddChunk(fb.ek)
284 QH_AddChunk(fb.outland)