Just bringing the pathfinding.lua up to date with mine. Shouldn't this be 4.0.6a.xxa now?
Cette révision appartient à :
Parent
3e13a5a473
révision
2f5b68388b
|
@ -1,6 +1,9 @@
|
|||
|
||||
QuestHelper_File["pathfinding.lua"] = "4.0.1.$svnversion$"
|
||||
QuestHelper_Loadtime["pathfinding.lua"] = GetTime()
|
||||
|
||||
local ORGRIMMAR_PORTAL = {1,0.471,0.618, "Orgrimmar portal site"}
|
||||
|
||||
local IRONFORGE_PORTAL = {25,0.255,0.084, "Ironforge portal site"}
|
||||
local STORMWIND_CITY_PORTAL = QuestHelper_ConvertCoordsToWrath({36,0.387,0.802, "Stormwind City portal site"}, true) -- Old pre-Wrath coordinates. I could fix it, but . . . meh.
|
||||
local DARNASSUS_PORTAL = {21,0.397,0.824, "Darnassus portal site"}
|
||||
|
@ -12,12 +15,11 @@ local MOONGLADE_PORTAL = {20,0.563,0.320, "Moonglade portal site"}
|
|||
|
||||
local SILVERMOON_CITY_PORTAL = {52,0.583,0.192, "Silvermoon City portal site"}
|
||||
local UNDERCITY_PORTAL = {45,0.846,0.163, "Undercity portal site"}
|
||||
local ORGRIMMAR_PORTAL = {1,0.471,0.618, "Orgrimmar portal site"}
|
||||
local THUNDER_BLUFF_PORTAL = {23,0.222,0.168, "Thunder Bluff portal site"}
|
||||
|
||||
local BLASTED_LANDS_PORTAL = {33,0.575,0.511, "Blasted Lands portal site"}
|
||||
|
||||
local BLASTED_LANDS_PORTAL = {33,0.539,0.461, "Blasted Lands portal site"}
|
||||
|
||||
-- Need to add new Cataclysm zone portals here
|
||||
|
||||
local static_horde_routes =
|
||||
{
|
||||
|
@ -29,35 +31,27 @@ local static_horde_routes =
|
|||
{{1, 0.526, 0.529}, {168, 0.372, 0.525}, 210}, -- Orgrimmar <--> Grom'gol Base Camp
|
||||
{{1, 0.449, 0.619}, {65, 0.414, 0.536}, 210}, -- Orgrimmar <--> Warsong Hold
|
||||
|
||||
-- City Transitions
|
||||
{{1, 0.495, 0.936}, {7, 0.455, 0.117}, 5}, -- Orgrimmar <--> Durotar
|
||||
{{1, 0.253, 0.673}, {7, 0.366, 0.036}, 5}, -- Orgrimmar <--> Durotar
|
||||
{{1, 0.761, 0.017}, {15, 0.264, 0.792}, 5}, -- Orgrimmar <--> Azshara
|
||||
|
||||
|
||||
|
||||
-- Partially checked
|
||||
{{1, 0.506, 0.561}, {43, 0.605, 0.587}, 210}, -- Orgrimmar <--> Tirisfal Glades
|
||||
{{1, 0.428, 0.653}, {23, 0.148, 0.258}, 210}, -- Orgrimmar <--> Thunder Bluff
|
||||
{{168, 0.374, 0.509}, {43, 0.621, 0.591}, 210}, -- Grom'gol Base Camp <--> Tirisfal Glades
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{{1, 0.506, 0.561}, {43, 0.605, 0.587}, 210}, -- Orgrimmar <--> Tirisfal Glades
|
||||
{{1, 0.428, 0.653}, {23, 0.148, 0.258}, 210}, -- Orgrimmar <--> Thunder Bluff
|
||||
{{168, 0.374, 0.509}, {43, 0.621, 0.591}, 210}, -- Grom'gol Base Camp <--> Tirisfal Glades
|
||||
|
||||
|
||||
|
||||
|
||||
{{45, 0.549, 0.11}, {52, 0.495, 0.148}, 60}, -- Undercity <--> Silvermoon City
|
||||
|
||||
{{43, 0.591, 0.590}, {70, 0.777, 0.283}, 210}, -- Tirisfal Glades <--> Vengeance Landing
|
||||
|
||||
{{23,0.231,0.135}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Thunder Bluff --> Blasted Lands
|
||||
{{45,0.852,0.170}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Undercity --> Blasted Lands
|
||||
{{52,0.584,0.210}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Silvermoon --> Blasted Lands
|
||||
|
||||
{{56, 0.886, 0.477}, ORGRIMMAR_PORTAL, 60, true, level_limit = 58}, -- Hellfire Peninsula --> Orgrimmar
|
||||
|
||||
-- Unchecked
|
||||
{{45, 0.549, 0.11}, {52, 0.495, 0.148}, 60}, -- Undercity <--> Silvermoon City
|
||||
{{43, 0.591, 0.590}, {70, 0.777, 0.283}, 210}, -- Tirisfal Glades <--> Vengeance Landing
|
||||
{{23,0.231,0.135}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Thunder Bluff --> Blasted Lands
|
||||
{{45,0.852,0.170}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Undercity --> Blasted Lands
|
||||
{{52,0.584,0.210}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Silvermoon --> Blasted Lands
|
||||
{{56, 0.886, 0.477}, ORGRIMMAR_PORTAL, 60, true, level_limit = 58}, -- Hellfire Peninsula --> Orgrimmar
|
||||
}
|
||||
|
||||
|
||||
|
||||
local static_alliance_routes =
|
||||
{
|
||||
-- Portals
|
||||
|
@ -65,26 +59,24 @@ local static_alliance_routes =
|
|||
|
||||
|
||||
|
||||
-- Cataclysm content
|
||||
-- Partially checked
|
||||
|
||||
|
||||
|
||||
|
||||
-- Nate's Cataclysm content
|
||||
{{207, 0.54, 0.60}, {205, 0.30, 0.72}, 10}, -- Gilneas Zone <--> Greymane Court, Gilneas City. Exists solely to fix some pathing crashes. (We want to make an adjustment to the coords though.)
|
||||
{{207, 0.55, 0.42}, {205, 0.28, 0.21}, 5}, -- Gilneas Zone <--> Cathedral Square, Gilneas City. Exists solely to fix some pathing crashes. (We want to make an adjustment to the coords though.)
|
||||
{{207, 0.66, 0.42}, {205, 0.67, 0.20}, 5}, -- Gilneas Zone <--> Merchant Square, Gilneas City. Exists solely to fix some pathing crashes. (We want to make an adjustment to the coords though.)
|
||||
{{207, 0.68, 0.62}, {205, 0.69, 0.82}, 10}, -- Gilneas Zone <--> Military District, Gilneas City. Exists solely to fix some pathing crashes. (We want to make an adjustment to the coords though.)
|
||||
{{207, 0.42, 0.36}, {24, 0.52, 0.89}, 86400}, -- Gilneas Zone <--> Teldrassil. Exists solely to fix some pathing crashes. 24-hour boat ride :D (This will be deleted later, when we can create the "official" path.)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- Unchecked
|
||||
{{56, 0.886, 0.528}, STORMWIND_CITY_PORTAL, 60, true, level_limit = 58}, -- Hellfire Peninsula --> Stormwind
|
||||
|
||||
{QuestHelper_ConvertCoordsToWrath({36, 0.639, 0.083}, true), {25, 0.764, 0.512}, 180}, -- Deeprun Tram
|
||||
{{10, 0.718, 0.565}, {51, 0.047, 0.636}, 210}, -- Theramore Isle <--> Menethil Harbor
|
||||
-- No longer exists {{36, 0.228, 0.560}, {16, 0.323, 0.441}, 210}, -- Stormwind City <--> Auberdine
|
||||
|
||||
{{36, 0.183, 0.255}, {65, 0.597, 0.694}, 210}, -- Stormwind City <--> Valiance Keep
|
||||
{{51, 0.047, 0.571}, {70, 0.612, 0.626}, 210}, -- Menethil <--> Daggercap Bay
|
||||
|
||||
{{21,0.405,0.817}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Darnassus --> Blasted Lands
|
||||
{{12,0.462,0.609}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Exodar --> Blasted Lands
|
||||
{{25,0.273,0.071}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Ironforge --> Blasted Lands
|
||||
|
@ -93,24 +85,22 @@ local static_alliance_routes =
|
|||
|
||||
local static_shared_routes =
|
||||
{
|
||||
-- More Alliance routes than anything, but without them theres no valid path to these areas for Horde characters.
|
||||
{{24, 0.559, 0.896}, {21, 0.305, 0.414}, 5}, -- Rut'Theran Village <--> Darnassus
|
||||
{{3, 0.204, 0.542}, {24, 0.523, 0.895}, 210}, -- Azuremyst Isle <--> Teldrassil
|
||||
{{24, 0.550, 0.936}, {36, 0.226, 0.557}, 210}, -- Teldrassil <--> Stormwind City
|
||||
{{67, 0.268, 0.447}, {67, 0.240, 0.394}, 60}, -- Dalaran (Violet Citadel) <--> Dalaran (Purple Parlor)
|
||||
{{67, 0.559, 0.468}, {66, 0.158, 0.428}, 60}, -- Dalaran <--> Violet Stand
|
||||
-- Portals
|
||||
{{67, 0.268, 0.447}, {67, 0.240, 0.394}, 60}, -- Dalaran (Violet Citadel) <--> Dalaran (Purple Parlor)
|
||||
{{67, 0.559, 0.468}, {66, 0.158, 0.428}, 60}, -- Dalaran <--> Violet Stand
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{{11, 0.638, 0.387}, {174, 0.390, 0.670}, 210}, -- Ratchet <--> Booty Bay
|
||||
{{67, 0.255, 0.514}, {8, 0.659, 0.498}, 5, true}, -- Dalaran --> Caverns of Time
|
||||
-- Partially checked
|
||||
{{11, 0.638, 0.387}, {174, 0.390, 0.670}, 210}, -- Ratchet <--> Booty Bay
|
||||
{{67, 0.255, 0.514}, {8, 0.659, 0.498}, 5, true}, -- Dalaran --> Caverns of Time
|
||||
|
||||
|
||||
|
||||
|
||||
-- Cataclysm content
|
||||
-- Nate's Cataclysm content
|
||||
{{178, 0.83, 0.34}, {167, 0.45, 0.23}, 210, true}, -- Vash'jir --> Vash'jir Kelp Forest (One time, One way)
|
||||
{{167, 0.69, 0.60}, {178, 0.80, 0.30}, 5}, -- Vash'jir Kelp Forest <--> Vash'jir
|
||||
{{178, 0.84, 0.23}, {62, 0.37, 0.58}, 5}, -- Vash'jir <--> The Great Sea (EK Continent, zone 0)
|
||||
|
@ -131,19 +121,24 @@ local static_shared_routes =
|
|||
|
||||
|
||||
|
||||
-- Unchecked
|
||||
-- Route to new zone. Not valid, exists only to keep routing from exploding if you don't have the flight routes there.
|
||||
{{41, 0.5, 0.5}, {64, 0.5, 0.5}, 7200}, -- Eversong Woods <--> Sunwell
|
||||
|
||||
Ê Ê-- More Alliance routes than anything, but without them theres no valid path to these areas for Horde characters.
|
||||
Ê Ê{{24, 0.559, 0.896}, {21, 0.305, 0.414}, 5}, -- Rut'Theran Village <--> Darnassus
|
||||
Ê Ê{{3, 0.204, 0.542}, {24, 0.523, 0.895}, 210}, -- Azuremyst Isle <--> Teldrassil
|
||||
Ê Ê{{24, 0.550, 0.936}, {36, 0.226, 0.557}, 210}, -- Teldrassil <--> Stormwind City
|
||||
|
||||
{{40, 0.318, 0.503}, {32, 0.347, 0.84}, 130}, -- Burning Steppes <--> Searing Gorge
|
||||
{{24, 0.559, 0.896}, {21, 0.305, 0.414}, 5}, -- Rut'Theran Village <--> Darnassus
|
||||
{{70, 0.235, 0.578}, {68, 0.496, 0.784}, 210}, -- Kamagua <--> Moa'ki
|
||||
{{65, 0.789, 0.536}, {68, 0.480, 0.787}, 210}, -- Unu'pe <--> Moa'ki
|
||||
{{34, 0.817, 0.461}, {78, 0.492, 0.312}, 86400}, -- EPL Ebon Hold <--> Scarlet Enclave Ebon Hold. Exists solely to fix some pathing crashes. 24-hour boat ride :D
|
||||
|
||||
{{164, 0.84, 0.41}, {8, 0.37, 0.82}, 5}, -- Uldum <--> Tanaris
|
||||
{{164, 0.70, 0.22}, {8, 0.25, 0.66}, 5}, -- Uldum <--> Tanaris
|
||||
{{210, 0.84, 0.41}, {8, 0.37, 0.82}, 5}, -- Uldum <--> Tanaris
|
||||
{{210, 0.70, 0.22}, {8, 0.25, 0.66}, 5}, -- Uldum <--> Tanaris
|
||||
Ê Ê{{164, 0.84, 0.41}, {8, 0.37, 0.82}, 5}, -- Uldum <--> Tanaris
|
||||
Ê Ê{{164, 0.70, 0.22}, {8, 0.25, 0.66}, 5}, -- Uldum <--> Tanaris
|
||||
Ê Ê{{210, 0.84, 0.41}, {8, 0.37, 0.82}, 5}, -- Uldum <--> Tanaris
|
||||
Ê Ê{{210, 0.70, 0.22}, {8, 0.25, 0.66}, 5}, -- Uldum <--> Tanaris
|
||||
{{35, 0.45, 0.85}, {169, 0.60, 0.09}, 5}, -- Silverpine <--> Ruins of Gilneas
|
||||
|
||||
-- Wrath instance entrances
|
||||
|
@ -209,7 +204,7 @@ local static_shared_routes =
|
|||
}
|
||||
|
||||
-- Darkportal is handled specially, depending on whether or not you're level 58+ or not.
|
||||
local dark_portal_route = {{33, 0.587, 0.599}, {56, 0.898, 0.502}, 60}
|
||||
local dark_portal_route = {{33, 0.550, 0.541}, {56, 0.898, 0.502}, 60}
|
||||
|
||||
local static_zone_transitions =
|
||||
{
|
||||
|
@ -231,9 +226,19 @@ local static_zone_transitions =
|
|||
|
||||
--Cataclysm zones
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- Work
|
||||
{7, 1, 0.117, 0.936}, -- Durotar <--> Orgrimmar.Front
|
||||
{7, 1, 0.366, 0.253}, -- Durotar <--> Orgrimmar.Side
|
||||
{15, 1, 0.792, 0.017}, -- Azshara <--> Orgrimmar
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -241,7 +246,6 @@ local static_zone_transitions =
|
|||
{2, 11, 0.687, 0.872}, -- Ashenvale <--> Northern Barrens
|
||||
{2, 6, 0.423, 0.711}, -- Ashenvale <--> Stonetalon Mountains
|
||||
{2, 15, 0.954, 0.484}, -- Ashenvale <--> Azshara
|
||||
{15, 1, 0.26, 0.79}, -- Azshara <--> Orgrimmar
|
||||
{2, 16, 0.289, 0.144}, -- Ashenvale <--> Darkshore
|
||||
{2, 13, 0.557, 0.29}, -- Ashenvale <--> Felwood
|
||||
{21, 24, 0.894, 0.358}, -- Darnassus <--> Teldrassil
|
||||
|
@ -266,7 +270,6 @@ local static_zone_transitions =
|
|||
{203, 14, 0.43, 0.96}, -- Southern Barrens <--> Thousand Needles
|
||||
{13, 19, 0.685, 0.06}, -- Felwood <--> Winterspring
|
||||
{13, 20, 0.669, -0.063}, -- Felwood <--> Moonglade
|
||||
{7, 1, 0.37, 0.02}, -- Durotar <--> Orgrimmar
|
||||
{17, 14, 0.899, 0.46}, -- Feralas <--> Thousand Needles
|
||||
{6, 203, 0.29, 0.08}, -- Stonetalon Mountains <--> The Barrens
|
||||
{39, 51, 0.454, 0.89}, -- Arathi Highlands <--> Wetlands
|
||||
|
@ -361,13 +364,6 @@ function load_graph_links()
|
|||
coord[1] = 198
|
||||
end
|
||||
|
||||
-- I hate Blizzard... They can't make up their mind weather we are on Uldum or Uldum_terrain1, but we only seem to be on one or the other.
|
||||
if coord[1] == 164 and not QuestHelper_ZoneLookup[coord[1]] then
|
||||
coord[1] = 210
|
||||
elseif coord[1] == 210 and not QuestHelper_ZoneLookup[coord[1]] then
|
||||
coord[1] = 164
|
||||
end
|
||||
|
||||
-- I hate Blizzard... They can't make up their mind whether we are on LostIsles, LostIsles_terrain1 or LostIsles_terrain2, but we only seem to be on one.
|
||||
|
||||
-- Create a lookup table.
|
||||
|
|
Référencer dans un nouveau ticket