[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+bar_saoli_test_dialog_end} sr_idle@mechanic_quest_1 %=actor_is_thinking( thoughts_in_my_head_06 )%

[sr_idle@mechanic_quest_1]
on_info = {+bar_mechanic_memory_dialog_end} sr_idle@mechanic_quest %=give_task( mechanic_memory_quest )%

[sr_idle@mechanic_quest]
on_info = {!black_screen +jup_lena_puzzles_prankster_dialog_end} sr_idle@quest_control_1

[sr_idle@quest_control_1]
on_game_timer = 200 | sr_idle@quest_control_2 %+bar_russibic_help_amazons_dialog_start%

[sr_idle@quest_control_2]
on_info  = {+bar_russibic_help_amazons_dialog_end -jup_bubble_money_yes_dialog_start -jup_give_money_self} sr_idle@quest_control_3 %=create_squad(jup_a17_lena_squad:jup_a17)%
on_info2 = {+bar_russibic_help_amazons_dialog_end +jup_bubble_money_yes_dialog_start -jup_give_money_self} sr_idle@quest_control_5
on_info3 = {+bar_russibic_help_amazons_dialog_end +jup_give_money_self} sr_idle@quest_control_5

[sr_idle@quest_control_3]
on_game_timer = 200 | sr_idle@quest_control_4 %=send_message( sherkchan_bandit_message_4:jup_a18_sherkchan_bandit:jup_a18_sherkchan_name:30000 )%

[sr_idle@quest_control_4]
on_game_timer = 50 | sr_idle@quest_control_5 %=give_task( lena_qwest_2 ) +sherkchan_bandit_message_4 +stop_lesnik_limansk_dialog%

[sr_idle@quest_control_5]
on_info = {+bar_forester_help_leschi_dialog_end} sr_idle@quest_control_6 %=clear_smart_terrain(lim_b2) =remove_npc(jup_a18_baloon_bandit)%

[sr_idle@quest_control_6]
on_game_timer = 200 | sr_idle@quest_control_7 %=send_message( sherkchan_bandit_message_5:jup_a18_sherkchan_bandit:jup_a18_sherkchan_name:30000 ) =create_squad(lim_b2_bandit_squad:lim_b2)%

[sr_idle@quest_control_7]
on_game_timer = 50 | sr_idle@quest_control_8 %=give_task( sherkchan_qwest_3 ) =create_squad(lim_b2_baloon_squad:lim_b2)%

[sr_idle@quest_control_8]
on_info = {+bar_russibic_thunder_dialog_end} sr_idle@quest_control_9 %=remove_squads(jup_a14_degtyrev_squad:jup_a14_proveren_squad:jup_a14_proveren_1_squad)%

[sr_idle@quest_control_9]
on_game_timer  = 30 | sr_idle@quest_control_10 %=send_message( baloon_bandit_message_2:jup_a18_baloon_bandit:jup_a18_baloon_name:15000 )%

[sr_idle@quest_control_10]
on_game_timer  = 15 | sr_idle@quest_control_11 %=give_task( baloon_qwest_1 )%

[sr_idle@quest_control_11]
on_info = {!black_screen !task_complete(makdm_qwest_1)} sr_idle@quest_control_11_1 %=give_task( ivan_detectiv_quest ) +start_ivan_detectiv_quest =spawn_object(okurki:spawn_okurki_way)%

[sr_idle@quest_control_11_1]
on_info  = {+bar_makdm_emerald_wind_dialog_no} sr_idle@quest_control_24
on_info2 = {+bar_makdm_emerald_wind_dialog_yes} sr_idle@quest_control_12 %=clear_smart_terrain(lim_a14)%

[sr_idle@quest_control_12]
on_game_timer  = 30 | sr_idle@quest_control_13 %=create_squad(lim_a13_agent_squad:lim_a13) =create_squad(lim_a3_agent_squad:lim_a3)%

[sr_idle@quest_control_13]
on_game_timer  = 20 | sr_idle@quest_control_14 %=create_squad(lim_a14_agent_squad:lim_a14)%

[sr_idle@quest_control_14]
on_info  = {+bar_makdm_emerald_wind_dialog_1_no} sr_idle@quest_control_24 %=remove_squads(jup_a24_garik_squad)%
on_info2 = {+bar_forester_emerald_wind_dialog_end} sr_idle@quest_control_15 %=create_squad(jup_a4_lena_squad:jup_a4) =remove_squads(jup_a24_garik_squad)%

[sr_idle@quest_control_15]
on_game_timer  = 100 | sr_idle@quest_control_16 %=send_message( smuggler_lena_message_1:jup_smuggler_lena:jup_smuggler_lena_name:30000 )%

[sr_idle@quest_control_16]
on_game_timer  = 200 | sr_idle@quest_control_17 %=give_task( lena_qwest_3 )%

[sr_idle@quest_control_17]
on_info = {+bar_forester_emerald_wind_dialog_1_end} sr_idle@quest_control_18 %=remove_squads(jup_a24_lena_squad)%

[sr_idle@quest_control_18]
on_game_timer  = 7200 | {!black_screen !actor_in_zone(bar_radio_zone)} sr_idle@quest_control_19 %=send_message( lesnik_message_1:bar_a1_botanick:bar_a1_botanick_name:15000 )%

[sr_idle@quest_control_19]
on_game_timer  = 30 | sr_idle@quest_control_20 %+it_is_time_forester_dialog_2%

[sr_idle@quest_control_20]
on_info  = {+bar_forester_emerald_wind_dialog_3_end -bar_forester_emerald_wind_dialog_3_end_200} sr_idle@quest_control_24
on_info2 = {+bar_forester_emerald_wind_dialog_3_end +bar_forester_emerald_wind_dialog_3_end_200} sr_idle@quest_control_21

[sr_idle@quest_control_21]
on_info = {!actor_in_zone(bar_radio_zone)} sr_idle@quest_control_22 %=actor_arrived()%

[sr_idle@quest_control_22]
on_game_timer  = 20 | sr_idle@quest_control_23 %=disable_ui =run_postprocess(black:3009:true) =remove_actor_all_money =teleport_actor(actor_wind_robbery_walk:actor_wind_robbery_look)%

[sr_idle@quest_control_23]
on_game_timer  = 50 | sr_idle@quest_control_24 %=enable_ui =stop_postprocess(3009) =actor_arrived()%

[sr_idle@quest_control_24]
on_game_timer = 150 | {!actor_in_zone(bar_radio_zone)} sr_idle@quest_control_25 %=send_message( bar_a5_stalkerden_message_2:bar_a5_stalkerden:bar_a5_stalkerden_name:30000 )%

[sr_idle@quest_control_25]
on_game_timer  = 30 | sr_idle@quest_control_26 %=give_task( dark_business_qwest ) +start_dark_business_qwest%

[sr_idle@quest_control_26]
on_info = {+bar_a4_mechanic_squad_dead =actor_has_item(bar_double_pda)} sr_idle@quest_control_27 %+actor_has_bar_double_pda%

[sr_idle@quest_control_27]
on_info  = {+bar_forest_road_to_abyss_dialog_yes} sr_idle@quest_control_28 %=give_task( tools_x5_1_version ) =remove_squads(radar_a7_degtyrev_squad)%
on_info2 = {+bar_forest_road_to_abyss_dialog_no}  sr_idle@quest_control_29 %=give_task( tools_x5_2_version ) =remove_squads(radar_a7_degtyrev_squad)%

[sr_idle@quest_control_28]
on_game_timer  = 20 | sr_idle@quest_control_29 %=give_task( radar_module_3 ) =give_task( radar_module_2 ) =give_task( radar_module_1 )%

[sr_idle@quest_control_29]
on_info = {+all_fores_tools_done} sr_idle@quest_control_30 %=remove_squads(bar_a1_dolg_squad)%

[sr_idle@quest_control_30]
on_info = {+bar_forester_block_components_dialog_end} sr_idle@quest_control_31

[sr_idle@quest_control_31]
on_game_timer  = 30 | sr_idle@quest_control_32 %=send_message( bar_a2_duty_leader_message2:bar_a2_duty_leader:russibic_name:30000 )%

[sr_idle@quest_control_32]
on_game_timer  = 20 | sr_idle@quest_control_33 %=give_task( russibic_qwest_2 )%

[sr_idle@quest_control_33]
on_info = {!black_screen +actor_can_go_to_laba_teleport} sr_idle@quest_control_34 %+actor_after_laba_russibic%

[sr_idle@quest_control_34]
on_info = {+bar_contra_wait_dialog_end !actor_in_zone( bar_surge_hide_3 )} sr_idle@quest_control_35 %=send_message( jup_a18_botan_bandit_message:jup_a18_botan_bandit:jup_a18_botan_name:30000 )%

[sr_idle@quest_control_35]
on_game_timer  = 50 | sr_idle@quest_control_36 %=give_task( aspirant_quest )%

[sr_idle@quest_control_36]
on_info = {+actor_in_teleport} sr_idle@quest_control_37 %=create_squad_member(bar_a8_proveren_1:bar_a8_proveren_squad) =create_squad_member(bar_a8_proveren_2:bar_a8_proveren_squad) =create_squad_member(bar_a8_proveren_3:bar_a8_proveren_squad) =create_squad(bar_a6_proveren_squad:bar_a6)%

[sr_idle@quest_control_37]
on_game_timer  = 10 | sr_idle@quest_control_38 %=create_squad(bar_a8_degtyrev_squad:bar_a8)%

[sr_idle@quest_control_38]
on_info = {+start_russibic_qwest_3} sr_idle@quest_control_39 %=create_squad(bar_a1_dolg_squad:bar_a1)%

[sr_idle@quest_control_39]
on_info = {+bar_rus_all_retrib_dialog_end} sr_timer@quest_control_40

[sr_timer@quest_control_40]
type = dec
string = "у вас 10 минут, чтобы подготовиться к походу в Х-5"
start_value = 600000
on_value = 0 | sr_idle@quest_control_41 %=disable_ui =run_postprocess(black:3009:true) =teleport_actor(teleport_actor_walk:teleport_actor_look) +actor_in_teleport%
on_info = {+actor_in_teleport} sr_idle@quest_control_42 %=remove_squads(bar_a8_lena_squad:bar_a8_degtyrev_squad)%

[sr_idle@quest_control_41]
on_game_timer  = 10 | sr_idle@quest_control_42 %=enable_ui =stop_postprocess(3009) =remove_squads(bar_a8_lena_squad:bar_a8_degtyrev_squad)%
;
;
;--------------------------------------------------Продолжаем отслеживать квесты после финала в Х-5
;
;

[sr_idle@quest_control_42]
on_info  = {+bar_degt_all_invest_dial_end} sr_idle@quest_control_43 %=give_task( after_laba_quest )%
on_info2 = {=actor_on_level(l05_bar) +lab_lena_selection_var_two_dialog_end} sr_idle@redlim_1 %-level_surge_stop =actor_torch_on%

[sr_idle@redlim_1]
on_info = {+bar_maria_var_final_dialog_end} sr_particle@redlim_2 %=disable_ui =actor_torch_on -level_fallout__stop%

[sr_particle@redlim_2]
name = anomaly2\anomaly_teleport
path = bar_a8_maria_1_walk
mode = 2
looped = true
on_game_timer  = 40 | sr_idle@quest_control_44 %=remove_squads(bar_a8_maria_squad) =enable_ui =give_task( after_maria_quest )%

[sr_idle@quest_control_43]
on_info = {+jup_bot_all_inves_dial_1_end} sr_idle@quest_control_44 %=remove_squads(jup_a6_ecolog_squad)%

[sr_idle@quest_control_44]
on_info = {+bar_kont_all_inves_dial_end} sr_idle@quest_control_45

[sr_idle@quest_control_45]
on_game_timer  = 10800 | {!black_screen} sr_idle@quest_control_46 %=give_task( after_laba_quest_1 ) +after_laba_quest_1_start%

[sr_idle@quest_control_46]
on_info   = {+bar_kon_all_inv_heli_dial_1_end}  sr_idle@quest_control_48
on_info2  = {+bar_kon_all_inv_mine_dial_1_end}  sr_idle@quest_control_48
on_info3  = {+bar_kon_all_inv_rec_dial_1_end}   sr_idle@quest_control_47 %=remove_squads(bar_a1_degtyrev_squad:lim_c1_monolit_squad:lim_c1_leshiy_friend_squad)%

[sr_idle@quest_control_47]
on_game_timer  = 10800 | {!black_screen} sr_idle@quest_control_48 %+all_jup_heli_dead =remove_ids_objects(jup_heli_1:jup_heli_2)%

[sr_idle@quest_control_48]
on_info = {+bar_kon_all_inv_dial_2_end} sr_idle@quest_control_49 %=give_task( final_game_quest )%

[sr_idle@quest_control_49]
on_game_timer  = 20 | sr_idle@quest_control_50 %=create_squad(jup_a26_kib_final_squad:jup_a26)%

[sr_idle@quest_control_50]
on_game_timer  = 20 | sr_idle@quest_control_51 %=create_squad(jup_a26_stalk3_final_squad:jup_a26) =create_squad(jup_a26_stalk2_final_squad:jup_a26)%

[sr_idle@quest_control_51]
on_game_timer  = 20 | sr_idle@quest_control_52 %=create_squad(jup_a26_stalk1_final_squad:jup_a26) =create_squad(jup_a26_stalk_final_squad:jup_a26)%

;--------------------------------------------------
;----------------------Фриплей---------------------
;--------------------------------------------------
[sr_idle@quest_control_52]
on_info = {!black_screen +start_va_freeplay_game =actor_on_level(l05_bar)} sr_idle@quest_control_53 %=create_squad(bar_a2_sesa_squad:bar_a2) =create_squad(bar_a3_dolg_squad:bar_a3) =create_squad(bar_a4_dolg_squad:bar_a4)%

[sr_idle@quest_control_53]
on_game_timer  = 10 | sr_idle@quest_control_54 %=create_squad_member(bar_a2_dolg_8:bar_a10_dolg_squad:bar_a2_spawn_point_1)  =create_squad_member(bar_a11_trio:bar_a1_proveren_squad:bar_a1_proveren_point)%

[sr_idle@quest_control_54]
on_game_timer  = 10 | sr_idle@quest_control_55 %=give_task( fplay_degtyr_quest )%

[sr_idle@quest_control_55]
on_info = {+fplay_degtyr_dialog_end} sr_idle@quest_control_56

[sr_idle@quest_control_56]
on_game_timer  = 50 | sr_idle@quest_control_57 %=give_task( fplay_lesnik_quest )%

[sr_idle@quest_control_57]
on_info = {+fplay_lesnik_dialog_end} sr_idle@quest_control_58

[sr_idle@quest_control_58]
on_game_timer  = 50 | sr_idle@quest_control_59 %=give_task( fplay_lotsman_quest )%

[sr_idle@quest_control_59]
on_info  = {+fplay_sherkchan_dialog_yes_end} sr_idle@nil %=create_squad(bar_a1_guard_squad:bar_a1)%
on_info2 = {+fplay_sherkchan_dialog_noo_end} sr_idle@nil %=create_squad(bar_a1_guard_squad:bar_a1)%

[sr_idle@nil]
