1
0
Bifurcation 0

Significant changes to the static pathfinding information and some starting setup for mage and hearth porting.

Cette révision appartient à :
lonadar 2011-02-15 23:42:48 +00:00
Parent 334f894a5b
révision 09742a52ae
1 fichiers modifiés avec 87 ajouts et 52 suppressions

Voir le fichier

@ -2,35 +2,64 @@
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 BLASTED_LANDS_PORTAL_IN = {33,0.539,0.461, "Blasted Lands via portal"}
local BLASTED_LANDS_PORTAL = {33,0.539,0.461, "Blasted Lands portal site"}
local MOONGLADE_PORTAL = {20,0.563,0.324, "Moonglade portal site"}
local static_alliance_landings =
{
{12, 0.476, 0.598, "Exodar via portal"}, -- Exodar
{21, 0.435, 0.787, "Darnassus via portal"}, -- Darnassus
-- Need Stormwind Port In coordinates
-- Need Ironforge Port In coordinates
-- Need Theramore Port In coordinates
}
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"}
local EXODAR_PORTAL = {12,0.476,0.598, "Exodar portal site"}
local static_horde_landings =
{
{1, 0.483, 0.645, "Orgrimmar via portal"}, -- Orgrimmar
{23, 0.222, 0.169, "Thunder Bluff via portal"}, -- Thunder Bluff
{45, 0.845, 0.163, "Undercity via portal"}, -- Undercity
{52, 0.583, 0.192, "Silvermoon City via portal"}, -- Silvermoon City
{46, 0.498, 0.558, "Stonard via portal"}, -- Stonard
}
local SHATTRATH_CITY_PORTAL = {60,0.530,0.492, "Shattrath City portal site"}
local DALARAN_PORTAL = {67,0.500,0.394, "Dalaran portal site"}
local static_shared_landings =
{
-- Need Shattrath Port In cooordinates
-- Need Dalaran Port In coordinates
-- Need Tol Barad Port In coordinates
}
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 THUNDER_BLUFF_PORTAL = {23,0.222,0.168, "Thunder Bluff portal site"}
-- Unchecked
local SHATTRATH_CITY_PORTAL_IN = {60,0.530,0.492, "Shattrath City via portal"}
local DALARAN_PORTAL_IN = {67,0.500,0.394, "Dalaran via portal"}
QuestHelper:Assert(UnitClass("player"), "Pathfinding Druid Check - too soon")
QuestHelper:Assert(UnitLevel("player"), "Pathfinding Druid Check - too soon")
if UnitClass("player") == "Druid" and UnitClass("player") > 14 then
table.insert(static_shared_landings, {20,0.563,0.324, "Moonglade via spell"}) -- Moonglade landing
end
-- Need to add new Cataclysm zone portals here
local static_horde_routes =
{
-- Portals
{ORGRIMMAR_PORTAL, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Orgrimmar --> Dark Portal
{{1,0.471,0.618}, BLASTED_LANDS_PORTAL_IN, 60, true, level_limit = 58}, -- Orgrimmar --> Dark Portal
{{45,0.853,0.171}, BLASTED_LANDS_PORTAL_IN, 60, true, level_limit = 58}, -- Undercity --> Dark Portal
{{23,0.232,0.135}, BLASTED_LANDS_PORTAL_IN, 60, true, level_limit = 58}, -- Thunder Bluff --> Dark Portal
{{52,0.584,0.210}, BLASTED_LANDS_PORTAL_IN, 60, true, level_limit = 58}, -- Silvermoon --> Dark Portal
{{56, 0.886, 0.477}, {1, 0.483, 0.645}, 60, true, level_limit = 58}, -- Hellfire Peninsula --> Orgrimmar
-- Orgrimmar --> Tol Barad
-- Orgrimmar --> Maelstrom
-- Zepplins
{{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
{{1, 0.449, 0.619}, {65, 0.414, 0.536}, 210, false, level_limit = 68}, -- Orgrimmar <--> Warsong Hold
{{1, 0.506, 0.561}, {43, 0.607, 0.588}, 210}, -- Orgrimmar <--> Tirisfal Glades
{{168, 0.374, 0.509}, {43, 0.619, 0.591}, 210}, -- Grom'gol Base Camp <--> Tirisfal Glades
@ -39,23 +68,35 @@ local static_horde_routes =
-- Partially checked
{{1, 0.428, 0.653}, {23, 0.148, 0.258}, 210}, -- Orgrimmar <--> Thunder Bluff
{{43, 0.590, 0.590}, {70, 0.777, 0.283}, 210}, -- Tirisfal Glades <--> Vengeance Landing
{{43, 0.590, 0.590}, {70, 0.777, 0.283}, 210, false, level_limit = 68}, -- Tirisfal Glades <--> Vengeance Landing
-- Unchecked
{{45, 0.549, 0.11}, {52, 0.495, 0.148}, 60}, -- Undercity <--> Silvermoon City
{{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
{{45, 0.549, 0.11}, {52, 0.495, 0.148}, 60}, -- Undercity <--> Silvermoon City
}
local static_alliance_routes =
{
-- Portals
{{21,0.440,0.782}, BLASTED_LANDS_PORTAL_IN, 60, true, level_limit = 58}, -- Darnassus --> Dark Portal
{{12,0.482,0.630}, BLASTED_LANDS_PORTAL_IN, 60, true, level_limit = 58}, -- Exodar --> Dark Portal
{{25,0.273,0.070}, BLASTED_LANDS_PORTAL_IN, 60, true, level_limit = 58}, -- Ironforge --> Dark Portal
{{36,0.490,0.874}, BLASTED_LANDS_PORTAL_IN, 60, true, level_limit = 58}, -- Stormwind --> Dark Portal
-- {{56, 0.886, 0.528}, STORMWIND_CITY_PORTAL_IN, 60, true, level_limit = 58}, -- Hellfire Peninsula --> Stormwind
{{21, 0.442, 0.788}, {12, 0.476, 0.598}, 60, true}, -- Darnassus --> Exodar
{{12, 0.476, 0.619}, {21, 0.435, 0.787}, 60, true}, -- Exodar --> Darnassus
-- Stormwind --> Tol Barad?
-- Stormwind --> Maelstrom?
-- Ships
{{36, 0.180, 0.285}, {65, 0.597, 0.694}, 210, false, level_limit = 68}, -- Stormwind <--> Valiance Keep
-- Deeprun Tram (Wonder if this needs to be handled differently because of it's nature but this will suffice for now)
{{36, 0.696, 0.311}, {25, 0.770, 0.513}, 180}, -- Stormwind <--> Ironforge
@ -63,6 +104,9 @@ local static_alliance_routes =
-- Partially checked
-- Unchecked (Do these still exist?)
{{10, 0.718, 0.565}, {51, 0.047, 0.636}, 210}, -- Theramore Isle <--> Menethil Harbor
{{51, 0.047, 0.571}, {70, 0.612, 0.626}, 210}, -- Menethil <--> Daggercap Bay
-- Nate's Cataclysm content
@ -72,16 +116,6 @@ local static_alliance_routes =
{{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
{{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
{{36,0.490,0.874}, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Stormwind --> Blasted Lands
}
local static_shared_routes =
@ -90,12 +124,14 @@ local static_shared_routes =
{{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
{{24, 0.551, 0.885}, {21, 0.369, 0.584}, 5}, -- Rut'Theran Village <--> Darnassus
{{60, 0.486, 0.420}, {64, 0.482, 0.345}, 60, true}, -- Shattrath --> Isle of Quel'Danas
{{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
-- Ships (To keep QH from self-destructing)
{{3, 0.203, 0.540}, {24, 0.522, 0.895}, 210}, -- Azuremyst Isle <--> Teldrassil
{{36, 0.223, 0.560}, {24, 0.550, 0.938}, 210}, -- Stormwind <--> Teldrassil
@ -105,6 +141,14 @@ local static_shared_routes =
{{67, 0.255, 0.514}, {8, 0.659, 0.498}, 5, true}, -- Dalaran --> Caverns of Time
-- Unchecked
{{40, 0.318, 0.503}, {32, 0.347, 0.84}, 130}, -- Burning Steppes <--> Searing Gorge
{{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
-- 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.484, 0.251}, 7200}, -- Eversong Woods <--> Sunwell
{{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
-- Nate's Cataclysm content
@ -130,20 +174,6 @@ local static_shared_routes =
{{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
-- 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.484, 0.251}, 7200}, -- Eversong Woods <--> Sunwell
-- More Alliance routes than anything, but without them theres no valid path to these areas for Horde characters.
{{40, 0.318, 0.503}, {32, 0.347, 0.84}, 130}, -- Burning Steppes <--> Searing Gorge
{{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
{{35, 0.45, 0.85}, {169, 0.60, 0.09}, 5}, -- Silverpine <--> Ruins of Gilneas
-- Wrath instance entrances
@ -243,7 +273,7 @@ local static_zone_transitions =
-- 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
{15, 1, 0.792, 0.017}, -- Azshara <--> Orgrimmar.Back
@ -415,13 +445,18 @@ QuestHelper:Assert(v[2], tostring(k) .. " is the key, v[2]. v[1] is " .. tostrin
end
end
-- Generating landing_db for potential use in adding Mage portals and Hearthstone to routing
local faction_db
local landing_db
if UnitFactionGroup("player") == "Alliance" then
faction_db = static_alliance_routes
landing_db = static_alliance_landings
else
faction_db = static_horde_routes
landing_db = static_horde_landings
end
-- Not adding landing_db or static_shared_landings here because it depend on implimentation
do_routes(faction_db)
do_routes(static_shared_routes)