1
0
Bifurcation 0

Updating pathfinding.lua in anticipation of a new release version. Passed 100% load test.

Cette révision appartient à :
lonadar 2011-02-13 22:29:20 +00:00
Parent b13900cf4d
révision 6d4ec7e785
1 fichiers modifiés avec 69 ajouts et 63 suppressions

Voir le fichier

@ -4,6 +4,10 @@ QuestHelper_Loadtime["pathfinding.lua"] = GetTime()
local ORGRIMMAR_PORTAL = {1,0.471,0.618, "Orgrimmar portal site"}
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 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"}
@ -11,55 +15,52 @@ local EXODAR_PORTAL = {12,0.476,0.598, "Exodar portal site"}
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 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 THUNDER_BLUFF_PORTAL = {23,0.222,0.168, "Thunder Bluff 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 =
{
-- Portals
{ORGRIMMAR_PORTAL, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Orgrimmar --> Dark Portal
-- Portals
{ORGRIMMAR_PORTAL, BLASTED_LANDS_PORTAL, 60, true, level_limit = 58}, -- Orgrimmar --> Dark Portal
-- 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
-- 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.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
-- 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
-- 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
-- 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
-- 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
}
local static_alliance_routes =
{
-- Portals
-- Portals
-- Partially checked
-- Partially checked
@ -71,8 +72,8 @@ 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
-- 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
@ -85,17 +86,23 @@ local static_alliance_routes =
local static_shared_routes =
{
-- 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
-- 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
{{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
-- 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
-- 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
@ -118,27 +125,25 @@ local static_shared_routes =
{{183, 0.5, 0.5}, {182, 0.5, 0.5}, 86400}, -- The Maelstrom Continent <--> The Maelstrom (Meta info for when major error is fixed.)
{{183, 0.5, 0.5}, {1, 0.5, 0.5}, 86400}, -- The Maelstrom Continent <--> Orgrimmar (Meta info for when major error is fixed.)
{{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
-- Unchecked
-- 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
{{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.
{{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
{{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
{{35, 0.45, 0.85}, {169, 0.60, 0.09}, 5}, -- Silverpine <--> Ruins of Gilneas
-- Wrath instance entrances
@ -208,24 +213,26 @@ local dark_portal_route = {{33, 0.550, 0.541}, {56, 0.898, 0.502}, 60}
local static_zone_transitions =
{
-- Eastern Kingdoms
-- Eastern Kingdoms
-- Kalimdor
--Outland
--Northrend
--Cataclysm zones
-- Kalimdor
--Outland
--Northrend
(65, 72, 0.527, 0.322}, -- Borean Tundra <--> Scholazar Basin
--Cataclysm zones
@ -233,16 +240,16 @@ 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
-- 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
-- {{174, 0.61, 0.20}, {168, 0.50, 0.74}, 5}, -- CoS <--> NS (Both part of STV)
-- {{174, 0.61, 0.20}, {168, 0.50, 0.74}, 5}, -- CoS <--> NS (Both part of STV)
{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
@ -321,7 +328,6 @@ local static_zone_transitions =
{55, 57, 0.341, 0.098}, -- Terokkar Forest <--> Zangarmarsh
-- Northrend
{65, 72, 0.547, 0.059}, -- Borean Tundra <--> Sholazar Basin
{65, 68, 0.967, 0.359}, -- Borean Tundra <--> Dragonblight
{74, 72, 0.208, 0.191}, -- Wintergrasp <--> Sholazar
{68, 74, 0.250, 0.410}, -- Dragonblight <--> Wintergrasp