Mercurial > wow > bloodhound2
comparison Bloodhound2.lua @ 2:91131c35a2c3
Added the ability for Trove of the Thunderking to be tracked while on Isle of
Thunder. Config options have not been tested and these nodes will only show up
if you haven't looted a trove this week and should disappear as soon as you do
loot a trove.
author | only1yzerman |
---|---|
date | Fri, 10 May 2013 20:56:25 -0400 |
parents | 6ab5b23877a6 |
children | a10b7ef54e09 |
comparison
equal
deleted
inserted
replaced
1:6ab5b23877a6 | 2:91131c35a2c3 |
---|---|
94 SetMapZoom(cmap, zmap); | 94 SetMapZoom(cmap, zmap); |
95 | 95 |
96 if (c ~= player.C and c ~= 0) then -- reload continent data if continent has changed | 96 if (c ~= player.C and c ~= 0) then -- reload continent data if continent has changed |
97 Bloodhound2.HerbNodes, Bloodhound2.ContinentHerbs = Bloodhound2.ReloadNodes(Bloodhound2.HerbDatabase[c], Bloodhound2.ZoneDatum[c]); | 97 Bloodhound2.HerbNodes, Bloodhound2.ContinentHerbs = Bloodhound2.ReloadNodes(Bloodhound2.HerbDatabase[c], Bloodhound2.ZoneDatum[c]); |
98 Bloodhound2.OreNodes, Bloodhound2.ContinentOre = Bloodhound2.ReloadNodes(Bloodhound2.OreDatabase[c], Bloodhound2.ZoneDatum[c]); | 98 Bloodhound2.OreNodes, Bloodhound2.ContinentOre = Bloodhound2.ReloadNodes(Bloodhound2.OreDatabase[c], Bloodhound2.ZoneDatum[c]); |
99 Bloodhound2.MiscNodes, Bloodhound2.ContinentNode = Bloodhound2.ReloadNodes(Bloodhound2.MiscDatabase[c], Bloodhound2.ZoneDatum[c]); | |
99 end | 100 end |
100 | 101 |
101 if (c ~= player.C or z ~= player.Z or x ~= player.X or y ~= player.Y or f ~= player.F or m ~= lastzoom) then | 102 if (c ~= player.C or z ~= player.Z or x ~= player.X or y ~= player.Y or f ~= player.F or m ~= lastzoom) then |
102 player.C = c; | 103 player.C = c; |
103 player.Z = z; | 104 player.Z = z; |
146 | 147 |
147 -------- DATABASE LOADING | 148 -------- DATABASE LOADING |
148 | 149 |
149 Bloodhound2.HerbNodes = {}; | 150 Bloodhound2.HerbNodes = {}; |
150 Bloodhound2.OreNodes = {}; | 151 Bloodhound2.OreNodes = {}; |
152 Bloodhound2.MiscNodes = {}; | |
151 Bloodhound2.ContinentHerbs = {}; | 153 Bloodhound2.ContinentHerbs = {}; |
152 Bloodhound2.ContinentOre = {}; | 154 Bloodhound2.ContinentOre = {}; |
153 | 155 |
154 function Bloodhound2.ReloadNodes(database, zoneDatum) | 156 function Bloodhound2.ReloadNodes(database, zoneDatum) |
155 | 157 |
315 local name, _, active, _ = GetTrackingInfo(i); | 317 local name, _, active, _ = GetTrackingInfo(i); |
316 if (active == 1) then | 318 if (active == 1) then |
317 if (name == L["Find Herbs"]) then | 319 if (name == L["Find Herbs"]) then |
318 for k,v in pairs(Settings.HerbFilter) do settingsFilter[k] = v end | 320 for k,v in pairs(Settings.HerbFilter) do settingsFilter[k] = v end |
319 for k,v in pairs(Bloodhound2.HerbNodes) do tinsert(nodes, v) end | 321 for k,v in pairs(Bloodhound2.HerbNodes) do tinsert(nodes, v) end |
322 if (IsQuestFlaggedCompleted(32609) ~= 1) then | |
323 for k,v in pairs(Bloodhound2.MiscNodes) do tinsert(nodes, v) end | |
324 end | |
320 elseif (name == L["Find Minerals"]) then | 325 elseif (name == L["Find Minerals"]) then |
321 for k,v in pairs(Settings.OreFilter) do settingsFilter[k] = v end | 326 for k,v in pairs(Settings.OreFilter) do settingsFilter[k] = v end |
322 for k,v in pairs(Bloodhound2.OreNodes) do tinsert(nodes, v) end | 327 for k,v in pairs(Bloodhound2.OreNodes) do tinsert(nodes, v) end |
328 if (IsQuestFlaggedCompleted(32609) ~= 1) then | |
329 for k,v in pairs(Bloodhound2.MiscNodes) do tinsert(nodes, v) end | |
330 end | |
323 end | 331 end |
324 end | 332 end |
325 end | 333 end |
326 | 334 |
327 local avoidZones = {}; -- which zones to avoid | 335 local avoidZones = {}; -- which zones to avoid |