Mercurial > wow > bloodhound2
changeset 6:ee1d6e6a4c52 Release
Added in a function to fix the ghost rubies/arrows when in Shrine of Seven Stars
author | only1yzerman |
---|---|
date | Thu, 30 May 2013 07:07:05 -0400 |
parents | a10b7ef54e09 |
children | 8e81e24efb3f |
files | Bloodhound2.lua Bloodhound2.toc |
diffstat | 2 files changed, 22 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Bloodhound2.lua Thu May 30 05:44:47 2013 -0400 +++ b/Bloodhound2.lua Thu May 30 07:07:05 2013 -0400 @@ -91,13 +91,17 @@ local x, y = GetPlayerMapPosition("player"); local f = GetPlayerFacing(); local m = Minimap:GetZoom(); + local ztxt = GetZoneText(); + local zstxt = GetSubZoneText(); + local badzones = { "","The Star's Bazaar", "The Emperor's Step", "The Golden Lantern", "Chamber of Reflection", "The Imperial Exchange", "Path of Serenity", "Ethereal Corridor", "The Celestial Vault", "Chamber of Enlightenment" } SetMapZoom(cmap, zmap); - + if (c ~= player.C and c ~= 0 and c ~= -1) then -- reload continent data if continent has changed Bloodhound2.HerbNodes, Bloodhound2.ContinentHerbs = Bloodhound2.ReloadNodes(Bloodhound2.HerbDatabase[c], Bloodhound2.ZoneDatum[c]); Bloodhound2.OreNodes, Bloodhound2.ContinentOre = Bloodhound2.ReloadNodes(Bloodhound2.OreDatabase[c], Bloodhound2.ZoneDatum[c]); Bloodhound2.MiscNodes, Bloodhound2.ContinentNode = Bloodhound2.ReloadNodes(Bloodhound2.MiscDatabase[c], Bloodhound2.ZoneDatum[c]); end + if (c ~= player.C or z ~= player.Z or x ~= player.X or y ~= player.Y or f ~= player.F or m ~= lastzoom) then player.C = c; @@ -130,6 +134,13 @@ end end end +function Bloodhound2.BadZone(ztxt, zstxt, badzones) + for tbl, value in pairs(badzones) do + if (ztxt == "Shrine of Seven Stars" or zstxt == value) then return false + end + end + return true +end function Bloodhound2.UpdateMinimap() local facing = 0 @@ -282,7 +293,11 @@ local z = player.Z; local x = player.X; local y = player.Y; - + local ztxt = GetZoneText(); + local zstxt = GetSubZoneText(); + local badzones = { "The Star's Bazaar", "The Emperor's Step", "The Golden Lantern", "Chamber of Reflection", "The Imperial Exchange", "Path of Serenity", "Ethereal Corridor", "The Celestial Vault", "Chamber of Enlightenment" } + + if (Bloodhound2.BadZone(ztxt, zstxt, badzones) == false) then return 0,0 end -- don't draw the arrow when inside Shrine of Seven Stars if c == 0 or z == 0 or c == -1 then return 0,0 end -- don't draw arrow if using world coordinates if not Bloodhound2.ZoneDatum then return 0,0 end
--- a/Bloodhound2.toc Thu May 30 05:44:47 2013 -0400 +++ b/Bloodhound2.toc Thu May 30 07:07:05 2013 -0400 @@ -2,7 +2,7 @@ ## Title: Bloodhound2 ## Author: Paul Louis ## Former Author: Bret Mulvey -## Version: 2.0.2 +## Version: 2.0.3 ## HerbDB: 5/8/2013 ## OreDB: 5/9/2013 ## Notes: An herb and ore gathering add-on with a focus on ease-of-use. @@ -14,6 +14,10 @@ ## X-Curse-Project-Name: Bloodhound2 ## X-Curse-Project-ID: bloodhound2 ## X-Curse-Repository-ID: wow/bloodhound2/mainline +## X-Curse-Packaged-Version: r5 +## X-Curse-Project-Name: Bloodhound2 +## X-Curse-Project-ID: bloodhound2 +## X-Curse-Repository-ID: wow/bloodhound2/mainline LocalizeDefault.lua Bloodhound2.lua HerbDatabase.lua