fix that IC achievement error
[QuestHelper.git] / director_achievement.lua
blobe6aa4437deba11a644f0d53e2c4d9a60123700cd
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)