[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+fplay_4erepok_dialog_end} sr_idle@quest_control_1

[sr_idle@quest_control_1]
on_info = {+jup_a14_fp_agent_1_squad_dead +jup_a14_fp_agent_squad_dead} sr_idle@quest_control_2 %=remove_squads(radar_a2_gupi_squad:radar_a2_cherepok_squad) +jup_a14_under_cherep_bandit%

[sr_idle@quest_control_2]
on_info = {=dist_between_actor_and_smart_ge(jup_a14:300)} sr_idle@quest_control_3 %=create_squad(jup_a14_cherepok_squad:jup_a14) =create_squad(jup_a14_gupi_squad:jup_a14)%

[sr_idle@quest_control_3]
on_game_timer = 30 | {+fplay_4erepok_dialog_money} sr_idle@quest_control_4 %=send_message( aver_a1_4erepok_message:aver_a1_4erepok_bandit:aver_a1_4erepok_bandit_name:30000 ) =give_money_to_actor(10000)%
on_info = {+fplay_4erepok_dialog_habar} sr_idle@quest_control_3_1 %=spawn_object_in(wpn_saiga:redlim_treasure_19)%

[sr_idle@quest_control_3_1]
on_game_timer = 30 | sr_idle@quest_control_4 %=send_message( aver_a1_4erepok_message1:aver_a1_4erepok_bandit:aver_a1_4erepok_bandit_name:30000  ) =set_treasure_spot(redlim_treasure_19)%

[sr_idle@quest_control_4]
on_game_timer  = 30 | {!squad_exist(bar_a1_night_squad)} sr_idle@quest_control_6 %=create_squad(radar_a2_night_1_squad:radar_a2) =create_squad(radar_a2_night_2_squad:radar_a2)%
on_game_timer2 = 30 | {=squad_exist(bar_a1_night_squad)} sr_idle@quest_control_5 %=remove_squads(bar_a1_night_squad)%

[sr_idle@quest_control_5]
on_game_timer = 30 | sr_idle@quest_control_6 %=create_squad(radar_a2_night_1_squad:radar_a2) =create_squad(radar_a2_night_2_squad:radar_a2)%

[sr_idle@quest_control_6]
on_info = {!black_screen +pr_a16_all_agents_dead +level_pripyat_to_radar_ok} sr_idle@quest_control_7 %=give_task( fplay_gupi_quest )%

[sr_idle@quest_control_7]
on_game_timer = 30 | sr_idle@quest_control_8 %=give_task( fplay_inkv_quest )%

[sr_idle@quest_control_8]
on_game_timer = 30 | sr_idle@quest_control_9 %=give_task( fplay_winchester_quest )%

[sr_idle@quest_control_9]
on_game_timer = 300 | {!black_screen +spawn_art_new_gold_fish} sr_idle@quest_control_10 %=send_message(lesnik_message_2:bar_a1_botanick:bar_a1_botanick_name:30000)%

[sr_idle@quest_control_10]
on_game_timer = 30 | sr_idle@quest_control_11 %=give_task( fplay_lesnik_2_quest ) +fplay_lesnik_2_quest_start%

[sr_idle@quest_control_11]
on_info  = {+magnit_scan_anom_done} sr_idle@quest_control_12
on_info2 = {+fplay_lesnik_2_dialog_noo} sr_idle@nil

[sr_idle@quest_control_12]
on_game_timer = 7200 | sr_idle@nil %+magnit_scan_anom_was_damages%
on_info = {+magnit_scan_anom_take} sr_idle@quest_control_13

[sr_idle@quest_control_13]
on_info = {+fplay_lesnik_3_dialog_end} sr_idle@quest_control_14

[sr_idle@quest_control_14]
on_game_timer = 7200 | sr_idle@nil %+magnit_scan_anom_unlocked%

[sr_idle@nil]
