From a56e4b52b018e0b445eae0d3e5975d47ce14b5dd Mon Sep 17 00:00:00 2001 From: David Lynch Date: Sat, 18 May 2024 12:00:01 -0500 Subject: [PATCH] Show treasure nodes on the minimap --- pandaria.lua | 6 ++++++ zones/DreadWastes.lua | 4 +--- zones/JadeForest.lua | 7 ++----- zones/KrasarangWilds.lua | 4 +--- zones/KunLaiSummit.lua | 12 +++--------- zones/TownlongSteppes.lua | 4 +--- zones/ValleyOfTheFourWinds.lua | 4 +--- 7 files changed, 15 insertions(+), 26 deletions(-) diff --git a/pandaria.lua b/pandaria.lua index a164447..ea54c08 100644 --- a/pandaria.lua +++ b/pandaria.lua @@ -15,6 +15,12 @@ ns.groups["junk"] = "Junk" ns.riches = ns.nodeMaker{ achievement=7997, -- Riches of Pandaria atlas="auctioneer", + minimap=true, +} +ns.treasure = ns.nodeMaker{ + achievement=7284, -- Is Another Man's Treasure + -- atlas="reagents", + minimap=true, } ns.RegisterPoints(424, {}) -- continent diff --git a/zones/DreadWastes.lua b/zones/DreadWastes.lua index e9ccce0..12d4826 100644 --- a/zones/DreadWastes.lua +++ b/zones/DreadWastes.lua @@ -11,9 +11,7 @@ ns.RegisterPoints(422, { -- Dread Wastes [54305650] = { loot={86526}, quest=31437, }, -- Swarmkeeper's Medallion [71803610] = { loot={86519}, quest=31429, }, -- Wind-Reaver's Dagger of Quick Strikes [28804190] = { loot={86527}, quest=31438, }, -- Blade of the Poisoned Mind -}, { - achievement=7284, -- Is Another Man's Treasure -}) +}, ns.treasure{}) -- Rares diff --git a/zones/JadeForest.lua b/zones/JadeForest.lua index 8bfcde4..542c82c 100644 --- a/zones/JadeForest.lua +++ b/zones/JadeForest.lua @@ -9,9 +9,7 @@ ns.RegisterPoints(371, { -- The Jade Forest [46102920] = { loot={85777}, note="in the cave", quest=31399, }, -- Ancient Pandaren Mining Pick [47106740] = { loot={86196}, quest=31402, }, --Ancient Jinyu Staff [46207120] = { loot={86196}, quest=31402, }, --Ancient Jinyu Staff -}, { - achievement=7284, -- Is Another Man's Treasure -}) +}, ns.treasure{}) ns.RegisterPoints(373, { -- Greenstone Quarry, cave in Jade Forest [33107800] = {}, -- Ancient Pandaren Mining Pick [44007050] = {}, -- Ancient Pandaren Mining Pick @@ -19,8 +17,7 @@ ns.RegisterPoints(373, { -- Greenstone Quarry, cave in Jade Forest [38704750] = {}, -- Ancient Pandaren Mining Pick [32606270] = {}, -- Ancient Pandaren Mining Pick [38231394] = {}, -- Ancient Pandaren Mining Pick -}, { - achievement=7284, -- Is Another Man's Treasure +}, ns.treasure{ quest=31399, loot={85777}, }) diff --git a/zones/KrasarangWilds.lua b/zones/KrasarangWilds.lua index f0e459d..df1e3cc 100644 --- a/zones/KrasarangWilds.lua +++ b/zones/KrasarangWilds.lua @@ -4,9 +4,7 @@ ns.RegisterPoints(418, { -- Krasarang Wilds [43669232] = { loot={86122}, label="Equipment Locker", quest=31410, }, -- Plankwalking Greaves [54488873] = { loot={87266}, note="in a barrel", quest=31411, }, -- Recipe: Banana Infused Rum [52814644] = { loot={86124}, quest=31409, }, -- Pandaren Fishing Spear -}, { - achievement=7284, -- Is Another Man's Treasure -}) +}, ns.treasure{}) ns.RegisterPoints(418, { -- Krasarang Wilds [54267232] = { loot={87798}, group="junk", quest=31863, }, -- Stack of Papers diff --git a/zones/KunLaiSummit.lua b/zones/KunLaiSummit.lua index c39af9e..2e2681c 100644 --- a/zones/KunLaiSummit.lua +++ b/zones/KunLaiSummit.lua @@ -7,19 +7,13 @@ ns.RegisterPoints(379, { -- Kun Lai Summit [71206260] = { loot={88723}, note="in Stash of Yaungol Weapons", quest=31421, }, -- Sturdy Yaungol Spear [44705240] = { loot={86393}, quest=31417, }, -- Tablet of Ren Yun [47007300] = { label="Mo-Mo's Treasure Chest", group="junk", quest=31868, }, -}, { - achievement=7284, -- Is Another Man's Treasure -}) +}, ns.treasure{}) ns.RegisterPoints(383, { -- TheDeeper, cave in Kun-Lai [24106580] = { loot={86394}, quest=31413, }, -- Hozen Warrior Spear -}, { - achievement=7284, -- Is Another Man's Treasure -}) +}, ns.treasure{}) ns.RegisterPoints(381, { -- PrankstersHollow, cave in Kun-Lai [54706980] = { label="Sprite's Cloth Chest", quest=31412, }, -}, { - achievement=7284, -- Is Another Man's Treasure -}) +}, ns.treasure{}) ns.RegisterPoints(379, { -- Kun Lai Summit [64234513] = { loot={86471}, quest=31420, note="in the cave" }, -- Ancient Mogu Tablet diff --git a/zones/TownlongSteppes.lua b/zones/TownlongSteppes.lua index 6520d6c..3a64720 100644 --- a/zones/TownlongSteppes.lua +++ b/zones/TownlongSteppes.lua @@ -3,9 +3,7 @@ local myname, ns = ... ns.RegisterPoints(388, { -- Townlong Steppes [66304470] = { loot={86518}, quest=31425, }, -- Yaungol Fire Carrier [66804800] = { loot={86518}, quest=31425, }, -- Yaungol Fire Carrier -}, { - achievement=7284, -- Is Another Man's Treasure -}) +}, ns.treasure{}) ns.RegisterPoints(388, { -- Townlong Steppes [62823405] = { label="Abandoned Crate of Goods", note="in a tent", quest=31427, }, [65838608] = { loot={86472}, quest=31426, }, -- Amber Encased Moth diff --git a/zones/ValleyOfTheFourWinds.lua b/zones/ValleyOfTheFourWinds.lua index 6991d12..bc1dfae 100644 --- a/zones/ValleyOfTheFourWinds.lua +++ b/zones/ValleyOfTheFourWinds.lua @@ -9,9 +9,7 @@ ns.RegisterPoints(376, { -- Valley of the Four Winds [19103780] = { loot={86218}, quest=31407, }, -- Staff of the Hidden Master [19004250] = { loot={86218}, quest=31407, }, -- Staff of the Hidden Master [43603740] = { label="Cache of Pilfered Goods", quest=31406, }, -}, { - achievement=7284, -- Is Another Man's Treasure -}) +}, ns.treasure{}) ns.RegisterPoints(376, { -- Valley of the Four Winds [23712833] = { label="Virmen Treasure Cache", quest=31405, },