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

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

local FLIGHT_DATA = {
	["2,1413,44.4,59"] = L["Omusa Thunderhorn, Camp Taurajo, The Barrens"],
	["0,1413,63,37.2"] = L["Bragok, Ratchet, The Barrens"],
	["2,1413,51.5,30.34"] = L["Devrak, Crossroads, The Barrens"],
	["1,1417,45.6,46"] = L["Cedrik Prose, Refuge Pointe, Arathi"],
	["2,1417,73,32.6"] = L["Urda, Hammerfall, Arathi"],
	["2,1418,4,44.8"] = L["Gorrik, Kargath, Badlands"],
	["1,1419,65.4,24.4"] = L["Alexandra Constantine, Nethergarde Keep, Blasted Lands"],
	["2,1421,45.6,42.4"] = L["Karos Razok, The Sepulcher, Silverpine Forest"],
	["1,1422,42.8,85"] = L["Bibilfaz Featherwhistle, Chillwind Camp, Western Plaguelands"],
	["1,1423,81.6,59.2"] = L["Khaelyn Steelwing, Light's Hope Chapel, Eastern Plaguelands"],
	["2,1423,80.2,57"] = L["Georgia, Light's Hope Chapel, Eastern Plaguelands"],
	["2,1424,60.2,18.6"] = L["Zarise, Tarren Mill, Hillsbrad"],
	["1,1424,49.4,52.2"] = L["Darla Harris, Southshore, Hillsbrad"],
	["2,1425,81.6,81.8"] = L["Gorkas, Revantusk Village, The Hinterlands"],
	["1,1425,11,46"] = L["Guthrum Thunderfist, Aerie Peak, The Hinterlands"],
	["1,1427,37.8,30.6"] = L["Lanie Reed, Thorium Point, Searing Gorge"],
	["2,1427,34.8,30.8"] = L["Grisha, Thorium Point, Searing Gorge"],
	["1,1428,84.4,68.2"] = L["Borgus Stoutarm, Morgan's Vigil, Burning Steppes"],
	["2,1428,65.6,24.2"] = L["Vahgruk, Flame Crest, Burning Steppes"],
	["1,1431,77.4,44.4"] = L["Felicia Maline, Darkshire, Duskwood"],
	["1,1432,33.8,50.8"] = L["Thorgrum Borrelson, Thelsamar, Loch Modan"],
	["1,1433,30.6,59.4"] = L["Ariena Stormfeather, Lakeshire, Redridge"],
	["2,1434,32.4,29.2"] = L["Thysta, Grom'gol, Stranglethorn"],
	["2,1434,26.8,77"] = L["Gringer, Booty Bay, Stranglethorn"],
	["1,1434,27.4,77.8"] = L["Gyll, Booty Bay, Stranglethorn"],
	["1,1434,38.2,4"] = L["Nizzle, Rebel Camp, Stranglethorn Vale"],
	["2,1435,46,54.6"] = L["Breyk, Stonard, Swamp of Sorrows"],
	["1,1436,56.4,52.6"] = L["Thor, Sentinel Hill, Westfall"],
	["1,1437,9.4,59.6"] = L["Shellei Brondir, Menethil Harbor, Wetlands"],
	["1,1438,58.4,94"] = L["Vesprystus, Rut'theran Village, Teldrassil"],
	["1,1439,36.4,45.6"] = L["Caylais Moonfeather, Auberdine, Darkshore"],
	["1,1440,34.4,48"] = L["Daelyshia, Astranaar, Ashenvale"],
	["2,1440,12.2,33.8"] = L["Andruk, Zoram'gar Outpost, Ashenvale"],
	["2,1440,73.2,61.6"] = L["Vhulgra, Splintertree Post, Ashenvale"],
	["1,1440,85,43.4"] = L["Suralais Farwind, Forest Song, Ashenvale"],
	["2,1441,45,49.2"] = L["Nyse, Freewind Post, Thousand Needles"],
	["2,1442,45.2,59.8"] = L["Tharm, Sun Rock Retreat, Stonetalon Mountains"],
	["1,1442,36.4,7.2"] = L["Teloren, Stonetalon Peak, Stonetalon Mountains"],
	["1,1443,64.6,10.4"] = L["Baritanas Skyriver, Nijel's Point, Desolace"],
	["2,1443,21.6,74"] = L["Thalon, Shadowprey Village, Desolace"],
	["1,1444,89.4,45.8"] = L["Thyssiana, Thalanaar, Feralas"],
	["1,1444,30.2,43.2"] = L["Fyldren Moonfeather, Feathermoon, Feralas"],
	["2,1444,75.4,44.2"] = L["Shyn, Camp Mojache, Feralas"],
	["1,1445,67.4,51.2"] = L["Baldruc, Theramore, Dustwallow Marsh"],
	["2,1445,35.6,31.8"] = L["Shardi, Brackenwall Village, Dustwallow Marsh"],
	["0,1445,42.8,72.4"] = L["Dyslix Silvergrub, Mudsprocket, Dustwallow Marsh"],
	["1,1446,51,29.2"] = L["Bera Stonehammer, Gadgetzan, Tanaris"],
	["2,1446,51.6,25.4"] = L["Bulkrek Ragefist, Gadgetzan, Tanaris"],
	["2,1447,22,49.6"] = L["Kroum, Valormok, Azshara"],
	["1,1447,11.8,77.4"] = L["Jarrodenus, Talrendis Point, Azshara"],
	["2,1448,34.4,53.8"] = L["Brakkar, Bloodvenom Post, Felwood"],
	["1,1448,62.4,24.2"] = L["Mishellena, Talonbranch Glade, Felwood"],
	["0,1448,51.4,82.2"] = L["Gorrim, Emerald Sanctuary, Felwood"],
	["0,1449,45.2,5.8"] = L["Gryfe, Marshal's Refuge, Un'Goro Crater"],
	["1,1450,48,67.2"] = L["Sindrayl, Moonglade, Moonglade"],
	["2,1450,32.2,66.4"] = L["Faustron, Moonglade, Moonglade"],
	["1,1451,50.6,34.4"] = L["Cloud Skydancer, Cenarion Hold, Silithus"],
	["2,1451,48.8,36.6"] = L["Runk Windtamer, Cenarion Hold, Silithus"],
	["1,1452,62.2,36.6"] = L["Maethrya, Everlook, Winterspring"],
	["2,1452,60.4,36.4"] = L["Yugrek, Everlook, Winterspring"],
	["1,1453,66.2,62.4"] = L["Dungar Longdrink, Stormwind, Elwynn"],
	["2,1454,45.2,63.8"] = L["Doras, Orgrimmar, Durotar"],
	["1,1455,55.6,48"] = L["Gryth Thurden, Ironforge, Dun Morogh"],
	["2,1456,46.8,50"] = L["Tal, Thunder Bluff, Mulgore"],
	["2,1458,63.4,48.6"] = L["Michael Garrett, Undercity, Tirisfal"],
	["2,1941,54.4,50.8"] = L["Skymistress Gloaming, Silvermoon City, Eversong Woods"],
	["2,1942,45.4,30.6"] = L["Skymaster Sunwing, Tranquillien, Ghostlands"],
	["0,1942,74.6,67"] = L["Kiz Coilspanner, Zul'Aman, Ghostlands"],
	["2,1944,56.2,36.2"] = L["Barley, Thrallmar, Hellfire Peninsula"],
	["1,1944,54.6,62.4"] = L["Flightmaster Krill Bitterhue, Honor Hold, Hellfire Peninsula"],
	["1,1944,25.2,37.2"] = L["Kuma, Temple of Telhamat, Hellfire Peninsula"],
	["2,1944,87.4,48.2"] = L["Vlagga Freyfeather, The Dark Portal, Hellfire Peninsula"],
	["1,1944,87.4,52.4"] = L["Amish Wildhammer, The Dark Portal, Hellfire Peninsula"],
	["2,1944,27.8,60"] = L["Innalia, Falcon Watch, Hellfire Peninsula"],
	["2,1944,61.6,81.2"] = L["Amilya Airheart, Spinebreaker Ridge, Hellfire Peninsula"],
	["1,1944,78.4,35"] = L["Runetog Wildhammer, Shatter Point, Hellfire Peninsula"],
	["1,1946,67.8,51.4"] = L["Munci, Telredor, Zangarmarsh"],
	["2,1946,33,51"] = L["Du'ga, Zabra'jin, Zangarmarsh"],
	["2,1946,84.8,55"] = L["Gur'zil, Swamprat Post, Zangarmarsh"],
	["1,1946,41.2,28.8"] = L["Halu, Orebor Harborage, Zangarmarsh"],
	["1,1947,68.6,63.4"] = L["Stephanos, The Exodar, The Exodar"],
	["1,1948,37.6,55.4"] = L["Brubeck Stormfoot, Wildhammer Stronghold, Shadowmoon Valley"],
	["2,1948,30.2,29.2"] = L["Drek'Gol, Shadowmoon Village, Shadowmoon Valley"],
	["1,1949,37.8,61.4"] = L["Amerun Leafshade, Sylvanaar, Blade's Edge Mountains"],
	["2,1949,52,54.2"] = L["Unoke Tenderhoof, Thunderlord Stronghold, Blade's Edge Mountains"],
	["1,1949,61,70.4"] = L["Rip Pedalslam, Toshley's Station, Blade's Edge Mountains"],
	["0,1949,61.6,39.6"] = L["Fhyn Leafshadow, Evergrove, Blade's Edge Mountains"],
	["2,1949,76.4,65.8"] = L["Sky-Master Maxxor, Mok'Nathal Village, Blade's Edge Mountains"],
	["1,1950,57.6,54"] = L["Laando, Blood Watch, Bloodmyst Isle"],
	["1,1951,54.2,75"] = L["Furgu, Telaar, Nagrand"],
	["2,1951,57.2,35.2"] = L["Gursha, Garadar, Nagrand"],
	["2,1952,49.2,43.4"] = L["Kerna, Stonebreaker Hold, Terokkar Forest"],
	["1,1952,59.4,55.4"] = L["Furnan Skysoar, Allerian Stronghold, Terokkar Forest"],
	["0,1953,33.8,64"] = L["Krexcil, Area 52, Netherstorm"],
	["0,1953,45.2,34.8"] = L["Grennik, The Stormspire, Netherstorm"],
	["0,1953,65.2,66.8"] = L["Harpax, Cosmowrench, Netherstorm"],
	["0,1955,63.8,41"] = L["Nutral, Shattrath, Terokkar Forest"],
	["0,1948,63.33,30.4"] = L["Maddix, Altar of Sha'tar, Shadowmoon Valley"],
	["0,1957,48.36,25.07"] = L["Ohura, Shattered Sun Staging Area, Isle of Quel'Danas"],
	["0,1948,56.32,57.8"] = L["Alieshor, Sanctum of the Stars, Shadowmoon Valley"]
}
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=""
