Skip to content

Commit

Permalink
Updated for Cataclysm Classic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravendwyr committed Jun 21, 2024
1 parent c16a4ba commit 7a2f472
Show file tree
Hide file tree
Showing 5 changed files with 679 additions and 14 deletions.
323 changes: 323 additions & 0 deletions AllianceClassic.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,323 @@

if UnitFactionGroup("player") ~= "Alliance" then return end


local _, SummerFestival = ...
local points = SummerFestival.points
-- points[<mapfile>] = { [<coordinates>] = "<questID>:<type>" }


----------------------
-- Eastern Kingdoms --
----------------------

points[1417] = { -- "Arathi"
[44304603] = "11804:H", -- Refuge Pointe
[69084286] = "11764:D", -- Hammerfall
}

points[1418] = { -- "Badlands"
[19005618] = "28925:H", -- Dragon's Mouth
[24113722] = "11766:D", -- New Kargath
}

points[1419] = { -- "BlastedLands"
[46361426] = "28917:D", -- Dreadmaul Hold
[55531488] = "11808:H", -- Nethergarde Keep
}

points[1428] = { -- "BurningSteppes"
[51532918] = "11768:D", -- Flame Crest
[68346064] = "11810:H", -- Morgan's Vigil
}

points[1426] = { -- "DunMorogh"
[53804523] = "11813:H", -- Kharanos
}

points[1431] = { -- "Duskwood"
[73695462] = "11814:H", -- Darkshire
}

points[1429] = { -- "Elwynn"
[43476263] = "11816:H", -- Goldshire
}

points[1941] = { -- "EversongWoods"
[55823765] = "11935:C", -- Stealing Silvermoon's Flame
[46355039] = "11772:D", -- Falconwing Square
}

points[1942] = { -- "Ghostlands"
[47052593] = "11774:D", -- Tranquillien
}

points[1424] = { -- "HillsbradFoothills"
[54504989] = "11776:D", -- Tarren Mill
}

points[1425] = { -- "Hinterlands"
[14345007] = "11826:H", -- Aerie Peak
[76637455] = "11784:D", -- Revantusk Village
}

points[1432] = { -- "LochModan"
[32554095] = "11820:H", -- Thelsamar
}

points[1433] = { -- "Redridge"
[24905338] = "11822:H", -- Lakeshire
}

points[1954] = { -- "SilvermoonCity"
[68984318] = "11935:C", -- Stealing Silvermoon's Flame
}

points[1421] = { -- "Silverpine"
[49623866] = "11580:D", -- The Sepulcher
}

points[1434] = { -- "StranglethornJungle"
[40725184] = "28911:D", -- Grom'gol Base Camp
[52056356] = "28922:H", -- Fort Livingston
}

points[1435] = { -- "SwampOfSorrows"
[76771417] = "11781:D", -- Bogpaddle (west)
[70241573] = "28929:H", -- Bogpaddle (east)
}

points[210] = { -- "TheCapeOfStranglethorn"
[50547069] = "11801:D", -- Wild Shore (south)
[51976764] = "11832:H", -- Wild Shore (north)
}

points[1420] = { -- "Tirisfal"
[56985176] = "11786:D", -- Brill
[62336682] = "9326:C", -- Stealing the Undercity's Flame
}

points[1458] = { -- "Undercity"
[68420836] = "9326:C", -- Stealing the Undercity's Flame
}

points[1422] = { -- "WesternPlaguelands"
[29085647] = "28918:D", -- The Bulwark
[43478233] = "11827:H", -- Chillwind Camp
}

points[1436] = { -- "Westfall"
[44776206] = "11583:H", -- Moonbrook
}

points[1437] = { -- "Wetlands"
[13464706] = "11828:H", -- Menethil Harbour
}


--------------
-- Kalimdor --
--------------

points[1440] = { -- "Ashenvale"
[51606675] = "11765:D", -- Silverwind Refuge
[86944186] = "11805:H", -- Forest Song
}

points[1447] = { -- "Aszhara"
[60415349] = "28919:D", -- Bilgewater Harbour
}

points[1943] = { -- "AzuremystIsle"
[44485251] = "11806:H", -- Azure Watch
}

points[1413] = { -- "Barrens"
[49835434] = "11783:D", -- The Crossroads
}

points[1950] = { -- "BloodmystIsle"
[55826789] = "11809:H", -- Blood Watch
}

points[1439] = { -- "Darkshore"
[48732265] = "11811:H", -- Lor'danel
}

points[1443] = { -- "Desolace"
[26217729] = "11769:D", -- Silverprey Village
[66121709] = "11812:H", -- Nijel's Point
}

points[1411] = { -- "Durotar"
[51984719] = "11770:D", -- Razor Hill
}

points[1445] = { -- "Dustwallow"
[33233077] = "11771:D", -- Brackenwall Village
[61824046] = "11815:H", -- Theramore Isle
}

points[1444] = { -- "Feralas"
[46824370] = "11817:H", -- Feathermoon Stronghold
[72424757] = "11773:D", -- Camp Mojache
}

points[1412] = { -- "Mulgore"
[35042393] = "9325:C", -- Stealing Thunder Bluff's Flame
[51985943] = "11777:D", -- Bloodhoof Village
}

points[1454] = { -- "Orgrimmar"
[46113733] = "9324:C", -- Stealing Orgrimmar's Flame
}

points[1451] = { -- "Silithus"
[50844177] = "11800:D", -- Cenarion Hold (south)
[60313351] = "11831:H", -- Cenarion Hold (east)
}

points[199] = { -- "SouthernBarrens"
[48337223] = "28926:H", -- Fort Triumph
[40676730] = "28914:D", -- Desolation Point
}

points[1442] = { -- "StonetalonMountains"
[49305133] = "28928:H", -- Mirkfallon Lake
[52976227] = "11780:D", -- Sun Rock Retreat
}

points[1446] = { -- "Tanaris"
[49842817] = "11802:D", -- Gadgetzan (west)
[52643026] = "11833:H", -- Gadgetzan (east)
}

points[1438] = { -- "Teldrassil"
[54885277] = "11824:H", -- Dolanaar
}

points[1456] = { -- "ThunderBluff"
[21282706] = "9325:C", -- Stealing Thunder Bluff's Flame
}

points[1449] = { -- "UngoroCrater"
[56446581] = "28920:D", -- Marshal's Stand (west)
[59856324] = "28932:H", -- Marshal's Stand (east)
}

points[1452] = { -- "Winterspring"
[58124719] = "11803:D", -- Everlook (west)
[61244725] = "11834:H", -- Everlook (east)
}


-------------
-- Outland --
-------------

points[1949] = { -- "BladesEdgeMountains"
[41576590] = "11807:H", -- Sylvanaar
[50045902] = "11767:D", -- Thunderlord Stronghold
}

points[1944] = { -- "Hellfire"
[57194175] = "11775:D", -- Thrallmar
[62175829] = "11818:H", -- Honour Hold
}

points[1951] = { -- "Nagrand"
[49616946] = "11821:H", -- Telaar
[51103396] = "11778:D", -- Garadar
}

points[1953] = { -- "Netherstorm"
[31216266] = "11830:H", -- Area 52 (north-west)
[32306833] = "11799:D", -- Area 52 (south)
}

points[1948] = { -- "ShadowmoonValley"
[33533028] = "11779:D", -- Shadowmoon Village
[39625464] = "11823:H", -- Wildhammer Stronghold
}

points[1952] = { -- "TerokkarForest"
[51934324] = "11782:D", -- Stonebreaker Hold
[54065552] = "11825:H", -- Allerian Stronghold
}

points[1946] = { -- "Zangarmarsh"
[35585182] = "11787:D", -- Zabra'jin
[68795195] = "11829:H", -- Telredor
}


---------------
-- Northrend --
---------------

points[114] = { -- "BoreanTundra"
[51031186] = "13441:D", -- Bor'gorok Outpost
[55101995] = "13485:H", -- Fizzcrank Airstrip
}

points[127] = { -- "CrystalsongForest"
[78197495] = "13491:H", -- Windrunner's Overlook
[80435263] = "13457:D", -- Sunreaver's Command
}

points[115] = { -- "Dragonblight"
[38524824] = "13451:D", -- Agmar's Hammer
[75294380] = "13487:H", -- Wintergarde Keep
}

points[116] = { -- "GrizzlyHills"
[19086149] = "13454:D", -- Conquest Hold
[33906045] = "13489:H", -- Amberpine Lodge
}

points[117] = { -- "HowlingFjord"
[48371337] = "13453:D", -- Camp Winterhoof
[57811611] = "13488:H", -- Fort Wildervar
}

points[119] = { -- "SholazarBasin"
[47366158] = "13450:D", -- River's Heart (north)
[48096636] = "13486:H", -- River's Heart (south)
}

points[120] = { -- "TheStormPeaks"
[40338558] = "13455:D", -- K3 (west)
[41448669] = "13490:H", -- K3 (east)
}

points[121] = {
[43307127] = "13458:D", -- The Argent Stand (south-east)
[40386130] = "13492:H", -- The Argent Stand (north)
}


---------------
-- Cataclysm --
---------------

points[207] = { -- "Deepholm"
[49405132] = "29036:H", -- Temple of Earth
}

points[198] = { -- "Hyjal"
[62832271] = "29030:H", -- Nordrassil
}

points[241] = { -- "TwilightHighlands"
[47262896] = "28945:H", -- Thundermar
[53284644] = "28944:D", -- Bloodgulch
}

points[249] = { -- "Uldum"
[53603184] = "28950:H", -- Ramkahen (north)
[52953461] = "28948:D", -- Ramkahen (south)
}

points[205] = { -- "VashjirRuins"
[49354199] = "29031:H", -- Silver Tide Hollow
}
25 changes: 14 additions & 11 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


-- declaration
local _, SummerFestival = ...
local addOnName, SummerFestival = ...
SummerFestival.points = {}


Expand Down Expand Up @@ -320,15 +320,18 @@ function SummerFestival:OnEnable()

for continentMapID in next, continents do
local children = C_Map.GetMapChildrenInfo(continentMapID, nil, true)
for _, map in next, children do
local coords = points[map.mapID]
if coords then
for coord, criteria in next, coords do
local mx, my = HandyNotes:getXY(coord)
local cx, cy = HereBeDragons:TranslateZoneCoordinates(mx, my, map.mapID, continentMapID, false)
if cx and cy then
points[continentMapID] = points[continentMapID] or {}
points[continentMapID][HandyNotes:getCoord(cx, cy)] = criteria
if not children then HandyNotes:Print("Map ID " .. continentMapID .. " has invalid data. Please inform the author of HandyNotes_SummerFestival. (WoW Project ID " .. WOW_PROJECT_ID .. ")")
else
for _, map in next, children do
local coords = points[map.mapID]
if coords then
for coord, criteria in next, coords do
local mx, my = HandyNotes:getXY(coord)
local cx, cy = HereBeDragons:TranslateZoneCoordinates(mx, my, map.mapID, continentMapID, false)
if cx and cy then
points[continentMapID] = points[continentMapID] or {}
points[continentMapID][HandyNotes:getCoord(cx, cy)] = criteria
end
end
end
end
Expand Down Expand Up @@ -356,4 +359,4 @@ end


-- activate
LibStub("AceAddon-3.0"):NewAddon(SummerFestival, "HandyNotes_SummerFestival", "AceEvent-3.0")
LibStub("AceAddon-3.0"):NewAddon(SummerFestival, addOnName, "AceEvent-3.0")
6 changes: 3 additions & 3 deletions HandyNotes_SummerFestival.toc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## Interface: 100207, 40400
## Interface: 100207
## Title: HandyNotes_SummerFestival
## Notes: Displays the locations of Summer Festival bonfires.
## Notes: Marks the locations of Midsummer Fire Festival bonfires on the worldmap and minimap.
## Author: Ravendwyr
## Version: @project-version@
## X-Category: Map & Minimap
## X-Curse-Project-ID: 45903
## X-Wago-ID: Xb6Xxw6p
## SavedVariables: HandyNotes_SummerFestivalDB
## RequiredDeps: HandyNotes
## Dependencies: HandyNotes

Core.lua

Expand Down
15 changes: 15 additions & 0 deletions HandyNotes_SummerFestival_Classic.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Interface: 40400
## Title: HandyNotes_SummerFestival
## Notes: Marks the locations of Midsummer Fire Festival bonfires on the worldmap and minimap.
## Author: Ravendwyr
## Version: @project-version@
## X-Category: Map & Minimap
## X-Curse-Project-ID: 45903
## X-Wago-ID: Xb6Xxw6p
## SavedVariables: HandyNotes_SummerFestivalDB
## Dependencies: HandyNotes

Core.lua

AllianceClassic.lua
HordeClassic.lua
Loading

0 comments on commit 7a2f472

Please sign in to comment.