1
0
Bifurcation 0

Updated Pathfinding.lua to expand transitions into Cataclysm areas. There's more work to be done, but I'd have a better feel once I've actually been in the new areas. Gonna work on my Orc for a bit. Still to do - add code specifically for reputation-specific transitions.

Cette révision appartient à :
lonadar 2011-03-22 23:20:02 +00:00
Parent 32ffc8bfb2
révision 42902a8159
1 fichiers modifiés avec 75 ajouts et 80 suppressions

Voir le fichier

@ -1,14 +1,9 @@
QuestHelper_File["pathfinding.lua"] = "4.0.1.$svnversion$"
QuestHelper_Loadtime["pathfinding.lua"] = GetTime()
-- Tol Barad and Tol Barad Peninsula not the same.
-- The Tol Barad to Orgrimmar portal is the one that is just in front of the Baradin Hold raid entrance. This is only available to Horde when they control TB.
-- Dependant aka Winterspring
-- The Tol Barad Peninsula to Orgrimmar portal is the one in the Horde encampment on Tol Barad Peninsula. This is available to Horde at all times.
-- So is there a similar Alliance route?
-- Update flying for guild perk speed bonus.
-- Zephyr - 60 0.747 0.316 to CoT is reverred with CoT
-- Update flying for Mount Up guild achievement.
-- Telport/Portal spell for Tol Barad. Same location as portals in the Earthshrines in the cities?
-- If a transition requires a quest, and the questgiver is at the initial portal location, not implimenting a requirement.
-- This section for whenever from-player's-location-to pathing can be implimented.
@ -19,6 +14,9 @@ QuestHelper_Loadtime["pathfinding.lua"] = GetTime()
-- local porttime = 15
QueryQuestsCompleted();
local dependancy_quest_list = GetQuestsCompleted()
local static_alliance_landings =
{
{12, 0.476, 0.598, "Exodar via portal"}, -- Exodar
@ -28,7 +26,6 @@ local static_alliance_landings =
{10, 0.660, 0.490, "Theramore via portal"}, -- Theramore
}
local static_horde_landings =
{
{1, 0.483, 0.645, "Orgrimmar via portal"}, -- Orgrimmar
@ -38,7 +35,6 @@ local static_horde_landings =
{46, 0.498, 0.558, "Stonard via portal"}, -- Stonard
}
local static_shared_landings =
{
{67, 0.559, 0.468, "Dalaran via portal"}, -- Dalaran
@ -46,7 +42,6 @@ local static_shared_landings =
-- Need Tol Barad Port In coordinates
}
if IsSpellKnown(18960) then
local static_druid_landings = {20,0.563,0.324, "Moonglade via spell"} -- Moonglade landing
end
@ -58,12 +53,15 @@ end
-- Contingent on player's faction controlling the zone
-- {{74, 0.491, 0.153}, {67, 0.268, 0.447}, 5, true}, -- Wingergrasp Keep --> Dalaran
-- {{175, 0.472, 0.519}, ORGRIMMAR_CATPORTAL_IN, 5, true}, -- Tol Barad --> Orgrimmar (If Horde Controlled)
-- {{175, 0.472, 0.519}, STORMWIND_CATPORTAL_IN, 5, true}, -- Tol Barad --> Stormwind (If Alliance Controlled)
-- end storage
local BLASTED_LANDS_PORTAL_IN = {33, 0.539, 0.461, "Blasted Lands via portal"}
local ORGRIMMAR_CATPORTAL_IN = {20, 0.563, 0.324, "Orgrimmar via portal"}
local ORGRIMMAR_CATPORTAL_IN = {1, 0.500, 0.377, "Orgrimmar via portal"}
-- local STORMWIND_CATPORTAL_IN
local static_horde_routes =
{
@ -78,16 +76,43 @@ local static_horde_routes =
{{45, 0.549, 0.113}, {52, 0.495, 0.148}, 15}, -- Undercity <--> Silvermoon City
{{56, 0.886, 0.477}, {1, 0.483, 0.645}, 5, true}, -- Hellfire Peninsula --> Orgrimmar
{{184, 0.736, 0.535}, ORGRIMMAR_CATPORTAL_IN, 5, true}, -- Twilight Highlands --> Orgrimmar
{{1, 0.475, 0.392}, {176, 0.560, 0.799}, 5, false, level_limit = 85}, -- Orgrimmar <--> Tol Barad
-- Orgrimmar --> Maelstrom
{{1, 0.475, 0.392}, {176, 0.560, 0.799}, 5, false, level_limit = 85}, -- Orgrimmar <--> Tol Barad Peninsula
-- Not sure of the distinction here
-- Tol Barad Peninsula to Orgrimmar portal = 176,0.563,0.797
-- Tol Barad to Orgrimmar portal = 175,0.472,0.519 (Only if Horde controlled)
-- Okay, I give. Since I haven't actually been through these portals, I don't really have a frame
-- of reference, but from everything I can see, there are a jumble of dependancies woven throughout
-- the quest chains that open the connections from Cataclysm to and from Orgrimmar, and likewise
-- Stormwind. For the time being, I'm just opening the portals, but with level requirements based
-- on the starting levels for the quest chains, under the assumption that before you could use any
-- of these portals, you're going to have started the quest chain, which can't happen before the
-- listed level. Once I've run these myself and understand just what's going on, then I can start
-- tying them to the proper quest-completion dependancy.
-- From what I understand, at some point a portal from Orgrimmar to the zone opens in the EarthShrine
-- area in Orgrimmar. When exactly is unclear. Some zones, but not all, have a return portal.
-- This, too, is unclear.
-- Orgrimmar --> Temple of Earth (Aqua)
-- Level limit because the quest to open requires level 82.
{{179, 0.509, 0.531}, ORGRIMMAR_CATPORTAL_IN, 5, true}, -- Temple of Earth (Aqua) --> Orgrimmar
{{1, 0.508, 0.363}, {179, 0.506, 0.529}, 5, true, level_limit = 82}, -- Orgrimmar --> Deepholm
-- Level limit because the quest to open requires level 82.
{{1, 0.511, 0.383}, {198, 0.635, 0.234}, 5, true, level_limit = 80}, -- Orgrimmar --> Mount Hyjal
-- Level limit because the quest to open requires level 80.
{{1, 0.502, 0.394}, {184, 0.736, 0.534}, 5, true, level_limit = 84}, -- Orgrimmar --> Twilight Highlands
-- Level limit because the quest to open requires level 84.
{{1, 0.489, 0.386}, {164, 0.549, 0.342}, 5, true, level_limit = 83}, -- Orgrimmar --> Uldum
-- Level limit because the quest to open requires level 83.
{{1, 0.492, 0.365}, {165, 0.514, 0.609}, 5, true, level_limit = 80}, -- Orgrimmar --> Vashj'ir
-- Level limit because the quest to open requires level 80.
-- Zepplins
{{1, 0.526, 0.529}, {168, 0.372, 0.525}, 210}, -- Orgrimmar <--> Grom'gol Base Camp
@ -97,6 +122,11 @@ local static_horde_routes =
{{43, 0.619, 0.591}, {168, 0.374, 0.509}, 210}, -- Tirisfal Glades <--> Grom'gol Base Camp
{{43, 0.590, 0.590}, {70, 0.777, 0.282}, 210}, -- Tirisfal Glades <--> Vengeance Landing
-- Ships
-- {{184, 0.735, 0.528} {184, 0.767, 0.152}, 210}, -- Dragonmaw Port <--> Krazzworks
-- QuestHelper does not appear to like transitions from within the same zone. Gonna have to figure this out.
}
@ -113,34 +143,35 @@ local static_alliance_routes =
{{12, 0.476, 0.619}, {21, 0.435, 0.787}, 5, true}, -- Exodar --> Darnassus
-- Stormwind --> Tol Barad?
-- Stormwind --> Maelstrom?
{{36, 0.734, 0.195}, {179, 0.487, 0.536}, 5, true, level_limit = 82}, -- Stormwind --> Temple of Earth (Amber)
-- Level limit because the quest to open requires level 82.
{{179, 0.486, 0.537}, {36, 0.745, 0.183}, 5, true}, -- Temple of Earth (Amber) --> Stormwind
-- Stormwind <--> Deepholm
-- Stormwind <--> Mount Hyjal
-- Stormwind <--> Twilight Highlands
-- Stormwind <--> Uldum
-- Stormwind <--> Vashj'ir
-- Ships
{{36, 0.180, 0.285}, {65, 0.597, 0.694}, 210}, -- 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
-- 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
{{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.)
}
local static_shared_routes =
@ -148,25 +179,27 @@ local static_shared_routes =
-- Portals
{{67, 0.268, 0.447}, {67, 0.240, 0.394}, 5}, -- Dalaran (Violet Citadel) <--> Dalaran (Purple Parlor)
-- Dependant on Quest #12790
{{67, 0.559, 0.468}, {66, 0.158, 0.428}, 5}, -- Dalaran <--> Crystalsong Forest
{{67, 0.559, 0.468}, {66, 0.158, 0.428}, 5, false, level_limit = 68}, -- Dalaran <--> Crystalsong Forest
{{24, 0.551, 0.885}, {21, 0.369, 0.584}, 5}, -- Rut'Theran Village <--> Darnassus
{{33, 0.550, 0.541}, {56, 0.898, 0.502}, 5}, -- Blasted Lands <--> Hellfire Peninsula (Dark Portal)
{{67, 0.255, 0.514}, {8, 0.652, 0.498}, 5, true}, -- Dalaran --> Caverns of Time
{{60, 0.486, 0.420}, {64, 0.482, 0.345}, 5, true}, -- Shattrath --> Isle of Quel'Danas
{{60, 0.747, 0.316}, {8, 0.652, 0.498}, 5, true}, -- Shattrath --> Caverns of Time
-- Requires Revered with Keepers of Time
-- Ships
{{68, 0.497, 0.784}, {70, 0.234, 0.578}, 210}, -- Moa'ki <--> Kamagua
{{68, 0.479, 0.788}, {65, 0.789, 0.537}, 210}, -- Moa'ki <--> Unu'pe
{{174, 0.390, 0.670}, {11, 0.702, 0.733}, 210}, -- Booty Bay <--> Ratchet
-- Leave here to keep QH from self-destructing
{{24, 0.522, 0.895}, {3, 0.203, 0.540}, 210}, -- Teldrassil <--> Azuremyst Isle
{{24, 0.550, 0.938}, {36, 0.223, 0.560}, 210}, -- Teldrassil <--> Stormwind
-- Unchecked
{{40, 0.318, 0.503}, {32, 0.347, 0.84}, 130}, -- Burning Steppes <--> Searing Gorge
@ -266,76 +299,38 @@ local dark_portal_route = {{33, 0.550, 0.541}, {56, 0.898, 0.502}, 60}
-- Cataclysm Quest-dependant static routes
-- STILL WORKING ON THESE
-- STILL WORKING ON THESE. See Notes under Static_Horde.
-- for k, v in ipairs(dependancy_quest_list) do
-- if v[1] == 26709 then table.insert(static_shared_routes, {{179, 0.493, 0.504}, {179, 0.571, 0.135}, 5}) -- Temple of Earth <--> Therazane's Throne
-- Requires Honored with Therazane?
-- end
-- Horde
-- Orgrimmar to Uldum portal = 1,0.489,0.386
-- Orgrimmar to Uldum portal landing = 164,0.549,0.342 (All quests completed)
-- Orgrimmar to Mount Hyjal portal = 1,0.511,0.383
-- Orgrimmar to Mount Hyjal portal landing = 198,0.635,0.234
-- Orgrimmar to Twilight Highlands portal = 1,0.502,0.394
-- Orgrimmar to Twilight Highlands portal landing = 184,0.736,0.534 (All quests completed)
-- Orgrimmar to Vashj'ir portal = 1,0.492,0.365
-- Orgrimmar to Vashj'ir portal landing = 165,0.514,0.609 (All quests completed)
-- Orgrimmar to Deepholm portal = 1,0.508,0.363
-- Orgrimmar to Deepholm portal landing = 179,0.506,0.529
-- Temple of Earth to Therazane's Throne portal = 179,0.493,0.503
-- Temple of Earth to Therazane's Throne portal landing = 179,0.570,0.135
-- Therazane's Throne to Temple of Earth portal = 179,0.572,0.136
-- Therazane's Throne to Temple of Earth portal landing = 179,0.493,0.506
-- Temple of Earth to Orgrimmar portal = 179,0.509,0.531
-- Dragonmaw Port to The Krazzworks dock = 184,0.735,0.528 (310% Flying mount with 20% Mount Speed guild perk moves faster than zepplin)
-- The Krazzworks to Dragonmaw Port dock = 184,0.767,0.152
-- Dragonmaw Port to Orgrimmar portal = 184,0.736,0.535
-- Cataclysm zone portal landing = 1,0.500,0.377 (For the few zones that have a portal back to Orgrimmar)
-- Alliance
-- Neutral
-- If Quest 26840 then Hyjal --> Orgrimmar
local static_zone_transitions =
{
-- Eastern Kingdoms
-- Kalimdor
--Outland
--Northrend
{65, 72, 0.527, 0.322}, -- Borean Tundra <--> Scholazar Basin
--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 (Back)
{158, 5, 0.687, 0.2}, -- Insect Kingdom I Can't Spell <--> Silithus
{158, 5, 0.687, 0.2}, -- Ahn'Qiraj <--> Silithus
{168, 174, 0.50, 0.61}, -- Northern Stranglethorn <--> Cape of Stranglethorn
{38, 168, 0, 0}, -- Stranglethorn World Map Wonkiness
{38, 168, 0, 0}, -- Stranglethorn Wonkiness
-- {{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