local L = LibStub("AceLocale-3.0"):GetLocale("Carbonite")

Nx.GuideData [L["Flight Master"]] = {
	["Mode"] = 30
}

local FLIGHT_DATA = {
	["2,1942,45.42,30.52"] = L["Skymaster Sunwing, Tranquillien, Ghostlands"],
	["2,1413,51.5,30.34"] = L["Devrak, Crossroads, The Barrens"],
	["1,1444,30.24,43.25"] = L["Fyldren Moonfeather, Feathermoon, Feralas"],
	["1,1446,51.01,29.34"] = L["Bera Stonehammer, Gadgetzan, Tanaris"],
	["1,1431,77.49,44.29"] = L["Felicia Maline, Darkshire, Duskwood"],
	["0,1948,63.33,30.4"] = L["Maddix, Altar of Sha'tar, Shadowmoon Valley"],
	["1,1423,75.85,53.38"] = L["Khaelyn Steelwing, Light's Hope Chapel, Eastern Plaguelands"],
	["1,1419,65.54,24.34"] = L["Alexandra Constantine, Nethergarde Keep, Blasted Lands"],
	["0,1942,74.76,67.15"] = L["Kiz Coilspanner, Zul'Aman, Ghostlands"],
	["1,1417,45.75,46.1"] = L["Cedrik Prose, Refuge Pointe, Arathi Highlands"],
	["1,1946,41.28,29"] = L["Halu, Orebor Harborage, Zangarmarsh"],
	["2,1425,81.7,81.76"] = L["Gorkas, Revantusk Village, The Hinterlands"],
	["2,1427,34.84,30.88"] = L["Grisha, Thorium Point, Searing Gorge"],
	["2,1948,30.34,29.19"] = L["Drek'Gol, Shadowmoon Village, Shadowmoon Valley"],
	["0,1955,64.07,41.11"] = L["Nutral, Shattrath, Shattrath City"],
	["1,1437,9.49,59.68"] = L["Shellei Brondir, Menethil Harbor, Wetlands"],
	["2,1452,60.47,36.3"] = L["Yugrek, Everlook, Winterspring"],
	["2,1456,47,49.83"] = L["Tal, Thunder Bluff, Thunder Bluff"],
	["1,1946,67.83,51.47"] = L["Munci, Telredor, Zangarmarsh"],
	["1,1428,84.33,68.3"] = L["Borgus Stoutarm, Morgan's Vigil, Burning Steppes"],
	["0,1413,63.08,37.17"] = L["Bragok, Ratchet, The Barrens"],
	["1,1452,62.33,36.61"] = L["Maethrya, Everlook, Winterspring"],
	["2,1413,44.45,59.16"] = L["Omusa Thunderhorn, Camp Taurajo, The Barrens"],
	["1,1439,36.34,45.58"] = L["Caylais Moonfeather, Auberdine, Darkshore"],
	["1,1434,38.23,4.04"] = L["Nizzle, Rebel Camp, Stranglethorn Vale"],
	["1,1424,49.34,52.27"] = L["Darla Harris, Southshore, Hillsbrad Foothills"],
	["1,1949,61.15,70.44"] = L["Rip Pedalslam, Toshley's Station, Blade's Edge Mountains"],
	["1,1433,30.59,59.44"] = L["Ariena Stormfeather, Lakeshire, Redridge Mountains"],
	["2,1952,49.2,43.42"] = L["Kerna, Stonebreaker Hold, Terokkar Forest"],
	["2,1949,52.05,54.12"] = L["Unoke Tenderhoof, Thunderlord Stronghold, Blade's Edge Mountains"],
	["0,1957,48.36,25.07"] = L["Ohura, Shattered Sun Staging Area, Isle of Quel'Danas"],
	["1,1944,78.42,34.91"] = L["Runetog Wildhammer, Shatter Point, Hellfire Peninsula"],
	["0,1448,51.53,82.22"] = L["Gorrim, Emerald Sanctuary, Felwood"],
	["1,1944,25.19,37.24"] = L["Kuma, Temple of Telhamat, Hellfire Peninsula"],
	["0,1953,33.74,63.99"] = L["Krexcil, Area 52, Netherstorm"],
	["1,1949,37.82,61.39"] = L["Amerun Leafshade, Sylvanaar, Blade's Edge Mountains"],
	["2,1944,87.35,48.15"] = L["Vlagga Freyfeather, The Dark Portal, Hellfire Peninsula"],
	["1,1450,44.15,45.25"] = L["Silva Fil'naveth, Moonglade"],
	["0,1949,61.68,39.61"] = L["Fhyn Leafshadow, Evergrove, Blade's Edge Mountains"],
	["1,1450,48.1,67.37"] = L["Sindrayl, Moonglade, Moonglade"],
	["1,1425,11.07,46.15"] = L["Guthrum Thunderfist, Aerie Peak, The Hinterlands"],
	["2,1944,27.8,59.99"] = L["Innalia, Falcon Watch, Hellfire Peninsula"],
	["0,1953,65.2,66.81"] = L["Harpax, Cosmowrench, Netherstorm"],
	["2,1946,84.76,55.12"] = L["Gur'zil, Swamprat Post, Zangarmarsh"],
	["2,1418,3.99,44.78"] = L["Gorrik, Kargath, Badlands"],
	["0,1948,56.32,57.8"] = L["Alieshor, Sanctum of the Stars, Shadowmoon Valley"],
	["2,1949,76.37,65.93"] = L["Sky-Master Maxxor, Mok'Nathal Village, Blade's Edge Mountains"],
	["2,1442,45.12,59.85"] = L["Tharm, Sun Rock Retreat, Stonetalon Mountains"],
	["1,1443,64.66,10.54"] = L["Baritanas Skyriver, Nijel's Point, Desolace"],
	["1,1434,27.53,77.78"] = L["Gyll, Booty Bay, Stranglethorn Vale"],
	["2,1443,21.6,74.15"] = L["Thalon, Shadowprey Village, Desolace"],
	["1,1952,59.45,55.43"] = L["Furnan Skysoar, Allerian Stronghold, Terokkar Forest"],
	["2,1417,73.05,32.66"] = L["Urda, Hammerfall, Arathi Highlands"],
	["2,1445,35.56,31.88"] = L["Shardi, Brackenwall Village, Dustwallow Marsh"],
	["2,1944,56.29,36.25"] = L["Barley, Thrallmar, Hellfire Peninsula"],
	["2,1946,33.07,51.08"] = L["Du'ga, Zabra'jin, Zangarmarsh"],
	["2,1454,45.12,63.91"] = L["Doras, Orgrimmar, Orgrimmar"],
	["2,1421,45.62,42.6"] = L["Karos Razok, The Sepulcher, Silverpine Forest"],
	["1,1948,37.61,55.45"] = L["Brubeck Stormfoot, Wildhammer Stronghold, Shadowmoon Valley"],
	["2,1451,48.68,36.68"] = L["Runk Windtamer, Cenarion Hold, Silithus"],
	["2,1448,34.44,53.96"] = L["Brakkar, Bloodvenom Post, Felwood"],
	["1,1944,54.68,62.36"] = L["Flightmaster Krill Bitterhue, Honor Hold, Hellfire Peninsula"],
	["1,1951,54.17,75.06"] = L["Furgu, Telaar, Nagrand"],
	["2,1944,61.65,81.21"] = L["Amilya Airheart, Spinebreaker Ridge, Hellfire Peninsula"],
	["0,1445,42.82,72.43"] = L["Dyslix Silvergrub, Mudsprocket, Dustwallow Marsh"],
	["2,1951,57.19,35.25"] = L["Gursha, Garadar, Nagrand"],
	["0,1953,45.31,34.87"] = L["Grennik, The Stormspire, Netherstorm"],
	["2,1446,51.6,25.44"] = L["Bulkrek Ragefist, Gadgetzan, Tanaris"],
	["0,1423,83.89,50.43"] = L["Grimwing, Acherus: The Ebon Hold, Eastern Plaguelands"],
	["2,1424,60.14,18.62"] = L["Zarise, Tarren Mill, Hillsbrad Foothills"],
	["1,1440,34.41,47.98"] = L["Daelyshia, Astranaar, Ashenvale"],
	["1,1453,70.96,72.51"] = L["Dungar Longdrink, Stormwind, Stormwind City"],
	["2,1441,45.14,49.11"] = L["Nyse, Freewind Post, Thousand Needles"],
	["2,1428,65.69,24.21"] = L["Vahgruk, Flame Crest, Burning Steppes"],
	["1,1944,87.36,52.43"] = L["Amish Wildhammer, The Dark Portal, Hellfire Peninsula"],
	["2,1434,32.54,29.35"] = L["Thysta, Grom'gol, Stranglethorn Vale"],
	["2,1450,32.09,66.64"] = L["Faustron, Moonglade, Moonglade"],
	["1,1432,33.94,50.97"] = L["Thorgrum Borrelson, Thelsamar, Loch Modan"],
	["1,1448,62.49,24.24"] = L["Mishellena, Talonbranch Glade, Felwood"],
	["2,1941,54.36,50.72"] = L["Skymistress Gloaming, Silvermoon City, Eversong Woods"],
	["2,1447,21.96,49.63"] = L["Kroum, Valormok, Azshara"],
	["2,1435,46.07,54.82"] = L["Breyk, Stonard, Swamp of Sorrows"],
	["1,1442,36.44,7.18"] = L["Teloren, Stonetalon Peak, Stonetalon Mountains"],
	["2,1440,73.18,61.58"] = L["Vhulgra, Splintertree Post, Ashenvale"],
	["2,1444,75.45,44.36"] = L["Shyn, Camp Mojache, Feralas"],
	["1,1950,57.68,53.87"] = L["Laando, Blood Watch, Bloodmyst Isle"],
	["1,1436,56.55,52.64"] = L["Thor, Sentinel Hill, Westfall"],
	["2,1423,74.5,51.19"] = L["Georgia, Light's Hope Chapel, Eastern Plaguelands"],
	["1,1947,68.45,63.7"] = L["Stephanos, The Exodar, The Exodar"],
	["2,1450,44.28,45.89"] = L["Bunthen Plainswind, Moonglade"],
	["1,1422,42.92,85.06"] = L["Bibilfaz Featherwhistle, Chillwind Camp, Western Plaguelands"],
	["1,1427,37.94,30.86"] = L["Lanie Reed, Thorium Point, Searing Gorge"],
	["1,1451,50.58,34.46"] = L["Cloud Skydancer, Cenarion Hold, Silithus"],
	["1,1455,55.5,47.79"] = L["Gryth Thurden, Ironforge, Ironforge"],
	["2,1440,12.24,33.8"] = L["Andruk, Zoram'gar Outpost, Ashenvale"],
	["1,1438,58.4,94"] = L["Vesprystus, Rut'theran Village, Teldrassil"],
	["2,1434,26.87,77.1"] = L["Gringer, Booty Bay, Stranglethorn Vale"],
	["1,1447,11.9,77.61"] = L["Jarrodenus, Talrendis Point, Azshara"],
	["1,1445,67.48,51.3"] = L["Baldruc, Theramore, Dustwallow Marsh"],
	["0,1449,45.23,5.83"] = L["Gryfe, Marshal's Refuge, Un'Goro Crater"],
	["1,1444,89.5,45.85"] = L["Thyssiana, Thalanaar, Feralas"],
	["2,1458,63.25,48.6"] = L["Michael Garrett, Undercity, Undercity"],
	["1,1440,85.09,43.44"] = L["Suralais Farwind, Forest Song, Ashenvale"],
}
local NX_FLIGHT_LOC = { ["1"] = L["Alliance Flight"], ["2"] = L["Horde Flight"], ["0"] = L["Neutral Flight"], }
Nx.NPCData={}
for k, v in pairs(FLIGHT_DATA) do
	local side, zon, x, y, level = Nx.Split(",", k)
	if not level then level = 0 end
	local name = v
	name = NX_FLIGHT_LOC[side].."|"..name
	x,y,zon=tonumber(x),tonumber(y),tonumber(zon)
	table.insert(Nx.NPCData, format("%s|%s|%s|%s|%s|%s",side,name,zon,x,y,level))
	local i = #Nx.NPCData
	if not Nx.GuideData[L["Flight Master"]][zon] then
		Nx.GuideData[L["Flight Master"]][zon] = format("%s,%s,%s,%s,%s",side,x,y,level,i)
	else
		Nx.GuideData[L["Flight Master"]][zon]=Nx.GuideData[L["Flight Master"]][zon] .. format("|%s,%s,%s,%s,%s",side,x,y,level,i)
	end
end
FLIGHT_DATA = nil
NX_FLIGHT_LOC=nil
Nx.FlightConnection=""
