CorelliaTyrenaScreenPlay = CityScreenPlay:new {
	numberOfActs = 1,

	screenplayName = "CorelliaTyrenaScreenPlay",

	planet = "corellia",

	gcwMobs = {
		{"command_security_guard", "rebel_surface_marshall", -5281.9, 21, -2574.6, 80, 0, "", "", true},
		{"command_security_guard", "rebel_surface_marshall", -5112.1,21,-2279.3,79.0023,0, "", "", true},
		{"command_security_guard", "rebel_surface_marshall", -5048.7,21,-2299.5,256.201,0, "", "", true},
		{"dark_trooper", "rebel_commando", -4941.2,20.8719,-2522,214.459,0, "", ""},
		{"dark_trooper", "rebel_commando", -5381.8,20.7451,-2741.1,130.004,0, "", ""},
		{"dark_trooper", "rebel_commando", -5565.3,20.6891,-2852.06,298.056,0, "", ""},
		{"dark_trooper", "rebel_commando", -4975.9,20.9989,-2323.7,76.0022,0, "", ""},
		{"dark_trooper", "rebel_commando", -5347.92,21.0054,-2440.31,351.468,0, "npc_imperial", "neutral"},
		{"dark_trooper", "rebel_commando", -5654.8,21.1047,-2805.7,191.006,0, "", ""},
		{"elite_sand_trooper", "rebel_lance_corporal", -5613.95,21,-2585.97,41.9991,0, "npc_imperial", "neutral"},
		{"elite_sand_trooper", "rebel_lance_corporal", -5606,21.6,-2777.2,82,0, "", ""},
		{"imperial_army_captain", "rebel_army_captain", -5298.7,21,-2545.6,32,0, "", "", true},
		{"imperial_corporal", "rebel_corporal", -5590.48,20.3776,-2854.51,311.192,0, "npc_imperial", "neutral", true},
		{"imperial_noncom", "network_leader", -5207.41,21.425,-2247.49,237.999,0, "npc_imperial", "conversation"},
		{"scout_trooper", "rebel_scout", -5128.84,21,-2652.86,83.2245,0, "", ""},
		{"scout_trooper", "rebel_scout", -5208.06,21.6077,-2246.46,296.757,0, "", ""},
		{"scout_trooper", "rebel_scout", -5194.27,20.9887,-2653.85,274.172,0, "", ""},
		{"scout_trooper", "rebel_scout", -5468.4,21.1828,-2841.6,175.005,0, "", ""},
		{"specialist_noncom", "rebel_obscureops_agent", -5342.53,21,-2468.78,360.011,0, "npc_imperial", "conversation", true},
		{"storm_commando", "rebel_commando", -5055.1,21,-2616,137.004,0, "", ""},
		{"storm_commando", "rebel_trooper", -5250.6,21,-2327.7,42.0012,0, "", ""},
		{"stormtrooper", "rebel_trooper", -4944.3,21,-2387.8,257.008,0, "", "", true},
		{"stormtrooper", "rebel_trooper", -4945.7,21,-2383.1,249.007,0, "", ""},
		{"stormtrooper", "rebel_trooper", -4936.1,21,-2486.2,197.971,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5031.2,21,-2614.9,278.725,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5092.3,21,-2648.2,175.005,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5135.07,20.9878,-2659.19,86.9316,0, "", "", true},
		{"stormtrooper", "rebel_trooper", -5174.6,20.9876,-2656.7,185.005,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5212.9,20.9913,-2650.9,194.006,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5343.5,21,-2471.7,271.008,0, "", "", true},
		{"stormtrooper", "rebel_trooper", -5338.7,21,-2427.9,309.009,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5195.9,21,-2253.9,336.01,0, "", "", true},
		{"stormtrooper", "rebel_trooper", -5270.9,21,-2360.7,133.004,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5281.8,21,-2349.8,314.009,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5398.3,21,-2761.7,146.004,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5565.5,20.9967,-2842.9,340.795,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5633.8,20.9535,-2824.4,197.006,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5485.9,21,-2585.8,89.0026,0, "", "", true},
		{"stormtrooper", "rebel_trooper", -4942.5,21,-2438.9,106.003,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5556.4,21.6,-2611.8,99.0029,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5112.07,21,-2248.89,97.4325,0, "npc_imperial", "neutral"},
		{"stormtrooper", "rebel_trooper", -5044.7,21,-2303,200.405,0, "", "", true},
		{"stormtrooper", "rebel_trooper", -5131.1,21,-2417.7,6.00023,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5301.8,21,-2572,244.007,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5306.8,21,-2561.2,247.007,0, "", "", true},
		{"stormtrooper", "rebel_trooper", -5399.6,21,-2608.8,241.007,0, "", "", true},
		{"stormtrooper", "rebel_trooper", -5396.8,21,-2614.9,251.007,0, "", ""},
		{"stormtrooper", "rebel_trooper", -5459.6,21.2742,-2841.6,185.005,0, "", ""},
		{"stormtrooper_bombardier", "rebel_brigadier_general", -5086.49,21,-2255.77,216.35,0, "npc_imperial", "conversation"},
		{"stormtrooper_medic", "rebel_medic", -5302.1,21,-2379.2,225.007,0, "", ""},
		{"stormtrooper_rifleman", "rebel_staff_sergeant", -5418.2,20.9379,-2799.6,243.757,0, "", ""},
		{"stormtrooper_rifleman", "rebel_staff_sergeant", -5556.4,21.6,-2643.5,79.0023,0, "", ""},
		{"stormtrooper_rifleman", "rebel_staff_sergeant", -5097.16,21,-2271.05,130.264,0, "npc_imperial", "neutral"},
		{"stormtrooper_rifleman", "rebel_staff_sergeant", -5123,21,-2425.3,67.002,0, "", ""},
		{"stormtrooper_rifleman", "rebel_staff_sergeant", -5245.9,20.9324,-2636.5,228.007,0, "", ""},
		{"stormtrooper_sniper", "rebel_master_sergeant", -5227.3,21,-2272.3,331.01,0, "", ""},
		{"stormtrooper_sniper", "rebel_master_sergeant", -5574.1,20.98,-2843.3,314.848,0, "", ""},
		{"stormtrooper_sniper", "rebel_master_sergeant", -4932.5,20.978,-2427.7,123.004,0, "", ""},
		{"stormtrooper_sniper", "rebel_master_sergeant", -5094.14,21,-2270.16,45.8873,0, "npc_imperial", "neutral"},
		{"stormtrooper_squad_leader", "specforce_wilderness_operative", -5613.85,21,-2584,33.2059,0, "npc_imperial", "conversation"},
		{"stormtrooper_squad_leader", "specforce_wilderness_operative", -5103.81,21,-2266.4,126.218,0, "npc_imperial", "neutral", true},
		{"corsec_agent", "corsec_agent", -5412.5,20.8978,-2794.47,215.747,0, "", ""},
		{"corsec_cadet", "corsec_cadet", -4945.07,21,-2489.35,89.6921,0, "", ""},
		{"corsec_chief", "corsec_chief", -5000.34,28.1,-2520.6,135.004,0, "npc_accusing", "conversation"},
		{"corsec_agent", "corsec_agent", -5467.56,21,-2791.59,180.005,0, "npc_imperial", "conversation"},
		{"corsec_detective", "corsec_detective", -4999.24,28.1,-2520.6,180.005,0, "npc_imperial", "conversation"},
		{"corsec_inspector_sergeant", "corsec_inspector_sergeant", -5061.36,21,-2532.53,0,0, "npc_imperial", "conversation"},
		{"corsec_investigator", "corsec_investigator", -5491.88,30.0036,-2808.63,180.005,0, "npc_imperial", "conversation"},
		{"corsec_investigator", "corsec_investigator", -5159.41,21,-2569.03,0,0, "npc_imperial", "conversation"},
		{"corsec_major", "corsec_major", -5010.49,28.1,-2496.09,135.004,0, "npc_imperial", "conversation"},
		{"corsec_sergeant", "corsec_sergeant", -5059.87,21,-2606.63,195.299,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5506.2,21,-2634.5,102,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5626.49,21,-2812.58,261.279,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5470.84,21,-2565.16,107.104,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5470.71,21,-2566.52,107.123,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5061.36,21,-2531.53,180.005,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5060.41,21,-2604.37,195.315,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -4944.48,21,-2488.58,42.466,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5363.23,24.87,-2595.04,64.2702,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5069.93,21,-2474.8,135.004,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5401.3,21,-2613.1,58,0, "", ""},
		{"corsec_trooper", "corsec_trooper", -5058.83,21,-2579.08,135.145,0, "", ""},
		{"corsec_sergeant", "corsec_sergeant",-5410.17, 20.9418, -2789.21, 215.169, 0, "", ""},
	},

	patrolNpcs = {"businessman_patrol", "commoner_fat_patrol", "commoner_old_patrol", "commoner_patrol", "noble_patrol", "scientist_patrol"},

	patrolMobiles = {
		--{patrolPoints, template, x, z, y, direction, cell, mood, combatPatrol},

		--Droids
		{"cll8_1", "cll_8", -5050, 21, -2288, 145, 0, "", false},
		{"eg6_1", "eg6_power_droid", -5605.25, 21, -2721.9, 155.92, 0, "", false},
		{"eg6_2", "eg6_power_droid", -5295.6, 21, -2396.69, 237.183, 0, "", false},
		{"surgical_1", "surgical_droid_21b", -23.3,  0.27, -2.7, 5.78928, 1935835, "", false},

		--NPCs
		{"npc_1", "patrolNpc", -5003, 21, -2342, 284, 0, "", false},
		{"npc_2", "patrolNpc", -4965, 21, -2383, 227, 0, "", false},
		{"npc_3", "patrolNpc", -5064, 21, -2392, 128, 0, "", false},
		{"npc_4", "patrolNpc", -5048, 21, -2490, 295, 0, "", false},
		{"npc_5", "patrolNpc", -5090, 21, -2580, 208, 0, "", false},
		{"npc_6", "patrolNpc", -5200, 21, -2594, 332, 0, "", false},
		{"npc_7", "patrolNpc", -5291, 21, -2479, 323, 0, "", false},
		{"npc_8", "patrolNpc", -5156, 21, -2376, 186, 0, "", false},
		{"npc_9", "patrolNpc", -5411, 21, -2655, 7, 0, "", false},
		{"npc_10", "patrolNpc", -5583, 21, -2764, 215, 0, "", false},
	},

	patrolPoints = {
		--table_name = {{x, z, y, cell, delayAtNextPoint}}
		cll8_1 = {{-5050, 21, -2288, 0, false}, {-5034, 21, -2305, 0, true}, {-5047, 21, -2321, 0, false}, {-5034, 21, -2305, 0, true}},
		eg6_1 = {{-5605, 21, -2721, 0, false}, {-5622, 21, -2732, 0, false}, {-5636, 21, -2755, 0 ,false}, { -5641, 21, -2790, 0, false}, {-5636, 21, -2755, 0 , false}, {-5622, 21, -2732, 0, false}, {-5604, 21, -2728, 0, false}, {-5587, 21, -2738, 0, false}, {-5570, 21, -2801, 0, false}, {-5587, 21, -2738, 0, false}},
		eg6_2 = {{-5294,  21, -2392, 0, false}, {-5303, 21, -2382, 0, true}, { -5273, 21, -2353, 0, false}, { -5268, 21, -2362, 0, false}, { -5275, 21, -2394, 0, false}},
		surgical_1 = {{-23.3, 0.26, -2.7, 1935835, false}, {-11.3, 0.3, -6.5, 1935835, true}, {-11.1, 0.3, 5.6, 1935835, false}, {-30.0, 0.3, 6.0, 1935835, true}, {-29.9, 0.3, -6.0, 1935835, true}},

		npc_1 = {{-5003, 21, -2342, 0, true}, {-5014, 21, -2346, 0, true}, {-5002, 21, -2349, 0, true}, {-4991, 21, -2346, 0, true}},
		npc_2 = {{-4965, 21, -2383, 0, true}, {-4981, 21, -2382, 0, true}, {-5004, 21, -2399, 0, true}, {-4954, 21, -2366, 0, true}},
		npc_3 = {{-5064, 21, -2392, 0, true}, {-5066, 21, -2407, 0, true}, {-5083, 21, -2392, 0, true}, {-5076, 21, -2422, 0, true}},
		npc_4 = {{-5063, 21, -2482, 0, true}, {-5053, 21, -2498, 0, true}, {-5039, 21, -2504, 0, true}, {-5065, 21, -2524, 0, true}},
		npc_5 = {{-5090, 21, -2580, 0, true}, {-5073, 21, -2575, 0, true}, {-5049, 21, -2593, 0, true}, {-5075, 21, -2604, 0, true}, {-5084, 21, -2594, 0, true}},
		npc_6 = {{-5200, 21, -2594, 0, true}, {-5227, 21, -2590, 0, true}, {-5212, 21, -2584, 0, true}, {-5189, 21, -2583, 0, true}, {-5179, 21, -2550, 0, true}},
		npc_7 = {{-5291, 21, -2479, 0, true}, {-5270, 21, -2488, 0, true}, {-5298, 21, -2508, 0, true}, {-5290, 21, -2517, 0, true}},
		npc_8 = {{-5156, 21, -2376, 0, true}, {-5137, 21, -2345, 0, true}, {-5125, 21, -2353, 0, true}, {-5159, 21, -2389, 0, true}, {-5145, 21, -2403, 0, true}},
		npc_9 = {{-5411, 21, -2655, 0, true}, {-5409, 21, -2696, 0, true}, {-5402, 21, -2680, 0, true}, {-5418, 21, -2649, 0, true}},
		npc_10 = {{-5583, 21, -2764, 0, true}, {-5573, 21, -2785, 0, true}, {-5594, 21, -2790, 0, true}, {-5575, 21, -2801, 0, true}},
	},

	stationaryCommoners = {"commoner", "commoner_fat", "commoner_old"},
	stationaryNpcs = {"artisan", "bodyguard", "bothan_diplomat", "bounty_hunter", "businessman", "commoner_technician", "contractor", "entertainer", "explorer", "farmer", "farmer_rancher", "fringer", "gambler", "info_broker", "medic", "mercenary", "miner", "noble", "official", "pilot", "rancher", "scientist", "slicer"},

	--{respawn, x, z, y, direction, cell, mood}
	stationaryMobiles = {
		{1, -5537.5, 21, -2614.06, 180, 0, "conversation"},
		{1, -5596.05, 21, -2761.83, 180, 0, "conversation"},
		{1, -5146.7, 21, -2548.18, 0, 0, "conversation"},
		{1, -5009.39, 28.1, -2497.19, 0, 0, "conversation"},
		{1, -5091.15, 21, -2315.33, 227, 0, ""},
		{1, -5537.5, 21, -2615.06, 0, 0, "conversation"},
		{1, -5633.73, 21, -2757.46, 93, 0, ""},
		{1, -5538.94, 21, -2600.55, 4.08279, 0, ""},
		{1, -5500.8, 21, -2778.27, 175, 0, ""},
		{1, -5409.42, 21, -2700.49, 244, 0, ""},
		{1, -5465.78, 21, -2601.9, 287, 0, ""},
		{1, -5314.83, 21, -2461.07, 267, 0, ""},
		{1, -5274.74, 21, -2574.04, 268, 0, ""},
		{1, -5259.48, 21, -2446.51, 225, 0, ""},
		{1, -5278.98, 21, -2390.6, 94, 0, ""},
		{1, -5208.22, 21, -2333.68, 118, 0, ""},
		{1, -5247.09, 21, -2623.54, 285, 0, ""},
		{1, -5242.79, 21, -2421.66, 30, 0, ""},
		{1, -5110.54, 21, -2505.6, 104, 0, ""},
		{1, -5200.63, 21, -2505.59, 277, 0, ""},
		{1, -5162.69, 21, -2277.81, 212, 0, ""},
		{1, -5114.89, 21, -2424.44, 187, 0, ""},
		{1, -5200.74, 21, -2638.47, 308, 0, ""},
		{1, -5164.3, 21, -2639.01, 192, 0, ""},
		{1, -5144.16, 21, -2413.14, 25, 0, ""},
		{1, -5079.26, 21, -2445.52, 106, 0, ""},
		{1, -5089.39, 21, -2344.25, 247, 0, ""},
		{1, -5073.15, 21, -2521.26, 351, 0, ""},
		{1, -5014.32, 21, -2560.74, 19, 0, ""},
		{1, -5025.37, 21, -2453.92, 175, 0, ""},
		{1, -4942.72, 21, -2445.55, 99, 0, ""},
		{1, -4960.23, 21, -2357.14, 295, 0, ""},
		{1, -5146.7, 21, -2547.18, 180, 0, "conversation"},
		{1, -5539.77, 21, -2683.65, 0, 0, "conversation"},
		{1, -5196.06, 21, -2408.57, 0, 0, "conversation"},
		{1, -5009.39, 28, -2496.09, 180, 0, "conversation"},
		{1, -5568.35, 21, -2663.99, 180,0, "conversation"},
		{1, -5596.05, 21, -2762.83,0,0, "conversation"},
		{1, -5308.12, 21, -2493.27,0,0, "conversation"},
		{1, -5574.26, 21, -2683.38, 180,0, "conversation"},
		{1, -5159.41, 21, -2568.03, 180, 0, "conversation"},
		{1, -5196.06, 21, -2407.57, 180, 0, "conversation"},
		{1, -4999.24, 28, -2521.71, 0, 0, "conversation"},
		{1, -5574.26, 21, -2684.38, 0, 0, "conversation"},
		{1, -5095.02, 21, -2513.56, 180, 0, "conversation"},
		{1, -5095.02, 21, -2514.56, 0, 0, "conversation"},
		{1, -5308.12, 21, -2492.27, 180, 0, "npc_accusing"},
		{1, -5398.52, 21, -2675.03, 180, 0, "conversation"},
		{1, -5059.06, 21, -2400.08, 0, 0, "worried"},
		{1, -5441.11, 21, -2624.13, 269.845, 0, ""},
	},

	mobiles = {
		--Starport
		{"bounty_hunter",300,-62.089,2.63942,41.8477,179.999,1935695, "conversation"},
		{"trainer_shipwright",60,0.1,0.6,67.2,180,1935687, "neutral"},
		{"chassis_dealer",60,-56.6393,0.974563,8.33815,26.9298,1935697, "neutral"},
		{"corellia_times_reporter",300,57.1873,-0.521137,36.2187,180.007,1935690, "conversation"},
		{"medic",300,57.1873,-0.521137,35.1187,360.011,1935690, "conversation"},
		{"entertainer",60,-63.189,2.63942,41.8477,134.996,1935695, "happy"},
		{"farmer",60,-62.089,2.63942,40.7477,0,1935695, "entertained"},
		{"contractor",300,31.7104,0.639212,63.2998,354.769,1935688, "conversation"},
		{"corellia_times_investigator",60,31.6347,0.63915,64.1249,174.754,1935688, "sad"},
		{"sullustan_male",300,-1.85381,0.639422,56.3013,180.012,1935687, "conversation"},
		{"info_broker",300,-1.85381,0.639422,55.3013,360.011,1935687, "conversation"},

		--Med Center
		{"brawler",300,24.4668,0.26,4.56238,180.004,1935831, "angry"},
		{"entertainer",60,24.4668,0.26,3.56238,0,1935831, "worried"},
		{"trainer_doctor", 0,21,0.26,-5,0,1935831, ""},
		{"trainer_medic", 0,13.8906,0.26,3.8275,183,1935831, ""},
		{"trainer_combatmedic", 0,-17,0.26,10,180,1935835, ""},
		{"trainer_doctor", 0,-24.2179,0.26,-3.63691,195,1935835, ""},
		{"trainer_medic", 0,-15.9755,0.26,0.30427,15,1935835, ""},
		--2nd floor
		{"medic",300,-5.68393,7.26,0.077741,180.455,1935837, "conversation"},
		{"mercenary",300,-5.6917,7.26,-0.915899,0.445885,1935837, "angry"},
		--3rd floor
		{"chiss_male",300,29.3506,13.25,10.8359,180.011,1935841, "npc_standing_drinking"},
		{"farmer",60,29.3506,13.25,9.83587,360.011,1935841, "conversation"},

		--Hotel
		{"comm_operator",300,15.7701,1.28309,-8.57401,180.007,1935823, "npc_imperial"},
		{"noble",60,15.7701,1.28309,-9.57401,360.011,1935823, "conversation"},
		{"entertainer",60,-6.74614,1.6,-12.8336,0,1935826, "happy"},
		{"commoner_tatooine",60,-12.4312,1.6,-16.4443,270.002,1935827, "sad"},
		{"commoner_naboo",60,-14.4312,1.6,-16.4443,89.9986,1935827, "npc_consoling"},

		{"bounty_hunter",300,-23.3263,1.59523,3.86229,0.250236,1935824, "angry"},
		{"sullustan_male",60,-23.3263,1.6,4.96228,180.004,1935824, "calm"},

		--Cantina
		{"comm_operator",400,48.13,0.105,2.47,248.001,2625353, "npc_imperial"},
		{"trainer_dancer", 0,16.7961,-0.894993,-10.1031,3,2625355, ""},
		{"trainer_musician", 0,21.1399,-0.894993,8.20648,120,2625355, ""},

		{"trainer_entertainer", 0,6.15345,-0.894992,-19.3905,0,2625358, ""},
		{"artisan",60,-8.04223,-0.894908,-17.7225,360.011,2625360, "nervous"},
		{"contractor",300,-8.04223,-0.894941,-16.6225,180.002,2625360, "conversation"},
		{"vrak",60,-26.3961,-0.894991,23.1611,112,2625364, "nervous"},
		{"commoner_fat",60,-26.4983,-0.519991,10.8543,179.992,2625365, "npc_standing_drinking"},
		{"chiss_female",300,-26.4983,-0.519991,9.85428,360.011,2625365, "entertained"},
		{"rebel_recruiter", 60,-27.6,-0.9,0.6,89,2625363, ""},
		{"corellia_times_investigator", 60,-32.0578,0.10501,-20.4764,246.868,2625366, ""},
		{"mercenary", 300,-32.0578,0.10501,-21.5764,262.741,2625366, ""},

		--2nd part of the city.
		--Guild Hall -5417 -2723
		{"mercenary", 300,3.29,1.13306,-9.58,249.007,1935454, ""},
		{"trainer_artisan", 0,0,1.13306,-14,0,1935454, ""},

		--Guild Hall -5463 -2722
		{"trainer_marksman", 0,0,1.13306,-14,0,1935444, ""},
		{"businessman", 60,3.32,1.13306,-8.49,228.007,1935444, ""},
		{"bounty_hunter", 300,-14.01,1.13306,-8.53,120.004,1935445, ""},
		{"trainer_brawler", 0,-11,1.13306,-14,0,1935445, ""},
		{"trainer_scout", 0,-12,1.13306,5.5,180,1935442, ""},

		--Guild Hall -5502 -2678
		{"trainer_merchant", 0,12,1.13306,6,180,1935461, ""},
		{"trainer_architect", 0,11,1.13306,-14,0,1935463, ""},
		{"trainer_weaponsmith", 0,-2.5,1.13306,-8.4,91,1935464, ""},
		{"trainer_droidengineer", 0,-11,1.13306,-14,0,1935465, ""},
		{"trainer_armorsmith", 0,-12,1.1,5,180,1935462, ""},

		--Guild Hall -5502 -2799
		{"entertainer",60,-3.65637,1.1544,-8.77307,0,1935476, "conversation"},
		{"farmer",60,10.1683,1.75,-5.25457,135.008,1935476, "conversation"},
		{"farmer_rancher",60,11.2683,1.75,-5.25457,180.017,1935476, "conversation"},
		{"medic",60,11.2683,1.75,-6.35457,360.011,1935476, "conversation"},
		{"mercenary",300,-3.65637,1.1544,-7.67307,179.999,1935476, "angry"},
		{"noble",60,5.78383,1.1544,-1.95638,180.012,1935476, "conversation"},
		{"contractor",60,5.78383,1.1544,-3.05638,360.011,1935476, "conversation"},
		{"scientist",300,1.29504,1.75,-19.8672,180.011,1935477, "worried"},
		{"chiss_male",60,1.29504,1.75,-20.9672,360.011,1935477, "calm"},
		{"commoner_naboo",60,-15.1386,2.25,17.5614,270.01,1935472, "npc_consoling"},
		{"commoner_old",60,-17.1386,2.25,17.5614,90.0005,1935472, "sad"},
		{"twilek_slave",300,-19.1229,9,14.3195,135.007,1935472, "conversation"},
		{"corellia_times_reporter",300,-18.0229,9,14.3195,180.008,1935472, "conversation"},
		{"commoner_technician",60,-18.0229,9,13.2195,360.011,1935472, "nervous"},

		--Hotel
		{"businessman",60,17.3056,1.28309,-7.47174,0,1935527, "explain"},
		{"businessman",60,23.1824,1.28309,8.37019,0,1935527, "conversation"},
		{"corellia_times_investigator",300,17.3056,1.28309,-6.37174,180.003,1935527, "conversation"},
		{"pilot",60,23.1824,1.28309,9.37019,179.994,1935527, "conversation"},
		{"commoner_tatooine",60,-16.9721,1,-4.12621,360.011,1935528, "happy"},
		{"mercenary",300,-16.9721,1.00014,-3.02621,180.01,1935528, "neutral"},

		--Theater/Guild Hall
		{"artisan",60,2.65839,2.6,4.15034,180.003,2365434, "conversation"},
		{"ithorian_male",60,1.55839,2.6,4.15034,135.004,2365434, "conversation"},
		{"farmer",60,2.2,2.6,3.2,0,2365434, "conversation"},
		{"info_broker",60,26.9,2.1,57.6,57,2365435, "conversation"},
		{"noble", 60,27.93,2.12878,58.19,222.007,2365435, ""},
		{"noble", 60,19.26,2.12847,56.13,266.008,2365436, ""},
		{"comm_operator",300,5.33572,2.12878,71.6096,0,2365436, "npc_imperial"},
		{"mercenary",300,5.33572,2.12878,72.7096,180.003,2365436, "npc_accusing"},
		{"trainer_dancer", 0,17.6008,2.12878,53.4279,4,2365436, ""},
		{"trainer_musician", 0,21.7,2.1,76.1,180,2365436, ""},
		{"theater_manager", 0,21.9985,2.12818,63.5,0,2365436, ""},
		{"trainer_imagedesigner", 0,-21.8004,2.12878,74.6487,184,2365437, ""},

		--Outside
		{"bothan_information_broker",60,-5398.52,21,-2676.03,0,0, "conversation"},
		{"brawler",60,-5000.34,28.1,-2521.71,45.0013,0, "angry"},
		{"comm_operator",300,-5467.56,21,-2792.59,0,0, "npc_imperial"},
		{"corellia_times_investigator",60,-5568.35,21,-2664.99,0,0, "conversation"},
		{"corellia_times_investigator",60,-5491.88,30.0036,-2809.63,0,0, "conversation"},
		{"rogue_corsec_trooper",300,-5059.06,21,-2399.08,180.005,0, "conversation"},

		--Misc Outside

		{"gubbur", 300,-4826,32.1,-2229.2,18,0, ""},
		{"gubbur", 300,-4827.25,31.6625,-2225.7,157.208,0, ""},
		{"informant_npc_lvl_1", 0,-5024,21,-2345,180,0, ""},
		{"informant_npc_lvl_1", 0,-5136,21,-2294,270,0, ""},
		{"informant_npc_lvl_1", 0,-5587,21,-2809,315,0, ""},
		{"informant_npc_lvl_1", 0,-5480,21,-2777,225,0, ""},
		{"informant_npc_lvl_1", 0,-5504,21,-2699,180,0, ""},
		{"informant_npc_lvl_1", 0,-5539,21,-2667,270,0, ""},
		{"informant_npc_lvl_1", 0,-5592,21,-2684,90,0, ""},
		{"informant_npc_lvl_1", 0,-5450,21,-2630,45,0, ""},
		{"informant_npc_lvl_1", 0,-5308,21,-2512,90,0, ""},
		{"informant_npc_lvl_1", 0,-5097,21,-2344,270,0, ""},
		{"j_pai_brek",60,-5073.17,21,-2342.77,33.2325,0, "neutral"},

		--Trainers
		{"trainer_armorsmith", 0,-5118,21,-2337,131,0, ""},
		{"trainer_artisan", 0,-5081,21,-2307,134,0, ""},
		{"trainer_artisan", 0,-5300.07,21,-2383,184,0, ""},
		{"trainer_bountyhunter", 0,-5130,21,-2302,180,0, ""},
		{"trainer_carbine", 0,-5225,21,-2488,180,0, ""},
		{"trainer_combatmedic", 0,-4996.29,21,-2451.61,129,0, ""},
		{"trainer_dancer", 0,34.5107,0.105,1.79681,89,3005398, ""},
		{"trainer_doctor", 0,-5002,21,-2459,180,0, ""},
		{"trainer_entertainer", 0,-5661,21.6,-2599.57,14,0, ""},
		{"trainer_entertainer", 0,-5062,21,-2291,124,0, ""},
		{"trainer_marksman", 0,-5041,21,-2324,91,0, ""},
		{"trainer_marksman", 0,-5249,21,-2306,180,0, ""},
		{"trainer_medic", 0,-5027,21,-2311,266,0, ""},
		{"trainer_musician", 0,-5067,21,-2296,158,0, ""},
		{"trainer_pistol", 0,-5220,21,-2488,180,0, ""},
		{"trainer_rifleman", 0,-5234,21,-2488,176,0, ""},
		{"trainer_scout", 0,-5061.86,21,-2322.52,36,0, ""},
		{"trainer_weaponsmith", 0,-5106,21,-2324,180,0, ""},

		{"larek_tatham",60,-5050.23,21,-2291.69,113.059,0, "neutral"},
		{"junk_dealer", 0, -5203.6, 21, -2285.9, -11, 0, ""},
		{"sullustan_male",60,-5564.23,21,-2777.78,0,0, "nervous"}
	}
}

registerScreenPlay("CorelliaTyrenaScreenPlay", true)

function CorelliaTyrenaScreenPlay:start()
	if (isZoneEnabled(self.planet)) then
		self:spawnMobiles()
		self:spawnSceneObjects()
		self:spawnGcwMobiles()
		self:spawnPatrolMobiles()
	end
end

function CorelliaTyrenaScreenPlay:spawnSceneObjects()
	--outside starport
	spawnSceneObject(self.planet, "object/tangible/crafting/station/public_space_station.iff", -5032.14, 21, -2317.33, 0, 0 )

end

function CorelliaTyrenaScreenPlay:spawnMobiles()
	local mobiles = self.mobiles

	for i = 1, #mobiles, 1 do
		local mob = mobiles[i]

		-- {template, respawn, x, z, y, direction, cell, mood}
		local pMobile = spawnMobile(self.planet, mob[1], mob[2], mob[3], mob[4], mob[5], mob[6], mob[7])

		if (pMobile ~= nil) then
			if mob[8] ~= "" then
				CreatureObject(pMobile):setMoodString(mob[8])
			end

			AiAgent(pMobile):addObjectFlag(AI_STATIC)

			if CreatureObject(pMobile):getPvpStatusBitmask() == 0 then
				CreatureObject(pMobile):clearOptionBit(AIENABLED)
			end
		end
	end

	--{"commoner",60,-5192.9,21,-2545.55,46.5164,0, "calm", "Excited Journalist"},
	--{"commoner",60,15.2091,0.639422,56.8933,284.328,1935687, "calm", "Amarent Loren"},
	--{"jom_irimore",60,-5520,21.3,-2630.99,0,0, "calm", "Jom Irimore"},
	--{"r2",60,-5295.88,21,-2528.24,196.589,0, "calm", "R2-B0"},
	--{"r2",60,-5297.6,21,-2396.69,271.4,0, "calm", "R2-X2"},
	--{"r2",60,-4954.63,21,-2376.82,26.4361,0, "calm", "R2-E3"},
	--{"r3",60,-5312.13,25.7208,-2570.41,64.2735,0, "calm", "R3-X5"},
	--{"r5",60,-5400.32,21,-2614.17,236.816,0, "calm", "R5-S7"},
	--{"r2",60,-13.4312,1.6,-15.4443,7.68027,1935827, "calm", "R2-P9"},
	--{"r3",60,-16.1386,2.25,18.5614,173.343,1935472, "calm", "R3-X8"},
	--{"r5",60,-4954.81,21,-2379.55,166.051,0, "calm", "R5-C7"},

	local pNpc = spawnMobile(self.planet, "junk_dealer", 0, -5639.2, 21, -2799.2, -40, 0)
	if pNpc ~= nil then
		AiAgent(pNpc):setConvoTemplate("junkDealerFineryConvoTemplate")
	end

	--Ragtag's
	spawnMobile(self.planet, "ragtag_kook", 300,-5215.15,29.033,-2198.86,133.12,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5220.6,30.4428,-2186.49,348.738,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5211.84,28.4788,-2194.09,10.766,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5219.46,30.4446,-2185.86,7.83436,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-4872.65,11.1341,-2390.99,302.831,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-4868.58,11.257,-2387.94,83.5642,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5735.79,28.6208,-2610.4,123.649,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5737.79,28.5516,-2607.4,132.784,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5734.79,28.7267,-2609.4,139.039,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5752.38,16.7564,-2798.05,339.808,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5738.79,28.2523,-2614.4,291.78,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5759.38,16.8412,-2798.05,36.2043,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5755.38,16.8078,-2791.05,5.21744,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5757.38,16.8277,-2792.05,209.008,0)
	spawnMobile(self.planet, "ragtag_kook", 300,-5750.38,16.684,-2794.05,244.293,0)
	spawnMobile(self.planet, "ragtag_loon", 300,-4855.73,11.1455,-2525.71,169.83,0)
	spawnMobile(self.planet, "ragtag_loon", 300,-4855.73,11.1789,-2528.71,285.482,0)
	spawnMobile(self.planet, "ragtag_loon", 300,-4855.73,11.1489,-2521.71,326.785,0)
	spawnMobile(self.planet, "ragtag_loon", 300,-4865.73,10.5102,-2521.71,326.643,0)
	spawnMobile(self.planet, "ragtag_mercenary", 300,-5691.26,15.4606,-2887.12,356.964,0)
	spawnMobile(self.planet, "ragtag_mercenary", 300,-5672.95,15.312,-2893.61,357.718,0)
	spawnMobile(self.planet, "ragtag_mercenary", 300,-5694.23,15.4638,-2884.47,185.304,0)
	spawnMobile(self.planet, "ragtag_thug", 300,-5683.98,16.7263,-2843.44,81.9355,0)
	spawnMobile(self.planet, "ragtag_thug", 300,-5685.49,17.6827,-2825.55,256.078,0)
	spawnMobile(self.planet, "ragtag_thug", 300,-5683.2,16.9368,-2840.36,90.595,0)

	--More misc
	spawnMobile(self.planet, "scientist", 60,-5431.41,21,-2685.81,106.943,0)
	spawnMobile(self.planet, "swooper_leader", 300,-5416.8,4.57113,-2286.37,76.0594,0)
	spawnMobile(self.planet, "swooper_leader", 300,-5415.8,5.33258,-2277.08,224.956,0)
	spawnMobile(self.planet, "swooper_leader", 300,-5420.58,3.58008,-2285.59,200.562,0)
end
